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 
29 public:
31 
33 
34  void setup(const edm::ParameterSet& conf,
35  std::vector<int> const& flagsEB_,
36  std::vector<int> const& flagsEE_,
37  std::vector<int> const& severitiesEB_,
38  std::vector<int> const& severitiesEE_,
40 
41  void calculate(const reco::Photon*,
42  const edm::Event&,
43  const edm::EventSetup& es,
46  reco::Photon::IsolationVariables& phoisolR04) const;
47 
48 private:
49  static void classify(const reco::Photon* photon,
50  bool& isEBPho,
51  bool& isEEPho,
52  bool& isEBEtaGap,
53  bool& isEBPhiGap,
54  bool& isEERingGap,
55  bool& isEEDeeGap,
56  bool& isEBEEGap) dso_internal;
57 
59  const edm::Event& e,
60  double& trkCone,
61  int& ntrkCone,
62  double pTThresh = 0,
63  double RCone = .4,
64  double RinnerCone = .1,
65  double etaSlice = 0.015,
66  double lip = 0.2,
67  double d0 = 0.1) const dso_internal;
68 
71  const edm::EventSetup& iSetup,
72  double RCone,
73  double RConeInner,
74  double etaSlice,
75  double eMin,
76  double etMin,
77  bool vetoClusteredHits,
79 
80  template <bool isoBC>
83  const HcalTopology& hcalTopology,
84  const HcalChannelQuality& hcalChStatus,
85  const HcalSeverityLevelComputer& hcalSevLvlComputer,
88  double RCone,
89  double RConeInner,
91 
92 private:
96 
102 
109 
114 
119 
122 
125 
128 
131 
135 
140 };
141 
142 #endif // PhotonIsolationCalculator_H
PhotonIsolationCalculator::vetoClusteredEcalHits_
bool vetoClusteredEcalHits_
Definition: PhotonIsolationCalculator.h:107
PhotonIsolationCalculator::flagsEB_
std::vector< int > flagsEB_
Definition: PhotonIsolationCalculator.h:136
muons2muons_cfi.photon
photon
Definition: muons2muons_cfi.py:28
PhotonIsolationCalculator::setup
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)
Definition: PhotonIsolationCalculator.cc:29
photonAnalyzer_cfi.etMin
etMin
Definition: photonAnalyzer_cfi.py:54
Visibility.h
PhotonIsolationCalculator::trkIsoEndcapRadiusA_
std::array< double, 6 > trkIsoEndcapRadiusA_
Definition: PhotonIsolationCalculator.h:115
PhotonIsolationCalculator::ecalIsoEndcapRadiusB_
std::array< double, 5 > ecalIsoEndcapRadiusB_
Definition: PhotonIsolationCalculator.h:118
PhotonIsolationCalculator::hbheRecHitsTag_
edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitsTag_
Definition: PhotonIsolationCalculator.h:95
HcalChannelQualityRcd
Definition: HcalChannelQualityRcd.h:8
CaloTowerConstituentsMap.h
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm
HLT enums.
Definition: AlignableModifier.h:19
PhotonIsolationCalculator::caloGeometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: PhotonIsolationCalculator.h:97
geometry
Definition: geometry.py:1
HcalTopology
Definition: HcalTopology.h:26
edm::SortedCollection
Definition: SortedCollection.h:49
PhotonIsolationCalculator::hcalIsoInnerRadBEB_
std::array< double, 7 > hcalIsoInnerRadBEB_
Definition: PhotonIsolationCalculator.h:123
mps_check.array
array
Definition: mps_check.py:216
PhotonIsolationCalculator::flagsEE_
std::vector< int > flagsEE_
Definition: PhotonIsolationCalculator.h:137
HcalChannelQuality
Definition: HcalChannelQuality.h:17
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
PhotonIsolationCalculator::ecalIsoBarrelRadiusA_
std::array< double, 5 > ecalIsoBarrelRadiusA_
Definition: PhotonIsolationCalculator.h:111
watchdog.const
const
Definition: watchdog.py:83
PhotonIsolationCalculator::hcalSevLvlComputerToken_
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > hcalSevLvlComputerToken_
Definition: PhotonIsolationCalculator.h:100
PhotonIsolationCalculator::moduleEtaBoundary_
std::vector< double > moduleEtaBoundary_
Definition: PhotonIsolationCalculator.h:106
PhotonIsolationCalculator
Definition: PhotonIsolationCalculator.h:28
PhotonIsolationCalculator::hcalIsoOuterRadAEE_
std::array< double, 7 > hcalIsoOuterRadAEE_
Definition: PhotonIsolationCalculator.h:127
qcdUeDQM_cfi.lip
lip
Definition: qcdUeDQM_cfi.py:25
PhotonIsolationCalculator::trkIsoEndcapRadiusB_
std::array< double, 6 > trkIsoEndcapRadiusB_
Definition: PhotonIsolationCalculator.h:117
PhotonIsolationCalculator::towerMapToken_
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > towerMapToken_
Definition: PhotonIsolationCalculator.h:101
PhotonIsolationCalculator::beamSpotProducerTag_
edm::EDGetToken beamSpotProducerTag_
Definition: PhotonIsolationCalculator.h:104
EgammaHcalIsolation
Definition: EgammaHcalIsolation.h:38
Photon.h
CaloGeometry
Definition: CaloGeometry.h:21
PhotonIsolationCalculator::trkIsoBarrelRadiusB_
std::array< double, 6 > trkIsoBarrelRadiusB_
Definition: PhotonIsolationCalculator.h:112
PhotonIsolationCalculator::~PhotonIsolationCalculator
~PhotonIsolationCalculator()
Definition: PhotonIsolationCalculator.h:32
PhotonIsolationCalculator::hcalIsoInnerRadAEB_
std::array< double, 7 > hcalIsoInnerRadAEB_
Definition: PhotonIsolationCalculator.h:120
photonAnalyzer_cfi.eMin
eMin
Definition: photonAnalyzer_cfi.py:50
HcalSeverityLevelComputer
Definition: HcalSeverityLevelComputer.h:24
CaloTowerConstituentsMap
Definition: CaloTowerConstituentsMap.h:18
PhotonIsolationCalculator::trkIsoBarrelRadiusA_
std::array< double, 6 > trkIsoBarrelRadiusA_
Definition: PhotonIsolationCalculator.h:110
Event
PhotonIsolationCalculator::hcalIsoInnerRadBEE_
std::array< double, 7 > hcalIsoInnerRadBEE_
Definition: PhotonIsolationCalculator.h:129
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
PhotonIsolationCalculator::hcalIsoEThresHE_
EgammaHcalIsolation::arrayHE hcalIsoEThresHE_
Definition: PhotonIsolationCalculator.h:133
CaloGeometryRecord.h
HcalSeverityLevelComputerRcd.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
PhotonIsolationCalculator::trackInputTag_
edm::EDGetToken trackInputTag_
Definition: PhotonIsolationCalculator.h:103
PhotonIsolationCalculator::hcalIsoOuterRadAEB_
std::array< double, 7 > hcalIsoOuterRadAEB_
Definition: PhotonIsolationCalculator.h:121
dso_internal
#define dso_internal
Definition: Visibility.h:13
PhotonIsolationCalculator::calculateEcalRecHitIso
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
Definition: PhotonIsolationCalculator.cc:483
reco::Photon::FiducialFlags
Definition: Photon.h:94
Photon
Definition: Photon.py:1
iEvent
int iEvent
Definition: GenABIO.cc:224
PhotonIsolationCalculator::severityExclEE_
std::vector< int > severityExclEE_
Definition: PhotonIsolationCalculator.h:139
PhotonIsolationCalculator::classify
static void classify(const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap)
Definition: PhotonIsolationCalculator.cc:399
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
electronEcalRecHitIsolationLcone_cfi.useNumCrystals
useNumCrystals
Definition: electronEcalRecHitIsolationLcone_cfi.py:12
PhotonIsolationCalculator::calculateTrackIso
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
Definition: PhotonIsolationCalculator.cc:444
edm::EventSetup
Definition: EventSetup.h:58
PhotonIsolationCalculator::calculateHcalRecHitIso
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
Definition: PhotonIsolationCalculator.cc:534
svgfig.template
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521
ESGetToken
reco::Photon::IsolationVariables
Definition: Photon.h:399
PhotonIsolationCalculator::ecalIsoBarrelRadiusB_
std::array< double, 5 > ecalIsoBarrelRadiusB_
Definition: PhotonIsolationCalculator.h:113
PhotonIsolationCalculator::PhotonIsolationCalculator
PhotonIsolationCalculator()
Definition: PhotonIsolationCalculator.h:30
HcalChannelQualityRcd.h
PhotonIsolationCalculator::hcalTopologyToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalTopologyToken_
Definition: PhotonIsolationCalculator.h:98
HcalChannelQuality.h
EDGetToken
PhotonIsolationCalculator::hcalIsoOuterRadBEB_
std::array< double, 7 > hcalIsoOuterRadBEB_
Definition: PhotonIsolationCalculator.h:124
reco::Photon
Definition: Photon.h:22
PhotonIsolationCalculator::endcapecalCollection_
edm::EDGetToken endcapecalCollection_
Definition: PhotonIsolationCalculator.h:94
HcalTopology.h
PhotonIsolationCalculator::hcalIsoOuterRadBEE_
std::array< double, 7 > hcalIsoOuterRadBEE_
Definition: PhotonIsolationCalculator.h:130
std
Definition: JetResolutionObject.h:76
PhotonIsolationCalculator::hcalIsoInnerRadAEE_
std::array< double, 7 > hcalIsoInnerRadAEE_
Definition: PhotonIsolationCalculator.h:126
CaloGeometry.h
EventSetup.h
HcalRecHitCollections.h
PhotonIsolationCalculator::hcalIsoEThresHB_
EgammaHcalIsolation::arrayHB hcalIsoEThresHB_
Definition: PhotonIsolationCalculator.h:132
HcalSeverityLevelComputer.h
PhotonIsolationCalculator::modulePhiBoundary_
double modulePhiBoundary_
Definition: PhotonIsolationCalculator.h:105
PhotonIsolationCalculator::calculate
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
Definition: PhotonIsolationCalculator.cc:144
ConsumesCollector.h
PhotonIsolationCalculator::severityExclEB_
std::vector< int > severityExclEB_
Definition: PhotonIsolationCalculator.h:138
EventSetup
ParameterSet.h
PhotonIsolationCalculator::ecalIsoEndcapRadiusA_
std::array< double, 5 > ecalIsoEndcapRadiusA_
Definition: PhotonIsolationCalculator.h:116
edm::Event
Definition: Event.h:73
d0
static constexpr float d0
Definition: L1EGammaCrystalsEmulatorProducer.cc:85
EcalChannelStatus.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
HcalSeverityLevelComputerRcd
Definition: HcalSeverityLevelComputerRcd.h:23
PhotonIsolationCalculator::hcalChannelQualityToken_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Definition: PhotonIsolationCalculator.h:99
ecalDrivenElectronSeeds_cfi.hbheRecHits
hbheRecHits
Definition: ecalDrivenElectronSeeds_cfi.py:7
PhotonIsolationCalculator::useNumCrystals_
bool useNumCrystals_
Definition: PhotonIsolationCalculator.h:108
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
EgammaHcalIsolation.h
PhotonIsolationCalculator::maxHcalSeverity_
int maxHcalSeverity_
Definition: PhotonIsolationCalculator.h:134
PhotonIsolationCalculator::barrelecalCollection_
edm::EDGetToken barrelecalCollection_
Definition: PhotonIsolationCalculator.h:93