CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
PhotonIsolationCalculator Class Reference

#include <PhotonIsolationCalculator.h>

Public Member Functions

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
 
 PhotonIsolationCalculator ()
 
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)
 
 ~PhotonIsolationCalculator ()
 

Private Member Functions

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
 
template<bool isoBC>
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
 
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
 

Static Private Member Functions

static void classify (const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap)
 

Private Attributes

edm::EDGetToken barrelecalCollection_
 
edm::EDGetToken beamSpotProducerTag_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordcaloGeometryToken_
 
std::array< double, 5 > ecalIsoBarrelRadiusA_
 
std::array< double, 5 > ecalIsoBarrelRadiusB_
 
std::array< double, 5 > ecalIsoEndcapRadiusA_
 
std::array< double, 5 > ecalIsoEndcapRadiusB_
 
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcdecalSevLvlToken_
 
edm::EDGetToken endcapecalCollection_
 
std::vector< int > flagsEB_
 
std::vector< int > flagsEE_
 
edm::EDGetTokenT< HBHERecHitCollectionhbheRecHitsTag_
 
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcdhcalChannelQualityToken_
 
EgammaHcalIsolation::arrayHB hcalIsoEThresHB_
 
EgammaHcalIsolation::arrayHE hcalIsoEThresHE_
 
std::array< double, 7 > hcalIsoInnerRadAEB_
 
std::array< double, 7 > hcalIsoInnerRadAEE_
 
std::array< double, 7 > hcalIsoInnerRadBEB_
 
std::array< double, 7 > hcalIsoInnerRadBEE_
 
std::array< double, 7 > hcalIsoOuterRadAEB_
 
std::array< double, 7 > hcalIsoOuterRadAEE_
 
std::array< double, 7 > hcalIsoOuterRadBEB_
 
std::array< double, 7 > hcalIsoOuterRadBEE_
 
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcdhcalSevLvlComputerToken_
 
edm::ESGetToken< HcalTopology, HcalRecNumberingRecordhcalTopologyToken_
 
int maxHcalSeverity_
 
std::vector< double > moduleEtaBoundary_
 
double modulePhiBoundary_
 
std::vector< int > severityExclEB_
 
std::vector< int > severityExclEE_
 
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecordtowerMapToken_
 
edm::EDGetToken trackInputTag_
 
std::array< double, 6 > trkIsoBarrelRadiusA_
 
std::array< double, 6 > trkIsoBarrelRadiusB_
 
std::array< double, 6 > trkIsoEndcapRadiusA_
 
std::array< double, 6 > trkIsoEndcapRadiusB_
 
bool useNumCrystals_
 
bool vetoClusteredEcalHits_
 

Detailed Description

Determine and Set quality information on Photon Objects

Author
A. Askew, N. Marinelli, M.B. Anderson

Definition at line 31 of file PhotonIsolationCalculator.h.

Constructor & Destructor Documentation

◆ PhotonIsolationCalculator()

PhotonIsolationCalculator::PhotonIsolationCalculator ( )
inline

Definition at line 33 of file PhotonIsolationCalculator.h.

33 {}

◆ ~PhotonIsolationCalculator()

PhotonIsolationCalculator::~PhotonIsolationCalculator ( )
inline

Definition at line 35 of file PhotonIsolationCalculator.h.

35 {}

Member Function Documentation

◆ calculate()

void PhotonIsolationCalculator::calculate ( const reco::Photon pho,
const edm::Event e,
const edm::EventSetup es,
reco::Photon::FiducialFlags phofid,
reco::Photon::IsolationVariables phoisolR03,
reco::Photon::IsolationVariables phoisolR04 
) const

Definition at line 145 of file PhotonIsolationCalculator.cc.

References calculateEcalRecHitIso(), calculateTrackIso(), caloGeometryToken_, classify(), LEDCalibrationChannels::depth, hgcalTestNeighbor_cfi::detector, MillePedeFileConverter_cfg::e, EcalBarrel, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, reco::Photon::IsolationVariables::ecalRecHitSumEt, fbc, edm::EventSetup::getData(), ecalDrivenElectronSeeds_cfi::hbheRecHits, hbheRecHitsTag_, hcalChannelQualityToken_, hcalIsoInnerRadAEB_, hcalIsoInnerRadAEE_, hcalIsoInnerRadBEB_, hcalIsoInnerRadBEE_, hcalIsoOuterRadAEB_, hcalIsoOuterRadAEE_, hcalIsoOuterRadBEB_, hcalIsoOuterRadBEE_, reco::Photon::IsolationVariables::hcalRecHitSumEt, reco::Photon::IsolationVariables::hcalRecHitSumEtBc, hcalSevLvlComputerToken_, hcalTopologyToken_, reco::CaloCluster::hitsAndFractions(), l1ctLayer2EG_cff::id, SurfaceOrientation::inner, reco::Photon::FiducialFlags::isEB, reco::Photon::FiducialFlags::isEBEEGap, reco::Photon::FiducialFlags::isEBEtaGap, reco::Photon::FiducialFlags::isEBPhiGap, reco::Photon::FiducialFlags::isEE, reco::Photon::FiducialFlags::isEEDeeGap, reco::Photon::FiducialFlags::isEERingGap, reco::Photon::IsolationVariables::nTrkHollowCone, reco::Photon::IsolationVariables::nTrkSolidCone, SurfaceOrientation::outer, reco::Photon::IsolationVariables::pre7DepthHcal, DetId::subdetId(), reco::Photon::superCluster(), towerMapToken_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, reco::Photon::IsolationVariables::trkSumPtHollowCone, reco::Photon::IsolationVariables::trkSumPtSolidCone, useNumCrystals_, and vetoClusteredEcalHits_.

Referenced by PhotonProducer::fillPhotonCollection().

150  {
151  //Get fiducial flags. This does not really belong here
152  bool isEBPho = false;
153  bool isEEPho = false;
154  bool isEBEtaGap = false;
155  bool isEBPhiGap = false;
156  bool isEERingGap = false;
157  bool isEEDeeGap = false;
158  bool isEBEEGap = false;
159  classify(pho, isEBPho, isEEPho, isEBEtaGap, isEBPhiGap, isEERingGap, isEEDeeGap, isEBEEGap);
160  phofid.isEB = isEBPho;
161  phofid.isEE = isEEPho;
162  phofid.isEBEtaGap = isEBEtaGap;
163  phofid.isEBPhiGap = isEBPhiGap;
164  phofid.isEERingGap = isEERingGap;
165  phofid.isEEDeeGap = isEEDeeGap;
166  phofid.isEBEEGap = isEBEEGap;
167 
168  auto const& caloGeometry = es.getData(caloGeometryToken_);
169  auto const& hcalTopology = &es.getData(hcalTopologyToken_);
170  auto const& hcalChannelQuality = &es.getData(hcalChannelQualityToken_);
171  auto const& hcalSevLvlComputer = &es.getData(hcalSevLvlComputerToken_);
172  auto const& towerMap = es.getData(towerMapToken_);
173 
174  // Calculate isolation variables. cone sizes and thresholds
175  // are set for Barrel and endcap separately
176 
177  reco::SuperClusterRef scRef = pho->superCluster();
178  const reco::BasicCluster& seedCluster = *(scRef->seed());
179  DetId seedXtalId = seedCluster.hitsAndFractions()[0].first;
180  int detector = seedXtalId.subdetId();
181 
182  //Isolation parameters variables
183  double photonEcalRecHitConeInnerRadiusA_;
184  double photonEcalRecHitConeOuterRadiusA_;
185  double photonEcalRecHitEtaSliceA_;
186  double photonEcalRecHitThreshEA_;
187  double photonEcalRecHitThreshEtA_;
188  double trackConeOuterRadiusA_;
189  double trackConeInnerRadiusA_;
190  double isolationtrackThresholdA_;
191  double isolationtrackEtaSliceA_;
192  double trackLipRadiusA_;
193  double trackD0RadiusA_;
194  double photonEcalRecHitConeInnerRadiusB_;
195  double photonEcalRecHitConeOuterRadiusB_;
196  double photonEcalRecHitEtaSliceB_;
197  double photonEcalRecHitThreshEB_;
198  double photonEcalRecHitThreshEtB_;
199  double trackConeOuterRadiusB_;
200  double trackConeInnerRadiusB_;
201  double isolationtrackThresholdB_;
202  double isolationtrackEtaSliceB_;
203  double trackLipRadiusB_;
204  double trackD0RadiusB_;
205 
206  if (detector == EcalBarrel) {
207  trackConeOuterRadiusA_ = trkIsoBarrelRadiusA_[0];
208  trackConeInnerRadiusA_ = trkIsoBarrelRadiusA_[1];
209  isolationtrackThresholdA_ = trkIsoBarrelRadiusA_[2];
210  trackLipRadiusA_ = trkIsoBarrelRadiusA_[3];
211  trackD0RadiusA_ = trkIsoBarrelRadiusA_[4];
212  isolationtrackEtaSliceA_ = trkIsoBarrelRadiusA_[5];
213 
214  photonEcalRecHitConeInnerRadiusA_ = ecalIsoBarrelRadiusA_[0];
215  photonEcalRecHitConeOuterRadiusA_ = ecalIsoBarrelRadiusA_[1];
216  photonEcalRecHitEtaSliceA_ = ecalIsoBarrelRadiusA_[2];
217  photonEcalRecHitThreshEA_ = ecalIsoBarrelRadiusA_[3];
218  photonEcalRecHitThreshEtA_ = ecalIsoBarrelRadiusA_[4];
219 
220  trackConeOuterRadiusB_ = trkIsoBarrelRadiusB_[0];
221  trackConeInnerRadiusB_ = trkIsoBarrelRadiusB_[1];
222  isolationtrackThresholdB_ = trkIsoBarrelRadiusB_[2];
223  trackLipRadiusB_ = trkIsoBarrelRadiusB_[3];
224  trackD0RadiusB_ = trkIsoBarrelRadiusB_[4];
225  isolationtrackEtaSliceB_ = trkIsoBarrelRadiusB_[5];
226 
227  photonEcalRecHitConeInnerRadiusB_ = ecalIsoBarrelRadiusB_[0];
228  photonEcalRecHitConeOuterRadiusB_ = ecalIsoBarrelRadiusB_[1];
229  photonEcalRecHitEtaSliceB_ = ecalIsoBarrelRadiusB_[2];
230  photonEcalRecHitThreshEB_ = ecalIsoBarrelRadiusB_[3];
231  photonEcalRecHitThreshEtB_ = ecalIsoBarrelRadiusB_[4];
232  } else {
233  // detector==EcalEndcap
234 
235  trackConeOuterRadiusA_ = trkIsoEndcapRadiusA_[0];
236  trackConeInnerRadiusA_ = trkIsoEndcapRadiusA_[1];
237  isolationtrackThresholdA_ = trkIsoEndcapRadiusA_[2];
238  trackLipRadiusA_ = trkIsoEndcapRadiusA_[3];
239  trackD0RadiusA_ = trkIsoEndcapRadiusA_[4];
240  isolationtrackEtaSliceA_ = trkIsoEndcapRadiusA_[5];
241 
242  photonEcalRecHitConeInnerRadiusA_ = ecalIsoEndcapRadiusA_[0];
243  photonEcalRecHitConeOuterRadiusA_ = ecalIsoEndcapRadiusA_[1];
244  photonEcalRecHitEtaSliceA_ = ecalIsoEndcapRadiusA_[2];
245  photonEcalRecHitThreshEA_ = ecalIsoEndcapRadiusA_[3];
246  photonEcalRecHitThreshEtA_ = ecalIsoEndcapRadiusA_[4];
247 
248  trackConeOuterRadiusB_ = trkIsoEndcapRadiusB_[0];
249  trackConeInnerRadiusB_ = trkIsoEndcapRadiusB_[1];
250  isolationtrackThresholdB_ = trkIsoEndcapRadiusB_[2];
251  trackLipRadiusB_ = trkIsoEndcapRadiusB_[3];
252  trackD0RadiusB_ = trkIsoEndcapRadiusB_[4];
253  isolationtrackEtaSliceB_ = trkIsoEndcapRadiusB_[5];
254 
255  photonEcalRecHitConeInnerRadiusB_ = ecalIsoEndcapRadiusB_[0];
256  photonEcalRecHitConeOuterRadiusB_ = ecalIsoEndcapRadiusB_[1];
257  photonEcalRecHitEtaSliceB_ = ecalIsoEndcapRadiusB_[2];
258  photonEcalRecHitThreshEB_ = ecalIsoEndcapRadiusB_[3];
259  photonEcalRecHitThreshEtB_ = ecalIsoEndcapRadiusB_[4];
260  }
261 
262  //Calculate hollow cone track isolation, CONE A
263  int ntrkA = 0;
264  double trkisoA = 0;
265  calculateTrackIso(pho,
266  e,
267  trkisoA,
268  ntrkA,
269  isolationtrackThresholdA_,
270  trackConeOuterRadiusA_,
271  trackConeInnerRadiusA_,
272  isolationtrackEtaSliceA_,
273  trackLipRadiusA_,
274  trackD0RadiusA_);
275 
276  //Calculate solid cone track isolation, CONE A
277  int sntrkA = 0;
278  double strkisoA = 0;
279  calculateTrackIso(pho,
280  e,
281  strkisoA,
282  sntrkA,
283  isolationtrackThresholdA_,
284  trackConeOuterRadiusA_,
285  0.,
286  isolationtrackEtaSliceA_,
287  trackLipRadiusA_,
288  trackD0RadiusA_);
289 
290  phoisolR1.nTrkHollowCone = ntrkA;
291  phoisolR1.trkSumPtHollowCone = trkisoA;
292  phoisolR1.nTrkSolidCone = sntrkA;
293  phoisolR1.trkSumPtSolidCone = strkisoA;
294 
295  //Calculate hollow cone track isolation, CONE B
296  int ntrkB = 0;
297  double trkisoB = 0;
298  calculateTrackIso(pho,
299  e,
300  trkisoB,
301  ntrkB,
302  isolationtrackThresholdB_,
303  trackConeOuterRadiusB_,
304  trackConeInnerRadiusB_,
305  isolationtrackEtaSliceB_,
306  trackLipRadiusB_,
307  trackD0RadiusB_);
308 
309  //Calculate solid cone track isolation, CONE B
310  int sntrkB = 0;
311  double strkisoB = 0;
312  calculateTrackIso(pho,
313  e,
314  strkisoB,
315  sntrkB,
316  isolationtrackThresholdB_,
317  trackConeOuterRadiusB_,
318  0.,
319  isolationtrackEtaSliceB_,
320  trackLipRadiusB_,
321  trackD0RadiusB_);
322 
323  phoisolR2.nTrkHollowCone = ntrkB;
324  phoisolR2.trkSumPtHollowCone = trkisoB;
325  phoisolR2.nTrkSolidCone = sntrkB;
326  phoisolR2.trkSumPtSolidCone = strkisoB;
327 
328  // std::cout << "Output from solid cone track isolation: ";
329  // std::cout << " Sum pT: " << strkiso << " ntrk: " << sntrk << std::endl;
330 
331  double EcalRecHitIsoA = calculateEcalRecHitIso(pho,
332  e,
333  es,
334  photonEcalRecHitConeOuterRadiusA_,
335  photonEcalRecHitConeInnerRadiusA_,
336  photonEcalRecHitEtaSliceA_,
337  photonEcalRecHitThreshEA_,
338  photonEcalRecHitThreshEtA_,
341  phoisolR1.ecalRecHitSumEt = EcalRecHitIsoA;
342 
343  double EcalRecHitIsoB = calculateEcalRecHitIso(pho,
344  e,
345  es,
346  photonEcalRecHitConeOuterRadiusB_,
347  photonEcalRecHitConeInnerRadiusB_,
348  photonEcalRecHitEtaSliceB_,
349  photonEcalRecHitThreshEB_,
350  photonEcalRecHitThreshEtB_,
353  phoisolR2.ecalRecHitSumEt = EcalRecHitIsoB;
354 
355  if (not hbheRecHitsTag_.isUninitialized()) {
356  auto const& hbheRecHits = e.get(hbheRecHitsTag_);
357 
358  auto fcone = [this,
359  pho,
360  &caloGeometry,
361  &hcalTopo = *hcalTopology,
362  &hcalQual = *hcalChannelQuality,
363  &hcalSev = *hcalSevLvlComputer,
364  &towerMap,
365  &hbheRecHits](double outer, double inner, int depth) {
366  return calculateHcalRecHitIso<false>(
367  pho, caloGeometry, hcalTopo, hcalQual, hcalSev, towerMap, hbheRecHits, outer, inner, depth);
368  };
369 
370  auto fbc = [this,
371  pho,
372  &caloGeometry,
373  &hcalTopo = *hcalTopology,
374  &hcalQual = *hcalChannelQuality,
375  &hcalSev = *hcalSevLvlComputer,
376  &towerMap,
377  &hbheRecHits](double outer, int depth) {
378  return calculateHcalRecHitIso<true>(
379  pho, caloGeometry, hcalTopo, hcalQual, hcalSev, towerMap, hbheRecHits, outer, 0., depth);
380  };
381 
382  for (size_t id = 0; id < phoisolR1.hcalRecHitSumEt.size(); ++id) {
383  const auto& outerA = detector == EcalBarrel ? hcalIsoOuterRadAEB_[id] : hcalIsoOuterRadAEE_[id];
384  const auto& outerB = detector == EcalBarrel ? hcalIsoOuterRadBEB_[id] : hcalIsoOuterRadBEE_[id];
385  const auto& innerA = detector == EcalBarrel ? hcalIsoInnerRadAEB_[id] : hcalIsoInnerRadAEE_[id];
386  const auto& innerB = detector == EcalBarrel ? hcalIsoInnerRadBEB_[id] : hcalIsoInnerRadBEE_[id];
387 
388  phoisolR1.hcalRecHitSumEt[id] = fcone(outerA, innerA, id + 1);
389  phoisolR2.hcalRecHitSumEt[id] = fcone(outerB, innerB, id + 1);
390 
391  phoisolR1.hcalRecHitSumEtBc[id] = fbc(outerA, id + 1);
392  phoisolR2.hcalRecHitSumEtBc[id] = fbc(outerB, id + 1);
393  }
394  }
395 
396  phoisolR1.pre7DepthHcal = false;
397  phoisolR2.pre7DepthHcal = false;
398 }
std::array< double, 7 > hcalIsoInnerRadBEB_
std::array< double, 6 > trkIsoBarrelRadiusA_
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
Definition: CaloCluster.h:210
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitsTag_
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
std::array< double, 7 > hcalIsoOuterRadAEE_
std::array< double, 7 > hcalIsoInnerRadAEE_
std::array< double, 7 > hcalIsoOuterRadBEE_
std::array< double, 5 > ecalIsoEndcapRadiusB_
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
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
std::array< double, 7 > hcalIsoOuterRadAEB_
std::array< double, 6 > trkIsoEndcapRadiusB_
Definition: DetId.h:17
cc *****************************************************cc the common blocks pinput and cwdidth are for input parameters cc these parameters needed to be interfaced to other program common pinput fbc
Definition: inclcon.h:4
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_
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_

◆ calculateEcalRecHitIso()

double PhotonIsolationCalculator::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
private

Definition at line 484 of file PhotonIsolationCalculator.cc.

References barrelecalCollection_, caloGeometryToken_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, ecalSevLvlToken_, photonAnalyzer_cfi::eMin, endcapecalCollection_, photonAnalyzer_cfi::etMin, flagsEB_, flagsEE_, edm::EventSetup::getData(), EgammaRecHitIsolation::getEtSum(), edm::EventSetup::getHandle(), iEvent, displacedMuons_cfi::photon, edm::Handle< T >::product(), EgammaRecHitIsolation::setUseNumCrystals(), EgammaRecHitIsolation::setVetoClustered(), severityExclEB_, and severityExclEE_.

Referenced by calculate().

493  {
494  edm::Handle<EcalRecHitCollection> ecalhitsCollEB;
495  edm::Handle<EcalRecHitCollection> ecalhitsCollEE;
496  iEvent.getByToken(endcapecalCollection_, ecalhitsCollEE);
497 
498  iEvent.getByToken(barrelecalCollection_, ecalhitsCollEB);
499 
500  const EcalRecHitCollection* rechitsCollectionEE_ = ecalhitsCollEE.product();
501  const EcalRecHitCollection* rechitsCollectionEB_ = ecalhitsCollEB.product();
502 
503  const EcalSeverityLevelAlgo* sevLevel = &iSetup.getData(ecalSevLvlToken_);
504 
506 
507  EgammaRecHitIsolation phoIsoEB(
508  RCone, RConeInner, etaSlice, etMin, eMin, geoHandle, *rechitsCollectionEB_, sevLevel, DetId::Ecal);
509 
510  phoIsoEB.setVetoClustered(vetoClusteredHits);
511  phoIsoEB.setUseNumCrystals(useNumXtals);
512  phoIsoEB.doSeverityChecks(ecalhitsCollEB.product(), severityExclEB_);
513  phoIsoEB.doFlagChecks(flagsEB_);
514  double ecalIsolEB = phoIsoEB.getEtSum(photon);
515 
516  EgammaRecHitIsolation phoIsoEE(
517  RCone, RConeInner, etaSlice, etMin, eMin, geoHandle, *rechitsCollectionEE_, sevLevel, DetId::Ecal);
518 
519  phoIsoEE.setVetoClustered(vetoClusteredHits);
520  phoIsoEE.setUseNumCrystals(useNumXtals);
521  phoIsoEE.doSeverityChecks(ecalhitsCollEE.product(), severityExclEE_);
522  phoIsoEE.doFlagChecks(flagsEE_);
523 
524  double ecalIsolEE = phoIsoEE.getEtSum(photon);
525  // delete phoIso;
526  double ecalIsol = ecalIsolEB + ecalIsolEE;
527 
528  return ecalIsol;
529 }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
T const * product() const
Definition: Handle.h:70
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > ecalSevLvlToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
int iEvent
Definition: GenABIO.cc:224
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130

◆ calculateHcalRecHitIso()

template<bool isoBC>
double PhotonIsolationCalculator::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
private

Definition at line 532 of file PhotonIsolationCalculator.cc.

References LEDCalibrationChannels::depth, ecalDrivenElectronSeeds_cfi::hbheRecHits, hcalIsoEThresHB_, hcalIsoEThresHE_, EgammaHcalIsolation::isBehindClusterSeed, maxHcalSeverity_, displacedMuons_cfi::photon, and EgammaHcalIsolation::withinConeAroundCluster.

541  {
542  const EgammaHcalIsolation::arrayHB e04{{0., 0., 0., 0.}};
543  const EgammaHcalIsolation::arrayHE e07{{0., 0., 0., 0., 0., 0., 0.}};
544 
545  if constexpr (isoBC) {
547  RCone,
549  RConeInner,
551  e04,
554  e07,
556  hbheRecHits,
557  geometry,
558  hcalTopology,
559  hcalChStatus,
560  hcalSevLvlComputer,
561  towerMap);
562 
563  return hcaliso.getHcalEtSumBc(photon, depth);
564  } else {
566  RCone,
568  RConeInner,
570  e04,
573  e07,
575  hbheRecHits,
576  geometry,
577  hcalTopology,
578  hcalChStatus,
579  hcalSevLvlComputer,
580  towerMap);
581 
582  return hcaliso.getHcalEtSum(photon, depth);
583  }
584 }
EgammaHcalIsolation::arrayHE hcalIsoEThresHE_
EgammaHcalIsolation::arrayHB hcalIsoEThresHB_
std::array< double, 4 > arrayHB
std::array< double, 7 > arrayHE

◆ calculateTrackIso()

void PhotonIsolationCalculator::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
private

Definition at line 445 of file PhotonIsolationCalculator.cc.

References beamSpotProducerTag_, d0, MillePedeFileConverter_cfg::e, PhotonTkIsolation::getIso(), qcdUeDQM_cfi::lip, displacedMuons_cfi::photon, JetHT_cfg::trackCollection, trackInputTag_, pwdgSkimBPark_cfi::tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().

Referenced by calculate().

454  {
455  ntrkCone = 0;
456  trkCone = 0;
457  //get the tracks
459  e.getByToken(trackInputTag_, tracks);
460  if (!tracks.isValid()) {
461  return;
462  }
463  const reco::TrackCollection* trackCollection = tracks.product();
464  //Photon Eta and Phi. Hope these are correct.
465  reco::BeamSpot vertexBeamSpot;
466  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
467  e.getByToken(beamSpotProducerTag_, recoBeamSpotHandle);
468  vertexBeamSpot = *recoBeamSpotHandle;
469 
470  PhotonTkIsolation phoIso(RCone,
471  RinnerCone,
472  etaSlice,
473  pTThresh,
474  lip,
475  d0,
477  math::XYZPoint(vertexBeamSpot.x0(), vertexBeamSpot.y0(), vertexBeamSpot.z0()));
478 
479  std::pair<int, double> res = phoIso.getIso(photon);
480  ntrkCone = res.first;
481  trkCone = res.second;
482 }
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
Definition: Electron.h:6
double x0() const
x coordinate
Definition: BeamSpot.h:61
double y0() const
y coordinate
Definition: BeamSpot.h:63
trackCollection
Definition: JetHT_cfg.py:51
static constexpr float d0
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double z0() const
z coordinate
Definition: BeamSpot.h:65

◆ classify()

void PhotonIsolationCalculator::classify ( const reco::Photon photon,
bool &  isEBPho,
bool &  isEEPho,
bool &  isEBEtaGap,
bool &  isEBPhiGap,
bool &  isEERingGap,
bool &  isEEDeeGap,
bool &  isEBEEGap 
)
staticprivate

Definition at line 400 of file PhotonIsolationCalculator.cc.

References hgcalTestNeighbor_cfi::detector, EcalBarrel, EcalEndcap, PVValHelper::eta, JetMETHLTOfflineSource_cfi::feta, reco::CaloCluster::hitsAndFractions(), EEDetId::isNextToDBoundary(), EBDetId::isNextToEtaBoundary(), EBDetId::isNextToPhiBoundary(), EEDetId::isNextToRingBoundary(), displacedMuons_cfi::photon, and DetId::subdetId().

Referenced by calculate().

407  {
408  const reco::CaloCluster& seedCluster = *(photon->superCluster()->seed());
409  // following line is temporary until the D. Evans or F. Ferri submit the new tag for ClusterAlgos
410  // DEfinitive will be
411  // DetId seedXtalId = scRef->seed()->seed();
412  DetId seedXtalId = seedCluster.hitsAndFractions()[0].first;
413  int detector = seedXtalId.subdetId();
414 
415  //Set fiducial flags for this photon.
416  double eta = photon->superCluster()->position().eta();
417  double feta = fabs(eta);
418 
419  if (detector == EcalBarrel) {
420  isEBPho = true;
421  if (EBDetId::isNextToEtaBoundary(EBDetId(seedXtalId))) {
422  if (fabs(feta - 1.479) < .1)
423  isEBEEGap = true;
424  else
425  isEBEtaGap = true;
426  }
427 
428  if (EBDetId::isNextToPhiBoundary(EBDetId(seedXtalId)))
429  isEBPhiGap = true;
430 
431  } else if (detector == EcalEndcap) {
432  isEEPho = true;
433  if (EEDetId::isNextToRingBoundary(EEDetId(seedXtalId))) {
434  if (fabs(feta - 1.479) < .1)
435  isEBEEGap = true;
436  else
437  isEERingGap = true;
438  }
439 
440  if (EEDetId::isNextToDBoundary(EEDetId(seedXtalId)))
441  isEEDeeGap = true;
442  }
443 }
static bool isNextToEtaBoundary(EBDetId id)
Definition: EBDetId.cc:108
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
Definition: CaloCluster.h:210
static bool isNextToPhiBoundary(EBDetId id)
Definition: EBDetId.cc:113
static bool isNextToRingBoundary(EEDetId id)
Definition: EEDetId.cc:284
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
static bool isNextToDBoundary(EEDetId id)
Definition: EEDetId.cc:279
Definition: DetId.h:17

◆ setup()

void PhotonIsolationCalculator::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 
)

Isolation parameters for barrel and for two different cone sizes

Isolation parameters for Endcap and for two different cone sizes

Definition at line 29 of file PhotonIsolationCalculator.cc.

References barrelecalCollection_, beamSpotProducerTag_, caloGeometryToken_, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, ecalSevLvlToken_, endcapecalCollection_, flagsEB_, flagsEE_, edm::ParameterSet::getParameter(), hbheRecHitsTag_, hcalChannelQualityToken_, hcalIsoEThresHB_, hcalIsoEThresHE_, hcalIsoInnerRadAEB_, hcalIsoInnerRadAEE_, hcalIsoInnerRadBEB_, hcalIsoInnerRadBEE_, hcalIsoOuterRadAEB_, hcalIsoOuterRadAEE_, hcalIsoOuterRadBEB_, hcalIsoOuterRadBEE_, hcalSevLvlComputerToken_, hcalTopologyToken_, mps_fire::i, maxHcalSeverity_, moduleEtaBoundary_, modulePhiBoundary_, severityExclEB_, severityExclEE_, towerMapToken_, trackInputTag_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, useNumCrystals_, and vetoClusteredEcalHits_.

Referenced by PhotonProducer::PhotonProducer().

34  {
38  iC.consumes<EcalRecHitCollection>(conf.getParameter<edm::InputTag>("barrelEcalRecHitCollection"));
40  iC.consumes<EcalRecHitCollection>(conf.getParameter<edm::InputTag>("endcapEcalRecHitCollection"));
41 
42  auto hbhetag = conf.getParameter<edm::InputTag>("HBHERecHitCollection");
43  if (not hbhetag.label().empty())
45 
50  towerMapToken_ = decltype(towerMapToken_){iC.esConsumes()};
52 
53  // gsfRecoInputTag_ = conf.getParameter<edm::InputTag>("GsfRecoCollection");
54  modulePhiBoundary_ = conf.getParameter<double>("modulePhiBoundary");
55  moduleEtaBoundary_ = conf.getParameter<std::vector<double>>("moduleEtaBoundary");
56  //
57  vetoClusteredEcalHits_ = conf.getParameter<bool>("vetoClustered");
58  useNumCrystals_ = conf.getParameter<bool>("useNumCrystals");
59 
61  int i = 0;
62  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusA_Barrel"));
63  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusA_Barrel"));
64  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("isolationtrackThresholdA_Barrel"));
65  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("longImpactParameterA_Barrel"));
66  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("transImpactParameterA_Barrel"));
67  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceA_Barrel"));
68 
69  i = 0;
70  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusA_Barrel"));
71  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusA_Barrel"));
72  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceA_Barrel"));
73  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEA_Barrel"));
74  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtA_Barrel"));
75 
76  hcalIsoInnerRadAEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusA_Barrel");
77  hcalIsoOuterRadAEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusA_Barrel");
78 
79  i = 0;
80  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusB_Barrel"));
81  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusB_Barrel"));
82  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("isolationtrackThresholdB_Barrel"));
83  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("longImpactParameterB_Barrel"));
84  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("transImpactParameterB_Barrel"));
85  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceB_Barrel"));
86 
87  i = 0;
88  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusB_Barrel"));
89  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusB_Barrel"));
90  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceB_Barrel"));
91  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEB_Barrel"));
92  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtB_Barrel"));
93 
94  hcalIsoInnerRadBEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusB_Barrel");
95  hcalIsoOuterRadBEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusB_Barrel");
96 
98  i = 0;
99  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusA_Endcap"));
100  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusA_Endcap"));
101  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("isolationtrackThresholdA_Endcap"));
102  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("longImpactParameterA_Endcap"));
103  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("transImpactParameterA_Endcap"));
104  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceA_Endcap"));
105 
106  i = 0;
107  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusA_Endcap"));
108  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusA_Endcap"));
109  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceA_Endcap"));
110  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEA_Endcap"));
111  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtA_Endcap"));
112 
113  hcalIsoInnerRadAEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusA_Endcap");
114  hcalIsoOuterRadAEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusA_Endcap");
115 
116  i = 0;
117  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusB_Endcap"));
118  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusB_Endcap"));
119  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("isolationtrackThresholdB_Endcap"));
120  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("longImpactParameterB_Endcap"));
121  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("transImpactParameterB_Endcap"));
122  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceB_Endcap"));
123 
124  i = 0;
125  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusB_Endcap"));
126  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusB_Endcap"));
127  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceB_Endcap"));
128  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEB_Endcap"));
129  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtB_Endcap"));
130 
131  hcalIsoInnerRadBEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusB_Endcap");
132  hcalIsoOuterRadBEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusB_Endcap");
133 
134  //Pick up the variables for the spike removal
135  flagsEB_ = flagsEB;
136  flagsEE_ = flagsEE;
137  severityExclEB_ = severitiesEB;
138  severityExclEE_ = severitiesEE;
139 
140  hcalIsoEThresHB_ = conf.getParameter<EgammaHcalIsolation::arrayHB>("recHitEThresholdHB");
141  hcalIsoEThresHE_ = conf.getParameter<EgammaHcalIsolation::arrayHE>("recHitEThresholdHE");
142  maxHcalSeverity_ = conf.getParameter<int>("maxHcalRecHitSeverity");
143 }
std::array< double, 7 > hcalIsoInnerRadBEB_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::array< double, 6 > trkIsoBarrelRadiusA_
EgammaHcalIsolation::arrayHE hcalIsoEThresHE_
edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > ecalSevLvlToken_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitsTag_
std::array< double, 7 > hcalIsoOuterRadAEE_
std::array< double, 7 > hcalIsoInnerRadAEE_
std::array< double, 7 > hcalIsoOuterRadBEE_
std::array< double, 5 > ecalIsoEndcapRadiusB_
std::array< double, 7 > hcalIsoOuterRadAEB_
std::array< double, 6 > trkIsoEndcapRadiusB_
EgammaHcalIsolation::arrayHB hcalIsoEThresHB_
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_
std::array< double, 5 > ecalIsoBarrelRadiusA_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalTopologyToken_
std::vector< double > moduleEtaBoundary_
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > hcalSevLvlComputerToken_
std::array< double, 7 > hcalIsoInnerRadBEE_
std::array< double, 4 > arrayHB
std::array< double, 7 > hcalIsoOuterRadBEB_
std::array< double, 7 > hcalIsoInnerRadAEB_
std::array< double, 6 > trkIsoEndcapRadiusA_
std::array< double, 7 > arrayHE

Member Data Documentation

◆ barrelecalCollection_

edm::EDGetToken PhotonIsolationCalculator::barrelecalCollection_
private

Definition at line 96 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ beamSpotProducerTag_

edm::EDGetToken PhotonIsolationCalculator::beamSpotProducerTag_
private

Definition at line 108 of file PhotonIsolationCalculator.h.

Referenced by calculateTrackIso(), and setup().

◆ caloGeometryToken_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> PhotonIsolationCalculator::caloGeometryToken_
private

Definition at line 100 of file PhotonIsolationCalculator.h.

Referenced by calculate(), calculateEcalRecHitIso(), and setup().

◆ ecalIsoBarrelRadiusA_

std::array<double, 5> PhotonIsolationCalculator::ecalIsoBarrelRadiusA_
private

Definition at line 115 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalIsoBarrelRadiusB_

std::array<double, 5> PhotonIsolationCalculator::ecalIsoBarrelRadiusB_
private

Definition at line 117 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalIsoEndcapRadiusA_

std::array<double, 5> PhotonIsolationCalculator::ecalIsoEndcapRadiusA_
private

Definition at line 120 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalIsoEndcapRadiusB_

std::array<double, 5> PhotonIsolationCalculator::ecalIsoEndcapRadiusB_
private

Definition at line 122 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalSevLvlToken_

edm::ESGetToken<EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd> PhotonIsolationCalculator::ecalSevLvlToken_
private

Definition at line 105 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ endcapecalCollection_

edm::EDGetToken PhotonIsolationCalculator::endcapecalCollection_
private

Definition at line 97 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ flagsEB_

std::vector<int> PhotonIsolationCalculator::flagsEB_
private

Definition at line 140 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ flagsEE_

std::vector<int> PhotonIsolationCalculator::flagsEE_
private

Definition at line 141 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ hbheRecHitsTag_

edm::EDGetTokenT<HBHERecHitCollection> PhotonIsolationCalculator::hbheRecHitsTag_
private

Definition at line 98 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalChannelQualityToken_

edm::ESGetToken<HcalChannelQuality, HcalChannelQualityRcd> PhotonIsolationCalculator::hcalChannelQualityToken_
private

Definition at line 102 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoEThresHB_

EgammaHcalIsolation::arrayHB PhotonIsolationCalculator::hcalIsoEThresHB_
private

Definition at line 136 of file PhotonIsolationCalculator.h.

Referenced by calculateHcalRecHitIso(), and setup().

◆ hcalIsoEThresHE_

EgammaHcalIsolation::arrayHE PhotonIsolationCalculator::hcalIsoEThresHE_
private

Definition at line 137 of file PhotonIsolationCalculator.h.

Referenced by calculateHcalRecHitIso(), and setup().

◆ hcalIsoInnerRadAEB_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoInnerRadAEB_
private

Definition at line 124 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoInnerRadAEE_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoInnerRadAEE_
private

Definition at line 130 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoInnerRadBEB_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoInnerRadBEB_
private

Definition at line 127 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoInnerRadBEE_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoInnerRadBEE_
private

Definition at line 133 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadAEB_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoOuterRadAEB_
private

Definition at line 125 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadAEE_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoOuterRadAEE_
private

Definition at line 131 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadBEB_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoOuterRadBEB_
private

Definition at line 128 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadBEE_

std::array<double, 7> PhotonIsolationCalculator::hcalIsoOuterRadBEE_
private

Definition at line 134 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalSevLvlComputerToken_

edm::ESGetToken<HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd> PhotonIsolationCalculator::hcalSevLvlComputerToken_
private

Definition at line 103 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalTopologyToken_

edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> PhotonIsolationCalculator::hcalTopologyToken_
private

Definition at line 101 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ maxHcalSeverity_

int PhotonIsolationCalculator::maxHcalSeverity_
private

Definition at line 138 of file PhotonIsolationCalculator.h.

Referenced by calculateHcalRecHitIso(), and setup().

◆ moduleEtaBoundary_

std::vector<double> PhotonIsolationCalculator::moduleEtaBoundary_
private

Definition at line 110 of file PhotonIsolationCalculator.h.

Referenced by setup().

◆ modulePhiBoundary_

double PhotonIsolationCalculator::modulePhiBoundary_
private

Definition at line 109 of file PhotonIsolationCalculator.h.

Referenced by setup().

◆ severityExclEB_

std::vector<int> PhotonIsolationCalculator::severityExclEB_
private

Definition at line 142 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ severityExclEE_

std::vector<int> PhotonIsolationCalculator::severityExclEE_
private

Definition at line 143 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ towerMapToken_

edm::ESGetToken<CaloTowerConstituentsMap, CaloGeometryRecord> PhotonIsolationCalculator::towerMapToken_
private

Definition at line 104 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trackInputTag_

edm::EDGetToken PhotonIsolationCalculator::trackInputTag_
private

Definition at line 107 of file PhotonIsolationCalculator.h.

Referenced by calculateTrackIso(), and setup().

◆ trkIsoBarrelRadiusA_

std::array<double, 6> PhotonIsolationCalculator::trkIsoBarrelRadiusA_
private

Definition at line 114 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trkIsoBarrelRadiusB_

std::array<double, 6> PhotonIsolationCalculator::trkIsoBarrelRadiusB_
private

Definition at line 116 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trkIsoEndcapRadiusA_

std::array<double, 6> PhotonIsolationCalculator::trkIsoEndcapRadiusA_
private

Definition at line 119 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trkIsoEndcapRadiusB_

std::array<double, 6> PhotonIsolationCalculator::trkIsoEndcapRadiusB_
private

Definition at line 121 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ useNumCrystals_

bool PhotonIsolationCalculator::useNumCrystals_
private

Definition at line 112 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ vetoClusteredEcalHits_

bool PhotonIsolationCalculator::vetoClusteredEcalHits_
private

Definition at line 111 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().