18 |
|
#include "MitAna/TreeMod/interface/BaseMod.h" |
19 |
|
#include "MitAna/DataTree/interface/MuonFwd.h" |
20 |
|
#include "MitAna/DataTree/interface/VertexFwd.h" |
21 |
+ |
#include "MitAna/DataTree/interface/TrackFwd.h" |
22 |
+ |
#include "MitAna/DataTree/interface/PFCandidateFwd.h" |
23 |
|
#include "MitPhysics/Utils/interface/MuonTools.h" |
24 |
+ |
#include "MitPhysics/Utils/interface/IsolationTools.h" |
25 |
+ |
#include "MitAna/DataTree/interface/PileupEnergyDensityCol.h" |
26 |
|
|
27 |
|
namespace mithep |
28 |
|
{ |
49 |
|
void SetCaloIsoCut(Double_t cut) { fCaloIsolationCut = cut; } |
50 |
|
void SetClassType(const char *type) { fMuonClassType = type; } |
51 |
|
void SetCleanMuonsName(const char *name) { fCleanMuonsName = name; } |
52 |
+ |
void SetOldMuonsName(const char *n) { fNonIsolatedMuonsName = n; } |
53 |
+ |
void SetOldElectronsName(const char *n) { fNonIsolatedElectronsName = n; } |
54 |
|
void SetCleanName(const char *name) { SetCleanMuonsName(name); } |
55 |
|
void SetCombIsoCut(Double_t cut) { fCombIsolationCut = cut; } |
56 |
|
void SetD0Cut(Double_t cut) { fD0Cut = cut; } |
70 |
|
kZMuId, //"ZMuId" |
71 |
|
kTight, //"Tight" |
72 |
|
kLoose, //"Loose" |
73 |
< |
kMinimal, //"Minimal" |
73 |
> |
kWWMuId, //"WWMuId" |
74 |
|
kNoId, //"NoId" |
75 |
|
kCustomId //"Custom" |
76 |
|
}; |
77 |
|
enum EMuIsoType { |
78 |
< |
kIsoUndef = 0, //not defined |
79 |
< |
kTrackCalo, //"TrackCalo" |
80 |
< |
kTrackCaloCombined, //"TrackCaloCombined" |
81 |
< |
kTrackCaloSliding, //"TrackCaloSliding" |
82 |
< |
kCustomIso, //"Custom" |
83 |
< |
kNoIso //"NoIso" |
78 |
> |
kIsoUndef = 0, //"not defined" |
79 |
> |
kTrackCalo, //"TrackCalo" |
80 |
> |
kTrackCaloCombined, //"TrackCaloCombined" |
81 |
> |
kTrackCaloSliding, //"TrackCaloSliding" |
82 |
> |
kTrackCaloSlidingNoCorrection, //"TrackCaloSlidingNoCorrection" |
83 |
> |
kCustomIso, //"Custom" |
84 |
> |
kPFIso, //"PFIso" |
85 |
> |
kPFIsoNoL, //"PFIsoNoL" |
86 |
> |
kNoIso //"NoIso" |
87 |
|
}; |
88 |
|
enum EMuClassType { |
89 |
|
kClassUndef = 0, //not defined |
101 |
|
|
102 |
|
TString fMuonBranchName; //name of muon collection (input) |
103 |
|
TString fCleanMuonsName; //name of exported "good muon" collection |
104 |
+ |
TString fNonIsolatedMuonsName; //name of imported "old muon" collection |
105 |
+ |
TString fNonIsolatedElectronsName;//name of imported "old electron" collection |
106 |
|
TString fVertexName; //name of vertex collection |
107 |
+ |
TString fTrackName; //name of track collection |
108 |
+ |
TString fPFCandidatesName; //name of pfcandidates collection |
109 |
|
TString fMuonIDType; //type of muon id scheme we impose |
110 |
|
TString fMuonIsoType; //type of muon isolations scheme we impose |
111 |
|
TString fMuonClassType; //type of muon class we impose |
123 |
|
EMuClassType fMuClassType; //!muon class type (imposed) |
124 |
|
const MuonCol *fMuons; //!muon collection |
125 |
|
const VertexCol *fVertices; //!vertices branch |
126 |
< |
MuonTools *fMuonTools; //!muon tool |
127 |
< |
|
126 |
> |
const TrackCol *fTracks; //!track branch |
127 |
> |
const PFCandidateCol *fPFCandidates; //!pfcandidate branch |
128 |
> |
MuonCol *fNonIsolatedMuons; //!pointer to old muon collection |
129 |
> |
ElectronCol *fNonIsolatedElectrons;//!pointer to old electron collection |
130 |
> |
TString fPileupEnergyDensityName; |
131 |
> |
const PileupEnergyDensityCol *fPileupEnergyDensity; |
132 |
> |
|
133 |
|
ClassDef(MuonIDMod, 1) // Muon identification module |
134 |
|
}; |
135 |
|
} |