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 
18 
19 public:
20 
22 
24 
25  void setup(const edm::ParameterSet& conf,
26  std::vector<int> const & flagsEB_,
27  std::vector<int> const & flagsEE_,
28  std::vector<int> const & severitiesEB_,
29  std::vector<int> const & severitiesEE_);
30 
31  void calculate(const reco::Photon*,
32  const edm::Event&, const edm::EventSetup& es,
35  reco::Photon::IsolationVariables& phoisolR04 ) const;
36 
37 
38 
39 private:
40 
41  static void classify(const reco::Photon* photon,
42  bool &isEBPho,
43  bool &isEEPho,
44  bool &isEBEtaGap,
45  bool &isEBPhiGap,
46  bool &isEERingGap,
47  bool &isEEDeeGap,
48  bool &isEBEEGap) dso_internal;
49 
50 
51 
52  void calculateTrackIso(const reco::Photon* photon,
53  const edm::Event &e,
54  double &trkCone,
55  int &ntrkCone,
56  double pTThresh=0,
57  double RCone=.4,
58  double RinnerCone=.1,
59  double etaSlice=0.015,
60  double lip=0.2,
61  double d0=0.1) const dso_internal;
62 
63 
64 
65  double calculateEcalRecHitIso(const reco::Photon* photon,
66  const edm::Event& iEvent,
67  const edm::EventSetup& iSetup,
68  double RCone,
69  double RConeInner,
70  double etaSlice,
71  double eMin,
72  double etMin,
73  bool vetoClusteredHits,
74  bool useNumCrystals) const dso_internal;
75 
76  double calculateHcalTowerIso(const reco::Photon* photon,
77  const edm::Event& iEvent,
78  const edm::EventSetup& iSetup,
79  double RCone,
80  double RConeInner,
81  double eMin,
82  signed int depth) const dso_internal;
83 
84 
85  double calculateHcalTowerIso(const reco::Photon* photon,
86  const edm::Event& iEvent,
87  const edm::EventSetup& iSetup,
88  double RCone,
89  double eMin,
90  signed int depth) const dso_internal;
91 
92 
93 
94 
95  private:
96 
97  edm::InputTag barrelecalCollection_;
98  edm::InputTag endcapecalCollection_;
99  edm::InputTag hcalCollection_;
100 
101  edm::InputTag trackInputTag_;
102  edm::InputTag beamSpotProducerTag_;
104  std::vector<double> moduleEtaBoundary_;
107 
114 
121 
122 
123  std::vector<int> flagsEB_;
124  std::vector<int> flagsEE_;
125  std::vector<int> severityExclEB_;
126  std::vector<int> severityExclEE_;
127 
128 
129 };
130 
131 #endif // PhotonIsolationCalculator_H
static void classify(const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap) dso_internal
void calculate(const reco::Photon *, const edm::Event &, const edm::EventSetup &es, reco::Photon::FiducialFlags &phofid, reco::Photon::IsolationVariables &phoisolR03, reco::Photon::IsolationVariables &phoisolR04) const
int iEvent
Definition: GenABIO.cc:243
double calculateHcalTowerIso(const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth) const dso_internal
#define dso_internal
Definition: Visibility.h:13
tuple conf
Definition: dbtoconf.py:185
bool etMin(const PFCandidate &cand, double cut)
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) const dso_internal
void setup(const edm::ParameterSet &conf, std::vector< int > const &flagsEB_, std::vector< int > const &flagsEE_, std::vector< int > const &severitiesEB_, std::vector< int > const &severitiesEE_)
string const
Definition: compareJSON.py:14
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) const dso_internal
#define private
Definition: FWFileEntry.h:18
std::vector< double > moduleEtaBoundary_