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 |
|
{ |
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 |
|
|
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 |
175 |
|
const VertexCol* fPV; //! |
176 |
|
const MCParticleCol *fMCParticles;//! |
177 |
|
const PileupInfoCol *fPileUp; //! |
178 |
< |
bool fPVFromBranch; |
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 |
|
|