CMS 3D CMS Logo

PhotonIsolationCalculator.h
Go to the documentation of this file.
1 #ifndef PhotonIsolationCalculator_H
2 #define PhotonIsolationCalculator_H
3 
9 
18 
20 
21 #include <vector>
22 
25 
27 
30 
32 public:
34 
36 
37  void setup(const edm::ParameterSet& conf,
38  std::vector<int> const& flagsEB_,
39  std::vector<int> const& flagsEE_,
40  std::vector<int> const& severitiesEB_,
41  std::vector<int> const& severitiesEE_,
43 
44  void calculate(const reco::Photon*,
45  const edm::Event&,
46  const edm::EventSetup& es,
49  reco::Photon::IsolationVariables& phoisolR04) const;
50 
51 private:
52  static void classify(const reco::Photon* photon,
53  bool& isEBPho,
54  bool& isEEPho,
55  bool& isEBEtaGap,
56  bool& isEBPhiGap,
57  bool& isEERingGap,
58  bool& isEEDeeGap,
59  bool& isEBEEGap) dso_internal;
60 
62  const edm::Event& e,
63  double& trkCone,
64  int& ntrkCone,
65  double pTThresh = 0,
66  double RCone = .4,
67  double RinnerCone = .1,
68  double etaSlice = 0.015,
69  double lip = 0.2,
70  double d0 = 0.1) const dso_internal;
71 
74  const edm::EventSetup& iSetup,
75  double RCone,
76  double RConeInner,
77  double etaSlice,
78  double eMin,
79  double etMin,
80  bool vetoClusteredHits,
82 
83  template <bool isoBC>
86  const HcalTopology& hcalTopology,
87  const HcalChannelQuality& hcalChStatus,
88  const HcalSeverityLevelComputer& hcalSevLvlComputer,
91  double RCone,
92  double RConeInner,
94 
95 private:
99 
106 
113 
118 
123 
126 
129 
132 
135 
139 
144 };
145 
146 #endif // PhotonIsolationCalculator_H
std::array< double, 7 > hcalIsoInnerRadBEB_
std::array< double, 6 > trkIsoBarrelRadiusA_
Definition: Photon.py:1
EgammaHcalIsolation::arrayHE hcalIsoEThresHE_
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > ecalSevLvlToken_
double calculateHcalRecHitIso(const reco::Photon *photon, const CaloGeometry &geometry, const HcalTopology &hcalTopology, const HcalChannelQuality &hcalChStatus, const HcalSeverityLevelComputer &hcalSevLvlComputer, const CaloTowerConstituentsMap &towerMap, const HBHERecHitCollection &hbheRecHits, double RCone, double RConeInner, int depth) const
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitsTag_
int iEvent
Definition: GenABIO.cc:224
std::array< double, 7 > hcalIsoOuterRadAEE_
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_, edm::ConsumesCollector &&iC)
std::array< double, 7 > hcalIsoInnerRadAEE_
std::array< double, 7 > hcalIsoOuterRadBEE_
#define dso_internal
Definition: Visibility.h:13
std::array< double, 5 > ecalIsoEndcapRadiusB_
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
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
std::array< double, 7 > hcalIsoOuterRadAEB_
std::array< double, 6 > trkIsoEndcapRadiusB_
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
EgammaHcalIsolation::arrayHB hcalIsoEThresHB_
static constexpr float d0
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
std::array< double, 5 > ecalIsoBarrelRadiusB_
std::array< double, 5 > ecalIsoEndcapRadiusA_
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > towerMapToken_
std::array< double, 6 > trkIsoBarrelRadiusB_
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
std::array< double, 5 > ecalIsoBarrelRadiusA_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalTopologyToken_
fixed size matrix
HLT enums.
std::vector< double > moduleEtaBoundary_
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > hcalSevLvlComputerToken_
std::array< double, 7 > hcalIsoInnerRadBEE_
static void classify(const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap)
std::array< double, 7 > hcalIsoOuterRadBEB_
std::array< double, 7 > hcalIsoInnerRadAEB_
std::array< double, 6 > trkIsoEndcapRadiusA_