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 HcalPFCuts *hcalCuts) 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 HcalPFCuts *hcalCuts) 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< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcdecalPFRechitThresholdsToken_
 
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 33 of file PhotonIsolationCalculator.h.

Constructor & Destructor Documentation

◆ PhotonIsolationCalculator()

PhotonIsolationCalculator::PhotonIsolationCalculator ( )
inline

Definition at line 35 of file PhotonIsolationCalculator.h.

35 {}

◆ ~PhotonIsolationCalculator()

PhotonIsolationCalculator::~PhotonIsolationCalculator ( )
inline

Definition at line 37 of file PhotonIsolationCalculator.h.

37 {}

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 HcalPFCuts hcalCuts 
) const

Definition at line 144 of file PhotonIsolationCalculator.cc.

References calculateEcalRecHitIso(), calculateTrackIso(), caloGeometryToken_, classify(), hcalRecHitTable_cff::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,
366  hcalCuts](double outer, double inner, int depth) {
367  return calculateHcalRecHitIso<false>(
368  pho, caloGeometry, hcalTopo, hcalQual, hcalSev, towerMap, hbheRecHits, outer, inner, depth, hcalCuts);
369  };
370 
371  auto fbc = [this,
372  pho,
373  &caloGeometry,
374  &hcalTopo = *hcalTopology,
375  &hcalQual = *hcalChannelQuality,
376  &hcalSev = *hcalSevLvlComputer,
377  &towerMap,
378  &hbheRecHits,
379  hcalCuts](double outer, int depth) {
380  return calculateHcalRecHitIso<true>(
381  pho, caloGeometry, hcalTopo, hcalQual, hcalSev, towerMap, hbheRecHits, outer, 0., depth, hcalCuts);
382  };
383 
384  for (size_t id = 0; id < phoisolR1.hcalRecHitSumEt.size(); ++id) {
385  const auto& outerA = detector == EcalBarrel ? hcalIsoOuterRadAEB_[id] : hcalIsoOuterRadAEE_[id];
386  const auto& outerB = detector == EcalBarrel ? hcalIsoOuterRadBEB_[id] : hcalIsoOuterRadBEE_[id];
387  const auto& innerA = detector == EcalBarrel ? hcalIsoInnerRadAEB_[id] : hcalIsoInnerRadAEE_[id];
388  const auto& innerB = detector == EcalBarrel ? hcalIsoInnerRadBEB_[id] : hcalIsoInnerRadBEE_[id];
389 
390  phoisolR1.hcalRecHitSumEt[id] = fcone(outerA, innerA, id + 1);
391  phoisolR2.hcalRecHitSumEt[id] = fcone(outerB, innerB, id + 1);
392 
393  phoisolR1.hcalRecHitSumEtBc[id] = fbc(outerA, id + 1);
394  phoisolR2.hcalRecHitSumEtBc[id] = fbc(outerB, id + 1);
395  }
396  }
397 
398  phoisolR1.pre7DepthHcal = false;
399  phoisolR2.pre7DepthHcal = false;
400 }
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 486 of file PhotonIsolationCalculator.cc.

References barrelecalCollection_, caloGeometryToken_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, ecalPFRechitThresholdsToken_, 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_, severityExclEE_, and particleFlowZeroSuppressionECAL_cff::thresholds.

Referenced by calculate().

495  {
496  edm::Handle<EcalRecHitCollection> ecalhitsCollEB;
497  edm::Handle<EcalRecHitCollection> ecalhitsCollEE;
498  iEvent.getByToken(endcapecalCollection_, ecalhitsCollEE);
499 
500  iEvent.getByToken(barrelecalCollection_, ecalhitsCollEB);
501 
502  auto const& thresholds = iSetup.getData(ecalPFRechitThresholdsToken_);
503 
504  const EcalRecHitCollection* rechitsCollectionEE_ = ecalhitsCollEE.product();
505  const EcalRecHitCollection* rechitsCollectionEB_ = ecalhitsCollEB.product();
506 
507  const EcalSeverityLevelAlgo* sevLevel = &iSetup.getData(ecalSevLvlToken_);
508 
510 
511  EgammaRecHitIsolation phoIsoEB(
512  RCone, RConeInner, etaSlice, etMin, eMin, geoHandle, *rechitsCollectionEB_, sevLevel, DetId::Ecal);
513 
514  phoIsoEB.setVetoClustered(vetoClusteredHits);
515  phoIsoEB.setUseNumCrystals(useNumXtals);
516  phoIsoEB.doSeverityChecks(ecalhitsCollEB.product(), severityExclEB_);
517  phoIsoEB.doFlagChecks(flagsEB_);
518  double ecalIsolEB = phoIsoEB.getEtSum(photon, thresholds);
519 
520  EgammaRecHitIsolation phoIsoEE(
521  RCone, RConeInner, etaSlice, etMin, eMin, geoHandle, *rechitsCollectionEE_, sevLevel, DetId::Ecal);
522 
523  phoIsoEE.setVetoClustered(vetoClusteredHits);
524  phoIsoEE.setUseNumCrystals(useNumXtals);
525  phoIsoEE.doSeverityChecks(ecalhitsCollEE.product(), severityExclEE_);
526  phoIsoEE.doFlagChecks(flagsEE_);
527 
528  double ecalIsolEE = phoIsoEE.getEtSum(photon, thresholds);
529  // delete phoIso;
530  double ecalIsol = ecalIsolEB + ecalIsolEE;
531 
532  return ecalIsol;
533 }
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
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > ecalPFRechitThresholdsToken_

◆ 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 HcalPFCuts hcalCuts 
) const
private

Definition at line 536 of file PhotonIsolationCalculator.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), hcalRecHitTable_cff::depth, ecalDrivenElectronSeeds_cfi::hbheRecHits, hcalIsoEThresHB_, hcalIsoEThresHE_, EgammaHcalIsolation::isBehindClusterSeed, maxHcalSeverity_, displacedMuons_cfi::photon, and EgammaHcalIsolation::withinConeAroundCluster.

546  {
547  const EgammaHcalIsolation::arrayHB e04{{0., 0., 0., 0.}};
548  const EgammaHcalIsolation::arrayHE e07{{0., 0., 0., 0., 0., 0., 0.}};
549 
550  if constexpr (isoBC) {
552  RCone,
554  RConeInner,
556  e04,
559  e07,
561  hbheRecHits,
562  geometry,
563  hcalTopology,
564  hcalChStatus,
565  hcalSevLvlComputer,
566  towerMap);
567 
568  return hcaliso.getHcalEtSumBc(photon, depth, hcalCuts);
569  } else {
571  RCone,
573  RConeInner,
575  e04,
578  e07,
580  hbheRecHits,
581  geometry,
582  hcalTopology,
583  hcalChStatus,
584  hcalSevLvlComputer,
585  towerMap);
586 
587  return hcaliso.getHcalEtSum(photon, depth, hcalCuts);
588  }
589 }
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 447 of file PhotonIsolationCalculator.cc.

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

Referenced by calculate().

456  {
457  ntrkCone = 0;
458  trkCone = 0;
459  //get the tracks
461  e.getByToken(trackInputTag_, tracks);
462  if (!tracks.isValid()) {
463  return;
464  }
465  const reco::TrackCollection* trackCollection = tracks.product();
466  //Photon Eta and Phi. Hope these are correct.
467  reco::BeamSpot vertexBeamSpot;
468  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
469  e.getByToken(beamSpotProducerTag_, recoBeamSpotHandle);
470  vertexBeamSpot = *recoBeamSpotHandle;
471 
472  PhotonTkIsolation phoIso(RCone,
473  RinnerCone,
474  etaSlice,
475  pTThresh,
476  lip,
477  d0,
479  math::XYZPoint(vertexBeamSpot.x0(), vertexBeamSpot.y0(), vertexBeamSpot.z0()));
480 
481  std::pair<int, double> res = phoIso.getIso(photon);
482  ntrkCone = res.first;
483  trkCone = res.second;
484 }
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 402 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().

409  {
410  const reco::CaloCluster& seedCluster = *(photon->superCluster()->seed());
411  // following line is temporary until the D. Evans or F. Ferri submit the new tag for ClusterAlgos
412  // DEfinitive will be
413  // DetId seedXtalId = scRef->seed()->seed();
414  DetId seedXtalId = seedCluster.hitsAndFractions()[0].first;
415  int detector = seedXtalId.subdetId();
416 
417  //Set fiducial flags for this photon.
418  double eta = photon->superCluster()->position().eta();
419  double feta = fabs(eta);
420 
421  if (detector == EcalBarrel) {
422  isEBPho = true;
423  if (EBDetId::isNextToEtaBoundary(EBDetId(seedXtalId))) {
424  if (fabs(feta - 1.479) < .1)
425  isEBEEGap = true;
426  else
427  isEBEtaGap = true;
428  }
429 
430  if (EBDetId::isNextToPhiBoundary(EBDetId(seedXtalId)))
431  isEBPhiGap = true;
432 
433  } else if (detector == EcalEndcap) {
434  isEEPho = true;
435  if (EEDetId::isNextToRingBoundary(EEDetId(seedXtalId))) {
436  if (fabs(feta - 1.479) < .1)
437  isEBEEGap = true;
438  else
439  isEERingGap = true;
440  }
441 
442  if (EEDetId::isNextToDBoundary(EEDetId(seedXtalId)))
443  isEEDeeGap = true;
444  }
445 }
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_, ecalPFRechitThresholdsToken_, 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()};
53  modulePhiBoundary_ = conf.getParameter<double>("modulePhiBoundary");
54  moduleEtaBoundary_ = conf.getParameter<std::vector<double>>("moduleEtaBoundary");
55  //
56  vetoClusteredEcalHits_ = conf.getParameter<bool>("vetoClustered");
57  useNumCrystals_ = conf.getParameter<bool>("useNumCrystals");
58 
60  int i = 0;
61  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusA_Barrel"));
62  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusA_Barrel"));
63  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("isolationtrackThresholdA_Barrel"));
64  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("longImpactParameterA_Barrel"));
65  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("transImpactParameterA_Barrel"));
66  trkIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceA_Barrel"));
67 
68  i = 0;
69  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusA_Barrel"));
70  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusA_Barrel"));
71  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceA_Barrel"));
72  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEA_Barrel"));
73  ecalIsoBarrelRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtA_Barrel"));
74 
75  hcalIsoInnerRadAEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusA_Barrel");
76  hcalIsoOuterRadAEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusA_Barrel");
77 
78  i = 0;
79  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusB_Barrel"));
80  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusB_Barrel"));
81  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("isolationtrackThresholdB_Barrel"));
82  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("longImpactParameterB_Barrel"));
83  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("transImpactParameterB_Barrel"));
84  trkIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceB_Barrel"));
85 
86  i = 0;
87  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusB_Barrel"));
88  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusB_Barrel"));
89  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceB_Barrel"));
90  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEB_Barrel"));
91  ecalIsoBarrelRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtB_Barrel"));
92 
93  hcalIsoInnerRadBEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusB_Barrel");
94  hcalIsoOuterRadBEB_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusB_Barrel");
95 
97  i = 0;
98  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusA_Endcap"));
99  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusA_Endcap"));
100  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("isolationtrackThresholdA_Endcap"));
101  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("longImpactParameterA_Endcap"));
102  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("transImpactParameterA_Endcap"));
103  trkIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceA_Endcap"));
104 
105  i = 0;
106  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusA_Endcap"));
107  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusA_Endcap"));
108  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceA_Endcap"));
109  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEA_Endcap"));
110  ecalIsoEndcapRadiusA_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtA_Endcap"));
111 
112  hcalIsoInnerRadAEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusA_Endcap");
113  hcalIsoOuterRadAEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusA_Endcap");
114 
115  i = 0;
116  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("TrackConeOuterRadiusB_Endcap"));
117  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("TrackConeInnerRadiusB_Endcap"));
118  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("isolationtrackThresholdB_Endcap"));
119  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("longImpactParameterB_Endcap"));
120  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("transImpactParameterB_Endcap"));
121  trkIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("isolationtrackEtaSliceB_Endcap"));
122 
123  i = 0;
124  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitInnerRadiusB_Endcap"));
125  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitOuterRadiusB_Endcap"));
126  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitEtaSliceB_Endcap"));
127  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEB_Endcap"));
128  ecalIsoEndcapRadiusB_[i++] = (conf.getParameter<double>("EcalRecHitThreshEtB_Endcap"));
129 
130  hcalIsoInnerRadBEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitInnerRadiusB_Endcap");
131  hcalIsoOuterRadBEE_ = conf.getParameter<std::array<double, 7>>("HcalRecHitOuterRadiusB_Endcap");
132 
133  //Pick up the variables for the spike removal
134  flagsEB_ = flagsEB;
135  flagsEE_ = flagsEE;
136  severityExclEB_ = severitiesEB;
137  severityExclEE_ = severitiesEE;
138 
139  hcalIsoEThresHB_ = conf.getParameter<EgammaHcalIsolation::arrayHB>("recHitEThresholdHB");
140  hcalIsoEThresHE_ = conf.getParameter<EgammaHcalIsolation::arrayHE>("recHitEThresholdHE");
141  maxHcalSeverity_ = conf.getParameter<int>("maxHcalRecHitSeverity");
142 }
std::array< double, 7 > hcalIsoInnerRadBEB_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
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_
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > ecalPFRechitThresholdsToken_
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 100 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ beamSpotProducerTag_

edm::EDGetToken PhotonIsolationCalculator::beamSpotProducerTag_
private

Definition at line 113 of file PhotonIsolationCalculator.h.

Referenced by calculateTrackIso(), and setup().

◆ caloGeometryToken_

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

Definition at line 104 of file PhotonIsolationCalculator.h.

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

◆ ecalIsoBarrelRadiusA_

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

Definition at line 120 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalIsoBarrelRadiusB_

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

Definition at line 122 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalIsoEndcapRadiusA_

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

Definition at line 125 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalIsoEndcapRadiusB_

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

Definition at line 127 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ ecalPFRechitThresholdsToken_

edm::ESGetToken<EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd> PhotonIsolationCalculator::ecalPFRechitThresholdsToken_
private

Definition at line 110 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ ecalSevLvlToken_

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

Definition at line 109 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ endcapecalCollection_

edm::EDGetToken PhotonIsolationCalculator::endcapecalCollection_
private

Definition at line 101 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ flagsEB_

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

Definition at line 145 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ flagsEE_

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

Definition at line 146 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ hbheRecHitsTag_

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

Definition at line 102 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalChannelQualityToken_

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

Definition at line 106 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoEThresHB_

EgammaHcalIsolation::arrayHB PhotonIsolationCalculator::hcalIsoEThresHB_
private

Definition at line 141 of file PhotonIsolationCalculator.h.

Referenced by calculateHcalRecHitIso(), and setup().

◆ hcalIsoEThresHE_

EgammaHcalIsolation::arrayHE PhotonIsolationCalculator::hcalIsoEThresHE_
private

Definition at line 142 of file PhotonIsolationCalculator.h.

Referenced by calculateHcalRecHitIso(), and setup().

◆ hcalIsoInnerRadAEB_

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

Definition at line 129 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoInnerRadAEE_

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

Definition at line 135 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoInnerRadBEB_

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

Definition at line 132 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoInnerRadBEE_

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

Definition at line 138 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadAEB_

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

Definition at line 130 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadAEE_

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

Definition at line 136 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadBEB_

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

Definition at line 133 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalIsoOuterRadBEE_

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

Definition at line 139 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalSevLvlComputerToken_

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

Definition at line 107 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ hcalTopologyToken_

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

Definition at line 105 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ maxHcalSeverity_

int PhotonIsolationCalculator::maxHcalSeverity_
private

Definition at line 143 of file PhotonIsolationCalculator.h.

Referenced by calculateHcalRecHitIso(), and setup().

◆ moduleEtaBoundary_

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

Definition at line 115 of file PhotonIsolationCalculator.h.

Referenced by setup().

◆ modulePhiBoundary_

double PhotonIsolationCalculator::modulePhiBoundary_
private

Definition at line 114 of file PhotonIsolationCalculator.h.

Referenced by setup().

◆ severityExclEB_

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

Definition at line 147 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ severityExclEE_

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

Definition at line 148 of file PhotonIsolationCalculator.h.

Referenced by calculateEcalRecHitIso(), and setup().

◆ towerMapToken_

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

Definition at line 108 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trackInputTag_

edm::EDGetToken PhotonIsolationCalculator::trackInputTag_
private

Definition at line 112 of file PhotonIsolationCalculator.h.

Referenced by calculateTrackIso(), and setup().

◆ trkIsoBarrelRadiusA_

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

Definition at line 119 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trkIsoBarrelRadiusB_

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

Definition at line 121 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trkIsoEndcapRadiusA_

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

Definition at line 124 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ trkIsoEndcapRadiusB_

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

Definition at line 126 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ useNumCrystals_

bool PhotonIsolationCalculator::useNumCrystals_
private

Definition at line 117 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().

◆ vetoClusteredEcalHits_

bool PhotonIsolationCalculator::vetoClusteredEcalHits_
private

Definition at line 116 of file PhotonIsolationCalculator.h.

Referenced by calculate(), and setup().