74 |
|
kEBlowEtaGoldCenter = 0, |
75 |
|
kEBlowEtaGoldGap, |
76 |
|
kEBlowEtaBad, |
77 |
+ |
kEBlowEtaBadCenter, |
78 |
+ |
kEBlowEtaBadGap, |
79 |
|
kEBhighEtaGold, |
80 |
|
kEBhighEtaBad, |
81 |
|
kEElowEtaGold, |
83 |
|
kEEhighEtaGold, |
84 |
|
kEEhighEtaBad |
85 |
|
}; |
86 |
< |
|
86 |
> |
|
87 |
> |
enum ShowerShapeScales { |
88 |
> |
kNoShowerShapeScaling = 0, |
89 |
> |
k2011ShowerShape, |
90 |
> |
k2012ShowerShape |
91 |
> |
}; |
92 |
|
|
93 |
|
static eScaleCats EScaleCat(const Photon *p); |
94 |
+ |
static eScaleCats EScaleCatHCP(const Photon *p); |
95 |
|
|
96 |
|
// Methods for scaling/smearing Photons |
97 |
|
static void ScalePhoton(Photon* p, Double_t scale); |
100 |
|
static void ScalePhotonR9(Photon *p, Double_t scale); |
101 |
|
static void ScalePhotonError(Photon *p, Double_t scale); |
102 |
|
|
103 |
+ |
static void ScalePhotonShowerShapes(Photon *p, ShowerShapeScales scale); |
104 |
+ |
|
105 |
+ |
|
106 |
|
static Bool_t PassSinglePhotonPresel(const Photon *p,const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *bs, const TrackCol* trackCol, const Vertex *vtx, double rho, Bool_t applyElectronVeto = kTRUE, Bool_t invertElectronVeto = kFALSE); |
107 |
|
static Bool_t PassSinglePhotonPreselPFISO(const Photon *p,const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *bs, const TrackCol* trackCol,const Vertex *vtx, double rho, const PFCandidateCol *fPFCands, Bool_t applyElectronVeto = kTRUE, Bool_t invertElectronVeto = kFALSE); |
108 |
+ |
static Bool_t PassSinglePhotonPreselPFISO_NoTrigger(const Photon *p,const ElectronCol *els, const DecayParticleCol *conversions, const BaseVertex *bs, const TrackCol* trackCol,const Vertex *vtx, double rho, const PFCandidateCol *fPFCands, Bool_t applyElectronVeto = kTRUE, Bool_t invertElectronVeto = kFALSE); |
109 |
|
static Bool_t PassConversionId(const Photon *p, const DecayParticle *c); |
110 |
|
static Bool_t PassElectronVeto(const Photon *p, const ElectronCol *els); |
111 |
|
static Double_t ElectronVetoCiC(const Photon *p, const ElectronCol *els); |
127 |
|
|
128 |
|
static const DecayParticle *MatchedCiCConversion(const Photon *p, const DecayParticleCol *conversions, |
129 |
|
Double_t dPhiMin=0.1, Double_t dEtaMin=0.1,Double_t dRMin=0.1, |
130 |
< |
bool print = false); |
130 |
> |
bool print = false, |
131 |
> |
int* numLegs = NULL, int* convIdx = NULL); // for debugging |
132 |
|
|
133 |
|
|
134 |
|
static const Electron *MatchedElectron(const Photon *p, const ElectronCol *els); |
146 |
|
bool applyEleVeto = true, |
147 |
|
bool print = false, float* kin=NULL); |
148 |
|
|
149 |
< |
|
149 |
> |
static bool PassCiCPFIsoSelection(const Photon* ph, |
150 |
> |
const Vertex* vtx, |
151 |
> |
const PFCandidateCol* pfCol, |
152 |
> |
const VertexCol* vtxCol, |
153 |
> |
double rho, double ptmin, |
154 |
> |
std::vector<double>* kin = NULL); |
155 |
> |
|
156 |
> |
static bool PassVgamma2011Selection(const Photon* ph, double rho); |
157 |
> |
|
158 |
|
static const MCParticle *MatchMC(const Particle *ph, const MCParticleCol *c, Bool_t matchElectrons = kFALSE); |
159 |
|
ClassDef(PhotonTools, 0) // Muon tools |
160 |
|
}; |