CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonIsolationCalculator.h
Go to the documentation of this file.
1 #ifndef PhotonIsolationCalculator_H
2 #define PhotonIsolationCalculator_H
3 
8 
11 
12 #include <string>
13 
15 
16 public:
17 
19 
21 
22  void setup(const edm::ParameterSet& conf,
23  std::vector<int> flagsEB_,
24  std::vector<int> flagsEE_,
25  std::vector<int> severitiesEB_,
26  std::vector<int> severitiesEE_);
27 
28  void calculate(const reco::Photon*,
29  const edm::Event&, const edm::EventSetup& es,
33 
34  void classify(const reco::Photon* photon,
35  bool &isEBPho,
36  bool &isEEPho,
37  bool &isEBEtaGap,
38  bool &isEBPhiGap,
39  bool &isEERingGap,
40  bool &isEEDeeGap,
41  bool &isEBEEGap);
42  void calculateTrackIso(const reco::Photon* photon,
43  const edm::Event &e,
44  double &trkCone,
45  int &ntrkCone,
46  double pTThresh=0,
47  double RCone=.4,
48  double RinnerCone=.1,
49  double etaSlice=0.015,
50  double lip=0.2,
51  double d0=0.1);
52 
53 
54 
55  double calculateEcalRecHitIso(const reco::Photon* photon,
56  const edm::Event& iEvent,
57  const edm::EventSetup& iSetup,
58  double RCone,
59  double RConeInner,
60  double etaSlice,
61  double eMin,
62  double etMin,
63  bool vetoClusteredHits,
64  bool useNumCrystals);
65 
66  double calculateHcalTowerIso(const reco::Photon* photon,
67  const edm::Event& iEvent,
68  const edm::EventSetup& iSetup,
69  double RCone,
70  double RConeInner,
71  double eMin,
72  signed int depth);
73 
74 
75  double calculateHcalTowerIso(const reco::Photon* photon,
76  const edm::Event& iEvent,
77  const edm::EventSetup& iSetup,
78  double RCone,
79  double eMin,
80  signed int depth);
81 
82 
83 
84 
85  protected:
86 
90 
94  std::vector<double> moduleEtaBoundary_;
97 
98  std::vector<double> trkIsoBarrelRadiusA_;
99  std::vector<double> ecalIsoBarrelRadiusA_;
100  std::vector<double> hcalIsoBarrelRadiusA_;
101  std::vector<double> trkIsoBarrelRadiusB_;
102  std::vector<double> ecalIsoBarrelRadiusB_;
103  std::vector<double> hcalIsoBarrelRadiusB_;
104 
105  std::vector<double> trkIsoEndcapRadiusA_;
106  std::vector<double> ecalIsoEndcapRadiusA_;
107  std::vector<double> hcalIsoEndcapRadiusA_;
108  std::vector<double> trkIsoEndcapRadiusB_;
109  std::vector<double> ecalIsoEndcapRadiusB_;
110  std::vector<double> hcalIsoEndcapRadiusB_;
111 
112  //Isolation parameters variables
133 
134  std::vector<int> flagsEB_;
135  std::vector<int> flagsEE_;
136  std::vector<int> severityExclEB_;
137  std::vector<int> severityExclEE_;
138 
159 };
160 
161 #endif // PhotonIsolationCalculator_H
std::vector< double > ecalIsoBarrelRadiusA_
std::vector< double > hcalIsoBarrelRadiusB_
void calculate(const reco::Photon *, const edm::Event &, const edm::EventSetup &es, reco::Photon::FiducialFlags &phofid, reco::Photon::IsolationVariables &phoisolR03, reco::Photon::IsolationVariables &phoisolR04)
std::vector< double > ecalIsoEndcapRadiusB_
std::vector< double > trkIsoEndcapRadiusB_
void calculateTrackIso(const reco::Photon *photon, const edm::Event &e, double &trkCone, int &ntrkCone, double pTThresh=0, double RCone=.4, double RinnerCone=.1, double etaSlice=0.015, double lip=0.2, double d0=0.1)
double calculateHcalTowerIso(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth)
std::vector< double > hcalIsoEndcapRadiusA_
std::vector< double > trkIsoBarrelRadiusB_
int iEvent
Definition: GenABIO.cc:243
std::vector< double > hcalIsoBarrelRadiusA_
tuple conf
Definition: dbtoconf.py:185
bool etMin(const PFCandidate &cand, double cut)
std::vector< double > trkIsoEndcapRadiusA_
void setup(const edm::ParameterSet &conf, std::vector< int > flagsEB_, std::vector< int > flagsEE_, std::vector< int > severitiesEB_, std::vector< int > severitiesEE_)
std::vector< double > moduleEtaBoundary_
std::vector< double > hcalIsoEndcapRadiusB_
std::vector< double > ecalIsoEndcapRadiusA_
std::vector< double > ecalIsoBarrelRadiusB_
double calculateEcalRecHitIso(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double etaSlice, double eMin, double etMin, bool vetoClusteredHits, bool useNumCrystals)
void classify(const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap)
std::vector< double > trkIsoBarrelRadiusA_