26 |
|
#include "MitAna/DataTree/interface/SuperClusterCol.h" |
27 |
|
#include "MitCommon/MathTools/interface/MathUtils.h" |
28 |
|
|
29 |
+ |
#include "MitAna/DataTree/interface/PFCandidateCol.h" |
30 |
+ |
|
31 |
|
class TRandom3; |
32 |
|
|
33 |
|
namespace mithep { |
71 |
|
}; |
72 |
|
|
73 |
|
enum eScaleCats { |
74 |
< |
kEBlowEtaGold = 0, |
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 |
< |
|
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 PassSinglePhotonPreselPFISONoEcal(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 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); |
110 |
|
static Bool_t PassConversionId(const Photon *p, const DecayParticle *c); |
111 |
|
static Bool_t PassElectronVeto(const Photon *p, const ElectronCol *els); |
112 |
|
static Double_t ElectronVetoCiC(const Photon *p, const ElectronCol *els); |
128 |
|
|
129 |
|
static const DecayParticle *MatchedCiCConversion(const Photon *p, const DecayParticleCol *conversions, |
130 |
|
Double_t dPhiMin=0.1, Double_t dEtaMin=0.1,Double_t dRMin=0.1, |
131 |
< |
bool print = false); |
131 |
> |
bool print = false, |
132 |
> |
int* numLegs = NULL, int* convIdx = NULL); // for debugging |
133 |
|
|
134 |
|
|
135 |
|
static const Electron *MatchedElectron(const Photon *p, const ElectronCol *els); |
136 |
|
static const Photon *MatchedPhoton(const Electron *e, const PhotonCol *phs); |
137 |
|
static const SuperCluster *MatchedSC(const SuperCluster *psc, const SuperClusterCol *scs, Double_t drMin=0.3); |
138 |
< |
|
138 |
> |
|
139 |
> |
static const SuperCluster *MatchedPFSC(const SuperCluster *psc, const PhotonCol *pfphos, const ElectronCol *eles, Double_t drMin=0.1); |
140 |
> |
|
141 |
|
static bool PassCiCSelection(const Photon* ph, |
142 |
|
const Vertex* vtx, |
143 |
|
const TrackCol* trackCol, |
147 |
|
bool applyEleVeto = true, |
148 |
|
bool print = false, float* kin=NULL); |
149 |
|
|
150 |
< |
|
151 |
< |
static const MCParticle *MatchMC(const Particle *ph, const MCParticleCol *c, Bool_t matchElectrons = kFALSE); |
150 |
> |
static bool PassCiCPFIsoSelection(const Photon* ph, |
151 |
> |
const Vertex* vtx, |
152 |
> |
const PFCandidateCol* pfCol, |
153 |
> |
const VertexCol* vtxCol, |
154 |
> |
double rho, double ptmin, |
155 |
> |
std::vector<double>* kin = NULL); |
156 |
|
|
157 |
+ |
static bool PassVgamma2011Selection(const Photon* ph, double rho); |
158 |
+ |
|
159 |
+ |
static const MCParticle *MatchMC(const Particle *ph, const MCParticleCol *c, Bool_t matchElectrons = kFALSE); |
160 |
|
ClassDef(PhotonTools, 0) // Muon tools |
161 |
|
}; |
162 |
|
} |