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 |
+ |
|
27 |
+ |
#include "MitPhysics/Utils/interface/MVATools.h" |
28 |
|
|
29 |
|
namespace mithep |
30 |
|
{ |
51 |
|
void SetApplySpikeRemoval(Bool_t b) { fApplySpikeRemoval = b; } |
52 |
|
void SetApplyPixelSeed(Bool_t b) { fApplyPixelSeed = b; } |
53 |
|
void SetApplyElectronVeto(Bool_t b) { fApplyElectronVeto = b; } |
54 |
+ |
void SetInvertElectronVeto(Bool_t b) { fInvertElectronVeto = b; } |
55 |
|
void SetApplyElectronVetoConvRecovery(Bool_t b) { fApplyElectronVetoConvRecovery = b; } |
56 |
|
void SetApplyConversionId(Bool_t b) { fApplyConversionId = b; } |
57 |
|
void SetApplyTriggerMatching(Bool_t b) { fApplyTriggerMatching = b; } |
82 |
|
} |
83 |
|
void SetTriggerObjectsName(const char *n) { fTrigObjectsName = n; } |
84 |
|
|
85 |
+ |
void SetPVName(const char *n) { fPVName = n; } |
86 |
+ |
void SetPVFromBranch(bool b) { fPVFromBranch = b; } |
87 |
+ |
void SetIsData (Bool_t b) { fIsData = b;}; |
88 |
+ |
void SetGoodElectronsFromBranch(Bool_t b) { fGoodElectronsFromBranch = b; } |
89 |
+ |
void SetGoodElectronName(TString name) { fGoodElectronName = name; } |
90 |
+ |
|
91 |
+ |
void SetBdtCutBarrel(double a) {fbdtCutBarrel = a; } |
92 |
+ |
void SetBdtCutEndcap(double a) {fbdtCutEndcap = a; } |
93 |
+ |
|
94 |
+ |
|
95 |
|
enum EPhIdType { |
96 |
|
kIdUndef = 0, //not defined |
97 |
|
kTight, //"Tight" |
98 |
|
kLoose, //"Loose" |
99 |
|
kLooseEM, //"LooseEM" |
100 |
+ |
kBaseLineCiC, //"2011" Hgg BaseLine CiC |
101 |
+ |
kMITMVAId, // MingMing MVA ID |
102 |
|
kCustomId //"Custom" |
103 |
|
}; |
104 |
+ |
|
105 |
|
enum EPhIsoType { |
106 |
|
kIsoUndef = 0, //not defined |
107 |
|
kNoIso, //"NoIso" |
121 |
|
TString fPileUpDenName; //name of the PU density collection |
122 |
|
TString fConversionName; //name of conversion branch |
123 |
|
TString fElectronName; |
124 |
< |
TString fTrigObjectsName; //name of trigger object collection |
124 |
> |
TString fGoodElectronName; |
125 |
> |
TString fTrigObjectsName; //name of trigger object collection |
126 |
> |
TString fPVName; |
127 |
> |
TString fMCParticleName; |
128 |
> |
TString fPileUpName; |
129 |
|
TString fPhotonIDType; //type of photon identification we impose |
130 |
|
TString fPhotonIsoType; //type of photon isolation we impose |
131 |
|
Double_t fPhotonPtMin; //min pt cut |
133 |
|
Bool_t fApplySpikeRemoval; //whether apply spike removal |
134 |
|
Bool_t fApplyPixelSeed; //=true then apply pixel seed constraint |
135 |
|
Bool_t fApplyElectronVeto; //=true then apply electron veto (with no conversion recovery) |
136 |
+ |
Bool_t fInvertElectronVeto; //=true then invert electron veto (for cic selection only atm) |
137 |
|
Bool_t fApplyElectronVetoConvRecovery; //=true then apply electron veto with conversion recovery |
138 |
|
Bool_t fApplyConversionId; //=true then apply conversion id cuts |
139 |
|
Bool_t fApplyTriggerMatching; //match to hlt photon (default=0) |
157 |
|
const PileupEnergyDensityCol *fPileUpDen; //!rho branch |
158 |
|
const DecayParticleCol *fConversions; //!conversion branch |
159 |
|
const ElectronCol *fElectrons; //!electron branch |
160 |
+ |
const ElectronCol *fGoodElectrons; //!electron branch |
161 |
+ |
const VertexCol* fPV; //! |
162 |
+ |
const MCParticleCol *fMCParticles;//! |
163 |
+ |
const PileupInfoCol *fPileUp; //! |
164 |
+ |
|
165 |
+ |
Double_t fbdtCutBarrel; |
166 |
+ |
Double_t fbdtCutEndcap; |
167 |
+ |
int fVariableType; |
168 |
+ |
TString fEndcapWeights; |
169 |
+ |
TString fBarrelWeights; |
170 |
+ |
MVATools fTool; |
171 |
+ |
|
172 |
+ |
bool fPVFromBranch; |
173 |
+ |
Bool_t fGoodElectronsFromBranch; |
174 |
+ |
Bool_t fIsData; |
175 |
+ |
|
176 |
|
|
177 |
|
|
178 |
|
ClassDef(PhotonIDMod, 1) // Photon identification module |