19 |
|
#include "MitAna/DataTree/interface/PileupEnergyDensityCol.h" |
20 |
|
#include "MitAna/DataTree/interface/DecayParticleCol.h" |
21 |
|
#include "MitAna/DataTree/interface/ElectronCol.h" |
22 |
+ |
#include "MitAna/DataTree/interface/VertexCol.h" |
23 |
+ |
#include "MitAna/DataTree/interface/DecayParticleCol.h" |
24 |
+ |
#include "MitAna/DataTree/interface/PileupInfoCol.h" |
25 |
+ |
#include "MitAna/DataTree/interface/MCParticleCol.h" |
26 |
+ |
#include "MitAna/DataTree/interface/PFCandidateCol.h" |
27 |
+ |
|
28 |
+ |
#include "MitPhysics/Utils/interface/MVATools.h" |
29 |
|
|
30 |
|
namespace mithep |
31 |
|
{ |
52 |
|
void SetApplySpikeRemoval(Bool_t b) { fApplySpikeRemoval = b; } |
53 |
|
void SetApplyPixelSeed(Bool_t b) { fApplyPixelSeed = b; } |
54 |
|
void SetApplyElectronVeto(Bool_t b) { fApplyElectronVeto = b; } |
55 |
+ |
void SetInvertElectronVeto(Bool_t b) { fInvertElectronVeto = b; } |
56 |
|
void SetApplyElectronVetoConvRecovery(Bool_t b) { fApplyElectronVetoConvRecovery = b; } |
57 |
|
void SetApplyConversionId(Bool_t b) { fApplyConversionId = b; } |
58 |
|
void SetApplyTriggerMatching(Bool_t b) { fApplyTriggerMatching = b; } |
83 |
|
} |
84 |
|
void SetTriggerObjectsName(const char *n) { fTrigObjectsName = n; } |
85 |
|
|
86 |
+ |
|
87 |
+ |
void SetPhotonsFromBranch(bool b) { fPhotonsFromBranch = b; } |
88 |
+ |
|
89 |
+ |
void SetPVName(const char *n) { fPVName = n; } |
90 |
+ |
void SetPVFromBranch(bool b) { fPVFromBranch = b; } |
91 |
+ |
void SetIsData (Bool_t b) { fIsData = b;}; |
92 |
+ |
void SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; } |
93 |
+ |
void SetGoodElectronName(TString name) { fGoodElectronName = name; } |
94 |
+ |
|
95 |
+ |
void SetBdtCutBarrel(double a) {fbdtCutBarrel = a; } |
96 |
+ |
void SetBdtCutEndcap(double a) {fbdtCutEndcap = a; } |
97 |
+ |
|
98 |
+ |
void SetDoMCR9Scaling(Bool_t b) { fDoMCR9Scaling = b; } |
99 |
+ |
void SetMCR9Scale(Double_t ebscale, Double_t eescale) { fMCR9ScaleEB = ebscale; fMCR9ScaleEE = eescale; } |
100 |
+ |
void SetDoMCSigIEtaIEtaScaling(Bool_t b) { fDoMCSigIEtaIEtaScaling = b; } |
101 |
+ |
void SetDoMCWidthScaling(Bool_t b) { fDoMCWidthScaling = b; } |
102 |
+ |
void SetDoMCErrScaling(Bool_t b) { fDoMCErrScaling = b; } |
103 |
+ |
void SetMCErrScale(Double_t ebscale, Double_t eescale) { fMCErrScaleEB = ebscale; fMCErrScaleEE = eescale; } |
104 |
+ |
|
105 |
|
enum EPhIdType { |
106 |
|
kIdUndef = 0, //not defined |
107 |
|
kTight, //"Tight" |
108 |
|
kLoose, //"Loose" |
109 |
|
kLooseEM, //"LooseEM" |
110 |
+ |
kBaseLineCiC, //"2011" Hgg BaseLine CiC |
111 |
+ |
kBaseLineCiCPF, //"2012" Hgg BaseLine CiC |
112 |
+ |
kMITMVAId, // MingMing MVA ID |
113 |
+ |
kMITPhSelection, //MIT loose preselection (for mva) |
114 |
+ |
kMITPFPhSelection, //MIT loose preselection (for mva) |
115 |
|
kCustomId //"Custom" |
116 |
|
}; |
117 |
+ |
|
118 |
|
enum EPhIsoType { |
119 |
|
kIsoUndef = 0, //not defined |
120 |
|
kNoIso, //"NoIso" |
134 |
|
TString fPileUpDenName; //name of the PU density collection |
135 |
|
TString fConversionName; //name of conversion branch |
136 |
|
TString fElectronName; |
137 |
< |
TString fTrigObjectsName; //name of trigger object collection |
137 |
> |
TString fGoodElectronName; |
138 |
> |
TString fTrigObjectsName; //name of trigger object collection |
139 |
> |
TString fPVName; |
140 |
> |
TString fMCParticleName; |
141 |
> |
TString fPileUpName; |
142 |
> |
TString fPFCandsName; |
143 |
|
TString fPhotonIDType; //type of photon identification we impose |
144 |
|
TString fPhotonIsoType; //type of photon isolation we impose |
145 |
|
Double_t fPhotonPtMin; //min pt cut |
147 |
|
Bool_t fApplySpikeRemoval; //whether apply spike removal |
148 |
|
Bool_t fApplyPixelSeed; //=true then apply pixel seed constraint |
149 |
|
Bool_t fApplyElectronVeto; //=true then apply electron veto (with no conversion recovery) |
150 |
+ |
Bool_t fInvertElectronVeto; //=true then invert electron veto (for cic selection only atm) |
151 |
|
Bool_t fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery |
152 |
|
Bool_t fApplyConversionId; //=true then apply conversion id cuts |
153 |
|
Bool_t fApplyTriggerMatching; //match to hlt photon (default=0) |
171 |
|
const PileupEnergyDensityCol *fPileUpDen; //!rho branch |
172 |
|
const DecayParticleCol *fConversions; //!conversion branch |
173 |
|
const ElectronCol *fElectrons; //!electron branch |
174 |
+ |
const ElectronCol *fGoodElectrons; //!electron branch |
175 |
+ |
const VertexCol* fPV; //! |
176 |
+ |
const MCParticleCol *fMCParticles;//! |
177 |
+ |
const PileupInfoCol *fPileUp; //! |
178 |
+ |
const PFCandidateCol *fPFCands; //! |
179 |
+ |
|
180 |
+ |
Double_t fbdtCutBarrel; |
181 |
+ |
Double_t fbdtCutEndcap; |
182 |
+ |
int fVariableType; |
183 |
+ |
TString fEndcapWeights; |
184 |
+ |
TString fBarrelWeights; |
185 |
+ |
MVATools fTool; |
186 |
+ |
|
187 |
+ |
Bool_t fDoMCR9Scaling; |
188 |
+ |
Double_t fMCR9ScaleEB; |
189 |
+ |
Double_t fMCR9ScaleEE; |
190 |
+ |
|
191 |
+ |
Bool_t fDoMCSigIEtaIEtaScaling; |
192 |
+ |
Bool_t fDoMCWidthScaling; |
193 |
+ |
|
194 |
+ |
Bool_t fDoMCErrScaling; |
195 |
+ |
Double_t fMCErrScaleEB; |
196 |
+ |
Double_t fMCErrScaleEE; |
197 |
+ |
|
198 |
+ |
Bool_t fPhotonsFromBranch; |
199 |
+ |
Bool_t fPVFromBranch; |
200 |
+ |
Bool_t fGoodElectronsFromBranch; |
201 |
+ |
Bool_t fIsData; |
202 |
+ |
|
203 |
|
|
204 |
|
|
205 |
|
ClassDef(PhotonIDMod, 1) // Photon identification module |