1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
loizides |
1.22 |
// $Id: MuonIDMod.h,v 1.21 2009/06/01 17:31:38 ceballos Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// MuonIDMod
|
5 |
|
|
//
|
6 |
loizides |
1.6 |
// This module applies muon identification criteria and exports a pointer to a collection
|
7 |
loizides |
1.7 |
// of "good muons" according to the specified ID scheme.
|
8 |
loizides |
1.1 |
//
|
9 |
loizides |
1.16 |
// See http://indico.cern.ch/contributionDisplay.py?contribId=1&confId=45945
|
10 |
|
|
// See http://indico.cern.ch/getFile.py/access?contribId=1&resId=0&materialId=slides&confId=42229
|
11 |
|
|
//
|
12 |
ceballos |
1.15 |
// Authors: S.Xie
|
13 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
14 |
|
|
|
15 |
loizides |
1.6 |
#ifndef MITPHYSICS_MODS_MUONIDMOD_H
|
16 |
|
|
#define MITPHYSICS_MODS_MUONIDMOD_H
|
17 |
loizides |
1.1 |
|
18 |
|
|
#include "MitAna/TreeMod/interface/BaseMod.h"
|
19 |
loizides |
1.22 |
#include "MitAna/DataTree/interface/MuonFwd.h"
|
20 |
|
|
#include "MitAna/DataTree/interface/VertexFwd.h"
|
21 |
ceballos |
1.5 |
#include "MitPhysics/Utils/interface/MuonTools.h"
|
22 |
loizides |
1.1 |
|
23 |
|
|
namespace mithep
|
24 |
|
|
{
|
25 |
|
|
class MuonIDMod : public BaseMod
|
26 |
|
|
{
|
27 |
|
|
public:
|
28 |
|
|
MuonIDMod(const char *name="MuonIDMod",
|
29 |
loizides |
1.6 |
const char *title="Muon identification module");
|
30 |
|
|
|
31 |
loizides |
1.11 |
Double_t GetCaloIsoCut() const { return fCaloIsolationCut; }
|
32 |
|
|
const char *GetClassType() const { return fMuonClassType; }
|
33 |
|
|
const char *GetCleanName() const { return GetCleanMuonsName(); }
|
34 |
|
|
const char *GetCleanMuonsName() const { return fCleanMuonsName; }
|
35 |
|
|
Double_t GetCombIsoCut() const { return fCombIsolationCut; }
|
36 |
|
|
const char *GetIDType() const { return fMuonIDType; }
|
37 |
|
|
const char *GetInputName() const { return fMuonBranchName; }
|
38 |
|
|
const char *GetIsoType() const { return fMuonIsoType; }
|
39 |
|
|
const char *GetOutputName() const { return GetCleanMuonsName(); }
|
40 |
|
|
Double_t GetPtMin(Double_t pt) const { return fMuonPtMin; }
|
41 |
loizides |
1.20 |
Bool_t GetReverseIsoCut() const { return fReverseIsoCut; }
|
42 |
ceballos |
1.21 |
Bool_t GetReverseD0Cut() const { return fReverseD0Cut; }
|
43 |
loizides |
1.11 |
Double_t GetTrackIsoCut() const { return fTrackIsolationCut; }
|
44 |
loizides |
1.20 |
void SetApplyD0Cut(Bool_t b) { fApplyD0Cut = b; }
|
45 |
loizides |
1.11 |
void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; }
|
46 |
|
|
void SetClassType(const char *type) { fMuonClassType = type; }
|
47 |
loizides |
1.18 |
void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; }
|
48 |
loizides |
1.11 |
void SetCleanName(const char *name) { SetCleanMuonsName(name); }
|
49 |
loizides |
1.18 |
void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; }
|
50 |
loizides |
1.20 |
void SetD0Cut(Double_t cut) { fD0Cut = cut; }
|
51 |
loizides |
1.11 |
void SetIDType(const char *type) { fMuonIDType = type; }
|
52 |
|
|
void SetInputName(const char *name) { fMuonBranchName = name; }
|
53 |
|
|
void SetIsoType(const char *type) { fMuonIsoType = type; }
|
54 |
|
|
void SetOutputName(const char *name) { SetCleanMuonsName(name); }
|
55 |
|
|
void SetPtMin(Double_t pt) { fMuonPtMin = pt; }
|
56 |
loizides |
1.20 |
void SetReverseIsoCut(Bool_t b) { fReverseIsoCut = b; }
|
57 |
ceballos |
1.21 |
void SetReverseD0Cut(Bool_t b) { fReverseD0Cut = b; }
|
58 |
loizides |
1.11 |
void SetTrackIsoCut(Double_t cut) { fTrackIsolationCut = cut; }
|
59 |
loizides |
1.6 |
|
60 |
|
|
enum EMuIdType {
|
61 |
|
|
kIdUndef = 0, //not defined
|
62 |
|
|
kTight, //"Tight"
|
63 |
|
|
kLoose, //"Loose"
|
64 |
loizides |
1.12 |
kNoId, //"NoId"
|
65 |
loizides |
1.6 |
kCustomId //"Custom"
|
66 |
|
|
};
|
67 |
|
|
enum EMuIsoType {
|
68 |
|
|
kIsoUndef = 0, //not defined
|
69 |
|
|
kTrackCalo, //"TrackCalo"
|
70 |
|
|
kTrackCaloCombined, //"TrackCaloCombined"
|
71 |
|
|
kTrackCaloSliding, //"TrackCaloSliding"
|
72 |
|
|
kCustomIso, //"Custom"
|
73 |
|
|
kNoIso //"NoIso"
|
74 |
|
|
};
|
75 |
|
|
enum EMuClassType {
|
76 |
|
|
kClassUndef = 0, //not defined
|
77 |
|
|
kAll, //"All"
|
78 |
|
|
kGlobal, //"Global"
|
79 |
|
|
kSta, //"Standalone"
|
80 |
|
|
kTrackerOnly //"TrackerOnly"
|
81 |
|
|
};
|
82 |
|
|
|
83 |
loizides |
1.1 |
protected:
|
84 |
loizides |
1.11 |
void Process();
|
85 |
|
|
void SlaveBegin();
|
86 |
loizides |
1.10 |
|
87 |
loizides |
1.11 |
TString fMuonBranchName; //name of muon collection (input)
|
88 |
|
|
TString fCleanMuonsName; //name of exported "good muon" collection
|
89 |
ceballos |
1.15 |
TString fVertexName; //name of vertex collection
|
90 |
loizides |
1.11 |
TString fMuonIDType; //type of muon id scheme we impose
|
91 |
|
|
TString fMuonIsoType; //type of muon isolations scheme we impose
|
92 |
|
|
TString fMuonClassType; //type of muon class we impose
|
93 |
|
|
Double_t fTrackIsolationCut; //cut value for track isolation
|
94 |
|
|
Double_t fCaloIsolationCut; //cut value for calo isolation
|
95 |
|
|
Double_t fCombIsolationCut; //cut value for combined isolation
|
96 |
|
|
Double_t fMuonPtMin; //min muon pt
|
97 |
loizides |
1.20 |
Bool_t fApplyD0Cut; //=true then apply d0 cut (def=1)
|
98 |
loizides |
1.16 |
Double_t fD0Cut; //max d0
|
99 |
loizides |
1.19 |
Bool_t fReverseIsoCut; //apply reversion iso cut (default=0)
|
100 |
ceballos |
1.21 |
Bool_t fReverseD0Cut; //apply reversion d0 cut (default=0)
|
101 |
loizides |
1.11 |
EMuIdType fMuIDType; //!muon id type (imposed)
|
102 |
|
|
EMuIsoType fMuIsoType; //!muon iso type (imposed)
|
103 |
|
|
EMuClassType fMuClassType; //!muon class type (imposed)
|
104 |
loizides |
1.16 |
const MuonCol *fMuons; //!muon collection
|
105 |
|
|
const VertexCol *fVertices; //!vertices branch
|
106 |
|
|
MuonTools *fMuonTools; //!muon tool
|
107 |
loizides |
1.1 |
|
108 |
loizides |
1.11 |
ClassDef(MuonIDMod, 1) // Muon identification module
|
109 |
loizides |
1.1 |
};
|
110 |
|
|
}
|
111 |
|
|
#endif
|