17 |
|
#include "MitAna/DataTree/interface/TrackCol.h" |
18 |
|
#include "MitAna/DataTree/interface/BeamSpotCol.h" |
19 |
|
#include "MitAna/DataTree/interface/PileupEnergyDensityCol.h" |
20 |
+ |
#include "MitAna/DataTree/interface/DecayParticleCol.h" |
21 |
+ |
#include "MitAna/DataTree/interface/ElectronCol.h" |
22 |
|
|
23 |
|
namespace mithep |
24 |
|
{ |
44 |
|
Double_t GetAbsEtaMax() const { return fAbsEtaMax; } |
45 |
|
void SetApplySpikeRemoval(Bool_t b) { fApplySpikeRemoval = b; } |
46 |
|
void SetApplyPixelSeed(Bool_t b) { fApplyPixelSeed = b; } |
47 |
+ |
void SetApplyElectronVeto(Bool_t b) { fApplyElectronVeto = b; } |
48 |
+ |
void SetApplyElectronVetoConvRecovery(Bool_t b) { fApplyElectronVetoConvRecovery = b; } |
49 |
+ |
void SetApplyConversionId(Bool_t b) { fApplyConversionId = b; } |
50 |
+ |
void SetApplyTriggerMatching(Bool_t b) { fApplyTriggerMatching = b; } |
51 |
|
void SetGoodName(const char *n) { SetGoodPhotonsName(n); } |
52 |
|
void SetGoodPhotonsName(const char *n) { fGoodPhotonsName = n; } |
53 |
|
void SetHadOverEmMax(Double_t hoe) { fHadOverEmMax = hoe; } |
63 |
|
void SetEtaWidthEE(Double_t x) { fEtaWidthEE = x; } |
64 |
|
void SetAbsEtaMax(Double_t x) { fAbsEtaMax = x; } |
65 |
|
void SetApplyR9Min(Bool_t b) { fApplyR9Min = b; } |
66 |
+ |
void SetApplyFiduciality(Bool_t b) { fFiduciality = b; } |
67 |
|
void SetEffAreas(Double_t ecal, Double_t hcal, Double_t track) { |
68 |
< |
fEffAreaEcal = ecal; fEffAreaHcal = hcal; fEffAreaTrack = track;} |
69 |
< |
|
68 |
> |
fEffAreaEcalEE = ecal; fEffAreaHcalEE = hcal; fEffAreaTrackEE = track; |
69 |
> |
fEffAreaEcalEB = ecal; fEffAreaHcalEB = hcal; fEffAreaTrackEB = track; |
70 |
> |
} |
71 |
> |
void SetEffAreasEEEB(Double_t ecalEE, Double_t hcalEE, Double_t trackEE, |
72 |
> |
Double_t ecalEB, Double_t hcalEB, Double_t trackEB) { |
73 |
> |
fEffAreaEcalEE = ecalEE; fEffAreaHcalEE = hcalEE; fEffAreaTrackEE = trackEE; |
74 |
> |
fEffAreaEcalEB = ecalEB; fEffAreaHcalEB = hcalEB; fEffAreaTrackEB = trackEB; |
75 |
> |
} |
76 |
> |
void SetTriggerObjectsName(const char *n) { fTrigObjectsName = n; } |
77 |
|
|
78 |
|
enum EPhIdType { |
79 |
|
kIdUndef = 0, //not defined |
80 |
|
kTight, //"Tight" |
81 |
|
kLoose, //"Loose" |
82 |
|
kLooseEM, //"LooseEM" |
83 |
+ |
kBaseLineId, //"2011" Hgg BaseLine CiC |
84 |
|
kCustomId //"Custom" |
85 |
|
}; |
86 |
+ |
|
87 |
|
enum EPhIsoType { |
88 |
|
kIsoUndef = 0, //not defined |
89 |
|
kNoIso, //"NoIso" |
90 |
|
kCombinedIso, //"CombinedIso" |
91 |
|
kCustomIso, //"Custom" |
92 |
+ |
kBaseLineIso, //"2011" Hgg BaseLine CiC |
93 |
|
kMITPUCorrected //PileUp Corrected Hgg Isolation |
94 |
|
}; |
95 |
|
|
101 |
|
TString fGoodPhotonsName; //name of exported "good photon" collection |
102 |
|
TString fTrackBranchName; // name of the track collection (only needed for PU corrected isolation) |
103 |
|
TString fBeamspotBranchName; //name of the Beamspot collection (only needed for PU corrected isolation) |
104 |
< |
TString fPileUpDenName; //name of the PU density collection |
104 |
> |
TString fPileUpDenName; //name of the PU density collection |
105 |
> |
TString fConversionName; //name of conversion branch |
106 |
> |
TString fElectronName; |
107 |
> |
TString fTrigObjectsName; //name of trigger object collection |
108 |
|
TString fPhotonIDType; //type of photon identification we impose |
109 |
|
TString fPhotonIsoType; //type of photon isolation we impose |
110 |
|
Double_t fPhotonPtMin; //min pt cut |
111 |
|
Double_t fHadOverEmMax; //maximum of hadronic/em energy |
112 |
|
Bool_t fApplySpikeRemoval; //whether apply spike removal |
113 |
|
Bool_t fApplyPixelSeed; //=true then apply pixel seed constraint |
114 |
+ |
Bool_t fApplyElectronVeto; //=true then apply electron veto (with no conversion recovery) |
115 |
+ |
Bool_t fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery |
116 |
+ |
Bool_t fApplyConversionId; //=true then apply conversion id cuts |
117 |
+ |
Bool_t fApplyTriggerMatching; //match to hlt photon (default=0) |
118 |
|
Double_t fPhotonR9Min; //min R9 value |
119 |
|
EPhIdType fPhIdType; //!identification scheme |
120 |
|
EPhIsoType fPhIsoType; //!isolation scheme |
123 |
|
Double_t fEtaWidthEE; //max Eta Width in ECAL End Cap |
124 |
|
Double_t fAbsEtaMax; //max Abs Eta |
125 |
|
Bool_t fApplyR9Min; //apply R9 min |
126 |
< |
Double_t fEffAreaEcal; |
127 |
< |
Double_t fEffAreaHcal; |
128 |
< |
Double_t fEffAreaTrack; |
126 |
> |
Double_t fEffAreaEcalEE; |
127 |
> |
Double_t fEffAreaHcalEE; |
128 |
> |
Double_t fEffAreaTrackEE; |
129 |
> |
Double_t fEffAreaEcalEB; |
130 |
> |
Double_t fEffAreaHcalEB; |
131 |
> |
Double_t fEffAreaTrackEB; |
132 |
|
const PhotonCol *fPhotons; //!photon branch |
133 |
|
const TrackCol *fTracks; //!track branch |
134 |
|
const BeamSpotCol *fBeamspots; //!beamspot branch |
135 |
< |
const PileupEnergyDensityCol *fPileUpDen; |
135 |
> |
const PileupEnergyDensityCol *fPileUpDen; //!rho branch |
136 |
> |
const DecayParticleCol *fConversions; //!conversion branch |
137 |
> |
const ElectronCol *fElectrons; //!electron branch |
138 |
|
|
139 |
|
|
140 |
|
ClassDef(PhotonIDMod, 1) // Photon identification module |