CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
GsfElectronAlgo Class Reference

#include <GsfElectronAlgo.h>

Classes

struct  Configuration
 
struct  CutsConfiguration
 
struct  EcalRecHitsConfiguration
 
struct  ElectronData
 
struct  EventData
 
class  HeavyObjectCache
 
struct  IsolationConfiguration
 
struct  StrategyConfiguration
 
struct  Tokens
 

Public Member Functions

reco::GsfElectronCollection completeElectrons (edm::Event const &event, edm::EventSetup const &eventSetup, const HeavyObjectCache *hoc)
 
 GsfElectronAlgo (const Tokens &, const StrategyConfiguration &, const CutsConfiguration &cutsCfg, const ElectronHcalHelper::Configuration &hcalCfg, const IsolationConfiguration &, const EcalRecHitsConfiguration &, std::unique_ptr< EcalClusterFunctionBaseClass > &&superClusterErrorFunction, std::unique_ptr< EcalClusterFunctionBaseClass > &&crackCorrectionFunction, const RegressionHelper::Configuration &regCfg, const edm::ParameterSet &tkIsol03Cfg, const edm::ParameterSet &tkIsol04Cfg, const edm::ParameterSet &tkIsolHEEP03Cfg, const edm::ParameterSet &tkIsolHEEP04Cfg, edm::ConsumesCollector &&cc)
 

Private Member Functions

EventData beginEvent (edm::Event const &event, CaloGeometry const &caloGeometry, EcalSeverityLevelAlgo const &ecalSeveretyLevelAlgo)
 
reco::GsfElectron::SaturationInfo calculateSaturationInfo (const reco::SuperClusterRef &, EventData const &eventData) const
 
template<bool full5x5>
reco::GsfElectron::ShowerShape calculateShowerShape (const reco::SuperClusterRef &, ElectronHcalHelper const &hcalHelper, EventData const &eventData, CaloTopology const &topology, CaloGeometry const &geometry) const
 
void checkSetup (edm::EventSetup const &eventSetup)
 
void createElectron (reco::GsfElectronCollection &electrons, ElectronData &electronData, EventData &eventData, CaloTopology const &topology, CaloGeometry const &geometry, MultiTrajectoryStateTransform const &mtsTransform, double magneticFieldInTesla, const HeavyObjectCache *, egamma::conv::TrackTableView ctfTable, egamma::conv::TrackTableView gsfTable)
 
void setCutBasedPreselectionFlag (reco::GsfElectron &ele, const reco::BeamSpot &) const
 
void setPixelMatchInfomation (reco::GsfElectron &) const
 

Private Attributes

const edm::ESGetToken< CaloGeometry, CaloGeometryRecordcaloGeometryToken_
 
const edm::ESGetToken< CaloTopology, CaloTopologyRecordcaloTopologyToken_
 
const Configuration cfg_
 
std::unique_ptr< EcalClusterFunctionBaseClasscrackCorrectionFunction_
 
const edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcdecalSeveretyLevelAlgoToken_
 
ElectronHcalHelper hcalHelper_
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagneticFieldToken_
 
RegressionHelper regHelper_
 
std::unique_ptr< EcalClusterFunctionBaseClasssuperClusterErrorFunction_
 
const EleTkIsolFromCands::Configuration tkIsol03CalcCfg_
 
const EleTkIsolFromCands::Configuration tkIsol04CalcCfg_
 
const EleTkIsolFromCands::Configuration tkIsolHEEP03CalcCfg_
 
const EleTkIsolFromCands::Configuration tkIsolHEEP04CalcCfg_
 
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordtrackerGeometryToken_
 

Detailed Description

Definition at line 50 of file GsfElectronAlgo.h.

Constructor & Destructor Documentation

◆ GsfElectronAlgo()

GsfElectronAlgo::GsfElectronAlgo ( const Tokens input,
const StrategyConfiguration strategy,
const CutsConfiguration cutsCfg,
const ElectronHcalHelper::Configuration hcalCfg,
const IsolationConfiguration iso,
const EcalRecHitsConfiguration recHits,
std::unique_ptr< EcalClusterFunctionBaseClass > &&  superClusterErrorFunction,
std::unique_ptr< EcalClusterFunctionBaseClass > &&  crackCorrectionFunction,
const RegressionHelper::Configuration regCfg,
const edm::ParameterSet tkIsol03Cfg,
const edm::ParameterSet tkIsol04Cfg,
const edm::ParameterSet tkIsolHEEP03Cfg,
const edm::ParameterSet tkIsolHEEP04Cfg,
edm::ConsumesCollector &&  cc 
)

Definition at line 367 of file GsfElectronAlgo.cc.

381  : cfg_{input, strategy, cuts, iso, recHits},
382  tkIsol03CalcCfg_(tkIsol03),
383  tkIsol04CalcCfg_(tkIsol04),
384  tkIsolHEEP03CalcCfg_(tkIsolHEEP03),
385  tkIsolHEEP04CalcCfg_(tkIsolHEEP04),
386  magneticFieldToken_{cc.esConsumes()},
387  caloGeometryToken_{cc.esConsumes()},
388  caloTopologyToken_{cc.esConsumes()},
389  trackerGeometryToken_{cc.esConsumes()},
390  ecalSeveretyLevelAlgoToken_{cc.esConsumes()},
393  std::forward<std::unique_ptr<EcalClusterFunctionBaseClass>>(superClusterErrorFunction)},
394  crackCorrectionFunction_{std::forward<std::unique_ptr<EcalClusterFunctionBaseClass>>(crackCorrectionFunction)},
396 
397 {}

References L1TMuonDQMOffline_cfi::cuts, input, and FastTrackerRecHitMaskProducer_cfi::recHits.

Member Function Documentation

◆ beginEvent()

GsfElectronAlgo::EventData GsfElectronAlgo::beginEvent ( edm::Event const &  event,
CaloGeometry const &  caloGeometry,
EcalSeverityLevelAlgo const &  ecalSeveretyLevelAlgo 
)
private

Definition at line 411 of file GsfElectronAlgo.cc.

413  {
414  auto const& towers = event.get(cfg_.tokens.hcalTowersTag);
415 
416  // Isolation algos
417  float egHcalIsoConeSizeOutSmall = 0.3, egHcalIsoConeSizeOutLarge = 0.4;
418  float egHcalIsoConeSizeIn = cfg_.iso.intRadiusHcal, egHcalIsoPtMin = cfg_.iso.etMinHcal;
419  int egHcalDepth1 = 1, egHcalDepth2 = 2;
420 
421  float egIsoConeSizeOutSmall = 0.3, egIsoConeSizeOutLarge = 0.4, egIsoJurassicWidth = cfg_.iso.jurassicWidth;
422  float egIsoPtMinBarrel = cfg_.iso.etMinBarrel, egIsoEMinBarrel = cfg_.iso.eMinBarrel,
423  egIsoConeSizeInBarrel = cfg_.iso.intRadiusEcalBarrel;
424  float egIsoPtMinEndcap = cfg_.iso.etMinEndcaps, egIsoEMinEndcap = cfg_.iso.eMinEndcaps,
425  egIsoConeSizeInEndcap = cfg_.iso.intRadiusEcalEndcaps;
426 
427  auto barrelRecHits = event.getHandle(cfg_.tokens.barrelRecHitCollection);
428  auto endcapRecHits = event.getHandle(cfg_.tokens.endcapRecHitCollection);
429 
430  auto ctfTracks = event.getHandle(cfg_.tokens.ctfTracks);
431 
432  EventData eventData{
433  .event = &event,
434  .beamspot = &event.get(cfg_.tokens.beamSpotTag),
435  .coreElectrons = event.getHandle(cfg_.tokens.gsfElectronCores),
436  .barrelRecHits = barrelRecHits,
437  .endcapRecHits = endcapRecHits,
438  .currentCtfTracks = ctfTracks,
439  .seeds = event.getHandle(cfg_.tokens.seedsTag),
440  .vertices = event.getHandle(cfg_.tokens.vtxCollectionTag),
441  .conversions = cfg_.strategy.fillConvVtxFitProb ? event.getHandle(cfg_.tokens.conversions)
443  .hadDepth1Isolation03 =
444  EgammaTowerIsolation(egHcalIsoConeSizeOutSmall, egHcalIsoConeSizeIn, egHcalIsoPtMin, egHcalDepth1, &towers),
445  .hadDepth1Isolation04 =
446  EgammaTowerIsolation(egHcalIsoConeSizeOutLarge, egHcalIsoConeSizeIn, egHcalIsoPtMin, egHcalDepth1, &towers),
447  .hadDepth2Isolation03 =
448  EgammaTowerIsolation(egHcalIsoConeSizeOutSmall, egHcalIsoConeSizeIn, egHcalIsoPtMin, egHcalDepth2, &towers),
449  .hadDepth2Isolation04 =
450  EgammaTowerIsolation(egHcalIsoConeSizeOutLarge, egHcalIsoConeSizeIn, egHcalIsoPtMin, egHcalDepth2, &towers),
451  .hadDepth1Isolation03Bc =
452  EgammaTowerIsolation(egHcalIsoConeSizeOutSmall, 0., egHcalIsoPtMin, egHcalDepth1, &towers),
453  .hadDepth1Isolation04Bc =
454  EgammaTowerIsolation(egHcalIsoConeSizeOutLarge, 0., egHcalIsoPtMin, egHcalDepth1, &towers),
455  .hadDepth2Isolation03Bc =
456  EgammaTowerIsolation(egHcalIsoConeSizeOutSmall, 0., egHcalIsoPtMin, egHcalDepth2, &towers),
457  .hadDepth2Isolation04Bc =
458  EgammaTowerIsolation(egHcalIsoConeSizeOutLarge, 0., egHcalIsoPtMin, egHcalDepth2, &towers),
459  .ecalBarrelIsol03 = EgammaRecHitIsolation(egIsoConeSizeOutSmall,
460  egIsoConeSizeInBarrel,
461  egIsoJurassicWidth,
462  egIsoPtMinBarrel,
463  egIsoEMinBarrel,
464  &caloGeometry,
465  *barrelRecHits,
466  &ecalSeveretyLevelAlgo,
467  DetId::Ecal),
468  .ecalBarrelIsol04 = EgammaRecHitIsolation(egIsoConeSizeOutLarge,
469  egIsoConeSizeInBarrel,
470  egIsoJurassicWidth,
471  egIsoPtMinBarrel,
472  egIsoEMinBarrel,
473  &caloGeometry,
474  *barrelRecHits,
475  &ecalSeveretyLevelAlgo,
476  DetId::Ecal),
477  .ecalEndcapIsol03 = EgammaRecHitIsolation(egIsoConeSizeOutSmall,
478  egIsoConeSizeInEndcap,
479  egIsoJurassicWidth,
480  egIsoPtMinEndcap,
481  egIsoEMinEndcap,
482  &caloGeometry,
483  *endcapRecHits,
484  &ecalSeveretyLevelAlgo,
485  DetId::Ecal),
486  .ecalEndcapIsol04 = EgammaRecHitIsolation(egIsoConeSizeOutLarge,
487  egIsoConeSizeInEndcap,
488  egIsoJurassicWidth,
489  egIsoPtMinEndcap,
490  egIsoEMinEndcap,
491  &caloGeometry,
492  *endcapRecHits,
493  &ecalSeveretyLevelAlgo,
494  DetId::Ecal),
495  .tkIsol03Calc = EleTkIsolFromCands(tkIsol03CalcCfg_, *ctfTracks),
496  .tkIsol04Calc = EleTkIsolFromCands(tkIsol04CalcCfg_, *ctfTracks),
497  .tkIsolHEEP03Calc = EleTkIsolFromCands(tkIsolHEEP03CalcCfg_, *ctfTracks),
498  .tkIsolHEEP04Calc = EleTkIsolFromCands(tkIsolHEEP04CalcCfg_, *ctfTracks),
499  .originalCtfTracks = {},
500  .originalGsfTracks = {}};
501 
502  eventData.ecalBarrelIsol03.setUseNumCrystals(cfg_.iso.useNumCrystals);
503  eventData.ecalBarrelIsol03.setVetoClustered(cfg_.iso.vetoClustered);
504  eventData.ecalBarrelIsol03.doSeverityChecks(eventData.barrelRecHits.product(),
506  eventData.ecalBarrelIsol03.doFlagChecks(cfg_.recHits.recHitFlagsToBeExcludedBarrel);
507  eventData.ecalBarrelIsol04.setUseNumCrystals(cfg_.iso.useNumCrystals);
508  eventData.ecalBarrelIsol04.setVetoClustered(cfg_.iso.vetoClustered);
509  eventData.ecalBarrelIsol04.doSeverityChecks(eventData.barrelRecHits.product(),
511  eventData.ecalBarrelIsol04.doFlagChecks(cfg_.recHits.recHitFlagsToBeExcludedBarrel);
512  eventData.ecalEndcapIsol03.setUseNumCrystals(cfg_.iso.useNumCrystals);
513  eventData.ecalEndcapIsol03.setVetoClustered(cfg_.iso.vetoClustered);
514  eventData.ecalEndcapIsol03.doSeverityChecks(eventData.endcapRecHits.product(),
516  eventData.ecalEndcapIsol03.doFlagChecks(cfg_.recHits.recHitFlagsToBeExcludedEndcaps);
517  eventData.ecalEndcapIsol04.setUseNumCrystals(cfg_.iso.useNumCrystals);
518  eventData.ecalEndcapIsol04.setVetoClustered(cfg_.iso.vetoClustered);
519  eventData.ecalEndcapIsol04.doSeverityChecks(eventData.endcapRecHits.product(),
521  eventData.ecalEndcapIsol04.doFlagChecks(cfg_.recHits.recHitFlagsToBeExcludedEndcaps);
522 
523  return eventData;
524 }

References GsfElectronAlgo::Tokens::barrelRecHitCollection, HLT_FULL_cff::barrelRecHits, GsfElectronAlgo::Tokens::beamSpotTag, cfg_, GsfElectronAlgo::Tokens::conversions, lowPtGsfElectronCores_cff::ctfTracks, GsfElectronAlgo::Tokens::ctfTracks, DetId::Ecal, GsfElectronAlgo::IsolationConfiguration::eMinBarrel, GsfElectronAlgo::IsolationConfiguration::eMinEndcaps, GsfElectronAlgo::Tokens::endcapRecHitCollection, HLT_FULL_cff::endcapRecHits, GsfElectronAlgo::IsolationConfiguration::etMinBarrel, GsfElectronAlgo::IsolationConfiguration::etMinEndcaps, GsfElectronAlgo::IsolationConfiguration::etMinHcal, GsfElectronAlgo::EventData::event, edmPickEvents::event, GsfElectronAlgo::StrategyConfiguration::fillConvVtxFitProb, GsfElectronAlgo::Tokens::gsfElectronCores, GsfElectronAlgo::Tokens::hcalTowersTag, GsfElectronAlgo::IsolationConfiguration::intRadiusEcalBarrel, GsfElectronAlgo::IsolationConfiguration::intRadiusEcalEndcaps, GsfElectronAlgo::IsolationConfiguration::intRadiusHcal, GsfElectronAlgo::Configuration::iso, GsfElectronAlgo::IsolationConfiguration::jurassicWidth, GsfElectronAlgo::EcalRecHitsConfiguration::recHitFlagsToBeExcludedBarrel, GsfElectronAlgo::EcalRecHitsConfiguration::recHitFlagsToBeExcludedEndcaps, GsfElectronAlgo::Configuration::recHits, GsfElectronAlgo::EcalRecHitsConfiguration::recHitSeverityToBeExcludedBarrel, GsfElectronAlgo::EcalRecHitsConfiguration::recHitSeverityToBeExcludedEndcaps, GsfElectronAlgo::Tokens::seedsTag, GsfElectronAlgo::Configuration::strategy, tkIsol03CalcCfg_, tkIsol04CalcCfg_, tkIsolHEEP03CalcCfg_, tkIsolHEEP04CalcCfg_, GsfElectronAlgo::Configuration::tokens, HLT_FULL_cff::towers, GsfElectronAlgo::IsolationConfiguration::useNumCrystals, GsfElectronAlgo::IsolationConfiguration::vetoClustered, and GsfElectronAlgo::Tokens::vtxCollectionTag.

Referenced by completeElectrons().

◆ calculateSaturationInfo()

reco::GsfElectron::SaturationInfo GsfElectronAlgo::calculateSaturationInfo ( const reco::SuperClusterRef theClus,
EventData const &  eventData 
) const
private

Definition at line 258 of file GsfElectronAlgo.cc.

259  {
261 
262  const reco::CaloCluster& seedCluster = *(theClus->seed());
263  DetId seedXtalId = seedCluster.seed();
264  int detector = seedXtalId.subdetId();
265  const EcalRecHitCollection* ecalRecHits = nullptr;
266  if (detector == EcalBarrel)
267  ecalRecHits = eventData.barrelRecHits.product();
268  else
269  ecalRecHits = eventData.endcapRecHits.product();
270 
271  int nSaturatedXtals = 0;
272  bool isSeedSaturated = false;
273  for (auto&& hitFractionPair : theClus->hitsAndFractions()) {
274  auto&& ecalRecHit = ecalRecHits->find(hitFractionPair.first);
275  if (ecalRecHit == ecalRecHits->end())
276  continue;
277  if (ecalRecHit->checkFlag(EcalRecHit::Flags::kSaturated)) {
278  nSaturatedXtals++;
279  if (seedXtalId == ecalRecHit->detid())
280  isSeedSaturated = true;
281  }
282  }
283  si.nSaturatedXtals = nSaturatedXtals;
284  si.isSeedSaturated = isSeedSaturated;
285 
286  return si;
287 }

References GsfElectronAlgo::EventData::barrelRecHits, hgcalTestNeighbor_cfi::detector, EcalBarrel, IOMC_cff::ecalRecHit, edm::SortedCollection< T, SORT >::end(), GsfElectronAlgo::EventData::endcapRecHits, edm::SortedCollection< T, SORT >::find(), reco::GsfElectron::SaturationInfo::isSeedSaturated, reco::GsfElectron::SaturationInfo::nSaturatedXtals, reco::CaloCluster::seed(), and DetId::subdetId().

Referenced by createElectron().

◆ calculateShowerShape()

template<bool full5x5>
reco::GsfElectron::ShowerShape GsfElectronAlgo::calculateShowerShape ( const reco::SuperClusterRef theClus,
ElectronHcalHelper const &  hcalHelper,
EventData const &  eventData,
CaloTopology const &  topology,
CaloGeometry const &  geometry 
) const
private

Definition at line 290 of file GsfElectronAlgo.cc.

294  {
295  using ClusterTools = EcalClusterToolsT<full5x5>;
296  reco::GsfElectron::ShowerShape showerShape;
297 
298  const reco::CaloCluster& seedCluster = *(theClus->seed());
299  // temporary, till CaloCluster->seed() is made available
300  DetId seedXtalId = seedCluster.hitsAndFractions()[0].first;
301  int detector = seedXtalId.subdetId();
302 
303  const EcalRecHitCollection* recHits = nullptr;
304  std::vector<int> recHitFlagsToBeExcluded;
305  std::vector<int> recHitSeverityToBeExcluded;
306  if (detector == EcalBarrel) {
307  recHits = eventData.barrelRecHits.product();
308  recHitFlagsToBeExcluded = cfg_.recHits.recHitFlagsToBeExcludedBarrel;
309  recHitSeverityToBeExcluded = cfg_.recHits.recHitSeverityToBeExcludedBarrel;
310  } else {
311  recHits = eventData.endcapRecHits.product();
312  recHitFlagsToBeExcluded = cfg_.recHits.recHitFlagsToBeExcludedEndcaps;
313  recHitSeverityToBeExcluded = cfg_.recHits.recHitSeverityToBeExcludedEndcaps;
314  }
315 
316  std::vector<float> covariances = ClusterTools::covariances(seedCluster, recHits, &topology, &geometry);
317  std::vector<float> localCovariances = ClusterTools::localCovariances(seedCluster, recHits, &topology);
318  showerShape.sigmaEtaEta = sqrt(covariances[0]);
319  showerShape.sigmaIetaIeta = sqrt(localCovariances[0]);
320  if (!edm::isNotFinite(localCovariances[2]))
321  showerShape.sigmaIphiIphi = sqrt(localCovariances[2]);
322  showerShape.e1x5 = ClusterTools::e1x5(seedCluster, recHits, &topology);
323  showerShape.e2x5Max = ClusterTools::e2x5Max(seedCluster, recHits, &topology);
324  showerShape.e5x5 = ClusterTools::e5x5(seedCluster, recHits, &topology);
325  showerShape.r9 = ClusterTools::e3x3(seedCluster, recHits, &topology) / theClus->rawEnergy();
326 
327  const float scale = full5x5 ? showerShape.e5x5 : theClus->energy();
328 
329  showerShape.hcalDepth1OverEcal = hcalHelper.hcalESumDepth1(*theClus) / theClus->energy();
330  showerShape.hcalDepth2OverEcal = hcalHelper.hcalESumDepth2(*theClus) / theClus->energy();
331  showerShape.hcalTowersBehindClusters = hcalHelper.hcalTowersBehindClusters(*theClus);
332  showerShape.hcalDepth1OverEcalBc =
333  hcalHelper.hcalESumDepth1BehindClusters(showerShape.hcalTowersBehindClusters) / scale;
334  showerShape.hcalDepth2OverEcalBc =
335  hcalHelper.hcalESumDepth2BehindClusters(showerShape.hcalTowersBehindClusters) / scale;
336  showerShape.invalidHcal = (showerShape.hcalDepth1OverEcalBc == 0 && showerShape.hcalDepth2OverEcalBc == 0 &&
337  !hcalHelper.hasActiveHcal(*theClus));
338 
339  // extra shower shapes
340  const float see_by_spp = showerShape.sigmaIetaIeta * showerShape.sigmaIphiIphi;
341  if (see_by_spp > 0) {
342  showerShape.sigmaIetaIphi = localCovariances[1] / see_by_spp;
343  } else if (localCovariances[1] > 0) {
344  showerShape.sigmaIetaIphi = 1.f;
345  } else {
346  showerShape.sigmaIetaIphi = -1.f;
347  }
348  showerShape.eMax = ClusterTools::eMax(seedCluster, recHits);
349  showerShape.e2nd = ClusterTools::e2nd(seedCluster, recHits);
350  showerShape.eTop = ClusterTools::eTop(seedCluster, recHits, &topology);
351  showerShape.eLeft = ClusterTools::eLeft(seedCluster, recHits, &topology);
352  showerShape.eRight = ClusterTools::eRight(seedCluster, recHits, &topology);
353  showerShape.eBottom = ClusterTools::eBottom(seedCluster, recHits, &topology);
354 
355  showerShape.e2x5Left = ClusterTools::e2x5Left(seedCluster, recHits, &topology);
356  showerShape.e2x5Right = ClusterTools::e2x5Right(seedCluster, recHits, &topology);
357  showerShape.e2x5Top = ClusterTools::e2x5Top(seedCluster, recHits, &topology);
358  showerShape.e2x5Bottom = ClusterTools::e2x5Bottom(seedCluster, recHits, &topology);
359 
360  return showerShape;
361 }

References GsfElectronAlgo::EventData::barrelRecHits, cfg_, hgcalTestNeighbor_cfi::detector, EgHLTOffHistBins_cfi::e1x5, reco::GsfElectron::ShowerShape::e1x5, reco::GsfElectron::ShowerShape::e2nd, reco::GsfElectron::ShowerShape::e2x5Bottom, reco::GsfElectron::ShowerShape::e2x5Left, reco::GsfElectron::ShowerShape::e2x5Max, reco::GsfElectron::ShowerShape::e2x5Right, reco::GsfElectron::ShowerShape::e2x5Top, reco::GsfElectron::ShowerShape::e5x5, reco::GsfElectron::ShowerShape::eBottom, EcalBarrel, reco::GsfElectron::ShowerShape::eLeft, cosmicPhotonAnalyzer_cfi::eMax, reco::GsfElectron::ShowerShape::eMax, GsfElectronAlgo::EventData::endcapRecHits, reco::GsfElectron::ShowerShape::eRight, reco::GsfElectron::ShowerShape::eTop, ElectronHcalHelper::hasActiveHcal(), reco::GsfElectron::ShowerShape::hcalDepth1OverEcal, reco::GsfElectron::ShowerShape::hcalDepth1OverEcalBc, reco::GsfElectron::ShowerShape::hcalDepth2OverEcal, reco::GsfElectron::ShowerShape::hcalDepth2OverEcalBc, ElectronHcalHelper::hcalESumDepth1(), ElectronHcalHelper::hcalESumDepth1BehindClusters(), ElectronHcalHelper::hcalESumDepth2(), ElectronHcalHelper::hcalESumDepth2BehindClusters(), ElectronHcalHelper::hcalTowersBehindClusters(), reco::GsfElectron::ShowerShape::hcalTowersBehindClusters, reco::CaloCluster::hitsAndFractions(), reco::GsfElectron::ShowerShape::invalidHcal, edm::isNotFinite(), reco::GsfElectron::ShowerShape::r9, GsfElectronAlgo::EcalRecHitsConfiguration::recHitFlagsToBeExcludedBarrel, GsfElectronAlgo::EcalRecHitsConfiguration::recHitFlagsToBeExcludedEndcaps, FastTrackerRecHitMaskProducer_cfi::recHits, GsfElectronAlgo::Configuration::recHits, GsfElectronAlgo::EcalRecHitsConfiguration::recHitSeverityToBeExcludedBarrel, GsfElectronAlgo::EcalRecHitsConfiguration::recHitSeverityToBeExcludedEndcaps, HLT_FULL_cff::scale, reco::GsfElectron::ShowerShape::sigmaEtaEta, reco::GsfElectron::ShowerShape::sigmaIetaIeta, reco::GsfElectron::ShowerShape::sigmaIetaIphi, reco::GsfElectron::ShowerShape::sigmaIphiIphi, mathSSE::sqrt(), DetId::subdetId(), and ecaldqm::topology().

◆ checkSetup()

void GsfElectronAlgo::checkSetup ( edm::EventSetup const &  eventSetup)
private

◆ completeElectrons()

reco::GsfElectronCollection GsfElectronAlgo::completeElectrons ( edm::Event const &  event,
edm::EventSetup const &  eventSetup,
const HeavyObjectCache hoc 
)

Definition at line 526 of file GsfElectronAlgo.cc.

528  {
530 
531  auto const& magneticField = eventSetup.getData(magneticFieldToken_);
532  auto const& caloGeometry = eventSetup.getData(caloGeometryToken_);
533  auto const& caloTopology = eventSetup.getData(caloTopologyToken_);
534  auto const& trackerGeometry = eventSetup.getData(trackerGeometryToken_);
535  auto const& ecalSeveretyLevelAlgo = eventSetup.getData(ecalSeveretyLevelAlgoToken_);
536 
537  // prepare access to hcal data
538  hcalHelper_.beginEvent(event, eventSetup);
539 
540  checkSetup(eventSetup);
541  auto eventData = beginEvent(event, caloGeometry, ecalSeveretyLevelAlgo);
542  double magneticFieldInTesla = magneticField.inTesla(GlobalPoint(0., 0., 0.)).z();
543 
544  MultiTrajectoryStateTransform mtsTransform(&trackerGeometry, &magneticField);
545  GsfConstraintAtVertex constraintAtVtx(eventSetup);
546 
547  std::optional<egamma::conv::TrackTable> ctfTrackTable = std::nullopt;
548  std::optional<egamma::conv::TrackTable> gsfTrackTable = std::nullopt;
549 
550  const GsfElectronCoreCollection* coreCollection = eventData.coreElectrons.product();
551  for (unsigned int i = 0; i < coreCollection->size(); ++i) {
552  // check there is no existing electron with this core
553  const GsfElectronCoreRef coreRef = edm::Ref<GsfElectronCoreCollection>(eventData.coreElectrons, i);
554 
555  // check there is a super-cluster
556  if (coreRef->superCluster().isNull())
557  continue;
558 
559  // prepare internal structure for electron specific data
560  ElectronData electronData(coreRef, *eventData.beamspot);
561 
562  // calculate and check Trajectory StatesOnSurface....
563  if (!electronData.calculateTSOS(mtsTransform, constraintAtVtx))
564  continue;
565 
566  eventData.retreiveOriginalTrackCollections(electronData.ctfTrackRef, electronData.coreRef->gsfTrack());
567 
568  if (!eventData.originalCtfTracks.isValid()) {
569  eventData.originalCtfTracks = eventData.currentCtfTracks;
570  }
571 
572  if (ctfTrackTable == std::nullopt) {
573  ctfTrackTable = egamma::conv::TrackTable(*eventData.originalCtfTracks);
574  }
575  if (gsfTrackTable == std::nullopt) {
576  gsfTrackTable = egamma::conv::TrackTable(*eventData.originalGsfTracks);
577  }
578 
580  electronData,
581  eventData,
582  caloTopology,
583  caloGeometry,
584  mtsTransform,
585  magneticFieldInTesla,
586  hoc,
587  ctfTrackTable.value(),
588  gsfTrackTable.value());
589 
590  } // loop over tracks
591  return electrons;
592 }

References ElectronHcalHelper::beginEvent(), beginEvent(), GsfElectronAlgo::ElectronData::calculateTSOS(), caloGeometryToken_, caloTopologyToken_, checkSetup(), GsfElectronAlgo::ElectronData::coreRef, createElectron(), GsfElectronAlgo::ElectronData::ctfTrackRef, ecalSeveretyLevelAlgoToken_, pwdgSkimBPark_cfi::electrons, edm::EventSetup::getData(), hcalHelper_, mps_fire::i, edm::Ref< C, T, F >::isNull(), HLT_FULL_cff::magneticField, magneticFieldToken_, and trackerGeometryToken_.

◆ createElectron()

void GsfElectronAlgo::createElectron ( reco::GsfElectronCollection electrons,
ElectronData electronData,
EventData eventData,
CaloTopology const &  topology,
CaloGeometry const &  geometry,
MultiTrajectoryStateTransform const &  mtsTransform,
double  magneticFieldInTesla,
const HeavyObjectCache hoc,
egamma::conv::TrackTableView  ctfTable,
egamma::conv::TrackTableView  gsfTable 
)
private

Definition at line 712 of file GsfElectronAlgo.cc.

721  {
722  // charge ID
723  int eleCharge;
724  GsfElectron::ChargeInfo eleChargeInfo;
725  electronData.computeCharge(eleCharge, eleChargeInfo);
726 
727  // electron basic cluster
728  CaloClusterPtr elbcRef = electronData.getEleBasicCluster(mtsTransform);
729 
730  // Seed cluster
731  const reco::CaloCluster& seedCluster = *(electronData.superClusterRef->seed());
732 
733  // seed Xtal
734  // temporary, till CaloCluster->seed() is made available
735  DetId seedXtalId = seedCluster.hitsAndFractions()[0].first;
736 
737  electronData.calculateMode();
738 
739  //====================================================
740  // Candidate attributes
741  //====================================================
742 
743  Candidate::LorentzVector momentum = electronData.calculateMomentum();
744 
745  //====================================================
746  // Track-Cluster Matching
747  //====================================================
748 
750  tcMatching.electronCluster = elbcRef;
751  tcMatching.eSuperClusterOverP =
752  (electronData.vtxMom.mag() > 0) ? (electronData.superClusterRef->energy() / electronData.vtxMom.mag()) : (-1.);
753  tcMatching.eSeedClusterOverP =
754  (electronData.vtxMom.mag() > 0.) ? (seedCluster.energy() / electronData.vtxMom.mag()) : (-1);
755  tcMatching.eSeedClusterOverPout =
756  (electronData.seedMom.mag() > 0.) ? (seedCluster.energy() / electronData.seedMom.mag()) : (-1.);
757  tcMatching.eEleClusterOverPout =
758  (electronData.eleMom.mag() > 0.) ? (elbcRef->energy() / electronData.eleMom.mag()) : (-1.);
759 
760  EleRelPointPair scAtVtx(
761  electronData.superClusterRef->position(), electronData.sclPos, eventData.beamspot->position());
762  tcMatching.deltaEtaSuperClusterAtVtx = scAtVtx.dEta();
763  tcMatching.deltaPhiSuperClusterAtVtx = scAtVtx.dPhi();
764 
765  EleRelPointPair seedAtCalo(seedCluster.position(), electronData.seedPos, eventData.beamspot->position());
766  tcMatching.deltaEtaSeedClusterAtCalo = seedAtCalo.dEta();
767  tcMatching.deltaPhiSeedClusterAtCalo = seedAtCalo.dPhi();
768 
769  EleRelPointPair ecAtCalo(elbcRef->position(), electronData.elePos, eventData.beamspot->position());
770  tcMatching.deltaEtaEleClusterAtCalo = ecAtCalo.dEta();
771  tcMatching.deltaPhiEleClusterAtCalo = ecAtCalo.dPhi();
772 
773  //=======================================================
774  // Track extrapolations
775  //=======================================================
776 
778  ele_convert(electronData.vtxPos, tkExtra.positionAtVtx);
779  ele_convert(electronData.sclPos, tkExtra.positionAtCalo);
780  ele_convert(electronData.vtxMom, tkExtra.momentumAtVtx);
781  ele_convert(electronData.sclMom, tkExtra.momentumAtCalo);
782  ele_convert(electronData.seedMom, tkExtra.momentumOut);
783  ele_convert(electronData.eleMom, tkExtra.momentumAtEleClus);
784  ele_convert(electronData.vtxMomWithConstraint, tkExtra.momentumAtVtxWithConstraint);
785 
786  //=======================================================
787  // Closest Ctf Track
788  //=======================================================
789 
791  ctfInfo.ctfTrack = electronData.ctfTrackRef;
792  ctfInfo.shFracInnerHits = electronData.shFracInnerHits;
793 
794  //====================================================
795  // FiducialFlags, using nextToBoundary definition of gaps
796  //====================================================
797 
798  reco::GsfElectron::FiducialFlags fiducialFlags;
799  int region = seedXtalId.det();
800  int detector = seedXtalId.subdetId();
801  double feta = std::abs(electronData.superClusterRef->position().eta());
802  if (detector == EcalBarrel) {
803  fiducialFlags.isEB = true;
804  EBDetId ebdetid(seedXtalId);
805  if (EBDetId::isNextToEtaBoundary(ebdetid)) {
806  if (ebdetid.ietaAbs() == 85) {
807  fiducialFlags.isEBEEGap = true;
808  } else {
809  fiducialFlags.isEBEtaGap = true;
810  }
811  }
812  if (EBDetId::isNextToPhiBoundary(ebdetid)) {
813  fiducialFlags.isEBPhiGap = true;
814  }
815  } else if (detector == EcalEndcap) {
816  fiducialFlags.isEE = true;
817  EEDetId eedetid(seedXtalId);
818  if (EEDetId::isNextToRingBoundary(eedetid)) {
819  if (std::abs(feta) < 2.) {
820  fiducialFlags.isEBEEGap = true;
821  } else {
822  fiducialFlags.isEERingGap = true;
823  }
824  }
825  if (EEDetId::isNextToDBoundary(eedetid)) {
826  fiducialFlags.isEEDeeGap = true;
827  }
829  fiducialFlags.isEE = true;
830  //HGCalDetId eeDetid(seedXtalId);
831  // fill in fiducial information when we know how to use it...
832  } else {
833  throw cms::Exception("GsfElectronAlgo|UnknownXtalRegion")
834  << "createElectron(): do not know if it is a barrel or endcap seed cluster !!!!";
835  }
836 
837  //====================================================
838  // SaturationInfo
839  //====================================================
840 
841  auto saturationInfo = calculateSaturationInfo(electronData.superClusterRef, eventData);
842 
843  //====================================================
844  // ShowerShape
845  //====================================================
846 
847  reco::GsfElectron::ShowerShape showerShape;
848  reco::GsfElectron::ShowerShape full5x5_showerShape;
850  showerShape = calculateShowerShape<false>(electronData.superClusterRef, hcalHelper_, eventData, topology, geometry);
851  full5x5_showerShape =
852  calculateShowerShape<true>(electronData.superClusterRef, hcalHelper_, eventData, topology, geometry);
853  }
854 
855  //====================================================
856  // ConversionRejection
857  //====================================================
858 
859  edm::Handle<reco::TrackCollection> ctfTracks = eventData.originalCtfTracks;
860  if (!ctfTracks.isValid()) {
861  ctfTracks = eventData.currentCtfTracks;
862  }
863 
864  {
865  //get the references to the gsf and ctf tracks that are made
866  //by the electron
867  const reco::TrackRef el_ctftrack = electronData.coreRef->ctfTrack();
868  const reco::GsfTrackRef& el_gsftrack = electronData.coreRef->gsfTrack();
869 
870  //protect against the wrong collection being passed to the function
871  if (el_ctftrack.isNonnull() && el_ctftrack.id() != ctfTracks.id())
872  throw cms::Exception("ConversionFinderError")
873  << "ProductID of ctf track collection does not match ProductID of electron's CTF track! \n";
874  if (el_gsftrack.isNonnull() && el_gsftrack.id() != eventData.originalGsfTracks.id())
875  throw cms::Exception("ConversionFinderError")
876  << "ProductID of gsf track collection does not match ProductID of electron's GSF track! \n";
877  }
878 
879  // values of conversionInfo.flag
880  // -9999 : Partner track was not found
881  // 0 : Partner track found in the CTF collection using
882  // 1 : Partner track found in the CTF collection using
883  // 2 : Partner track found in the GSF collection using
884  // 3 : Partner track found in the GSF collection using the electron's GSF track
885  auto conversionInfo = egamma::conv::findConversion(*electronData.coreRef, ctfTable, gsfTable, magneticFieldInTesla);
886 
888  conversionVars.flags = conversionInfo.flag;
889  conversionVars.dist = conversionInfo.dist;
890  conversionVars.dcot = conversionInfo.dcot;
891  conversionVars.radius = conversionInfo.radiusOfConversion;
893  //this is an intentionally bugged version which ignores the GsfTrack
894  //this is a bug which was introduced in reduced e/gamma where the GsfTrack gets
895  //relinked to a new collection which means it can no longer match the conversion
896  //as it matches based on product/id
897  //we keep this defination for the MVAs
898  const auto matchedConv = ConversionTools::matchedConversion(
899  electronData.coreRef->ctfTrack(), *eventData.conversions, eventData.beamspot->position(), 2.0, 1e-6, 0);
900  conversionVars.vtxFitProb = ConversionTools::getVtxFitProb(matchedConv);
901  }
902  if (conversionInfo.conversionPartnerCtfTkIdx) {
903  conversionVars.partner = TrackBaseRef(reco::TrackRef(ctfTracks, conversionInfo.conversionPartnerCtfTkIdx.value()));
904  } else if (conversionInfo.conversionPartnerGsfTkIdx) {
905  conversionVars.partner =
906  TrackBaseRef(reco::GsfTrackRef(eventData.originalGsfTracks, conversionInfo.conversionPartnerGsfTkIdx.value()));
907  }
908 
909  //====================================================
910  // Go !
911  //====================================================
912 
913  electrons.emplace_back(eleCharge,
914  eleChargeInfo,
915  electronData.coreRef,
916  tcMatching,
917  tkExtra,
918  ctfInfo,
919  fiducialFlags,
920  showerShape,
921  full5x5_showerShape,
922  conversionVars,
923  saturationInfo);
924  auto& ele = electrons.back();
925  // Will be overwritten later in the case of the regression
926  ele.setCorrectedEcalEnergyError(superClusterErrorFunction_->getValue(*(ele.superCluster()), 0));
927  ele.setP4(GsfElectron::P4_FROM_SUPER_CLUSTER, momentum, 0, true);
928 
929  //====================================================
930  // brems fractions
931  //====================================================
932 
933  if (electronData.innMom.mag() > 0.) {
934  ele.setTrackFbrem((electronData.innMom.mag() - electronData.outMom.mag()) / electronData.innMom.mag());
935  }
936 
937  // the supercluster is the refined one The seed is not necessarily the first cluster
938  // hence the use of the electronCluster
939  SuperClusterRef sc = ele.superCluster();
940  if (!(sc.isNull())) {
941  CaloClusterPtr cl = ele.electronCluster();
942  if (sc->clustersSize() > 1) {
943  float pf_fbrem = (sc->energy() - cl->energy()) / sc->energy();
944  ele.setSuperClusterFbrem(pf_fbrem);
945  } else {
946  ele.setSuperClusterFbrem(0);
947  }
948  }
949 
950  //====================================================
951  // classification and corrections
952  //====================================================
953  // classification
954  const auto elClass = egamma::classifyElectron(ele);
955  ele.setClassification(elClass);
956 
957  bool unexpectedClassification = elClass == GsfElectron::UNKNOWN || elClass > GsfElectron::GAP;
958  if (unexpectedClassification) {
959  edm::LogWarning("GsfElectronAlgo") << "unexpected classification";
960  }
961 
962  // ecal energy
963  if (cfg_.strategy.useEcalRegression) // new
964  {
965  regHelper_.applyEcalRegression(ele, *eventData.vertices, *eventData.barrelRecHits, *eventData.endcapRecHits);
966  } else // original implementation
967  {
969  if (ele.core()->ecalDrivenSeed()) {
970  if (cfg_.strategy.ecalDrivenEcalEnergyFromClassBasedParameterization && !unexpectedClassification) {
971  if (ele.isEcalEnergyCorrected()) {
972  edm::LogWarning("ElectronEnergyCorrector::classBasedElectronEnergy") << "already done";
973  } else {
974  ele.setCorrectedEcalEnergy(
975  egamma::classBasedElectronEnergy(ele, *eventData.beamspot, *crackCorrectionFunction_));
976  }
977  }
979  ele.setCorrectedEcalEnergyError(egamma::classBasedElectronEnergyUncertainty(ele));
980  }
981  } else {
983  ele.setCorrectedEcalEnergyError(egamma::simpleElectronEnergyUncertainty(ele));
984  }
985  }
986  }
987  }
988 
989  // momentum
990  // Keep the default correction running first. The track momentum error is computed in there
991  if (cfg_.strategy.useDefaultEnergyCorrection && ele.core()->ecalDrivenSeed() && !unexpectedClassification) {
992  if (ele.p4Error(reco::GsfElectron::P4_COMBINATION) != 999.) {
993  edm::LogWarning("ElectronMomentumCorrector::correct") << "already done";
994  } else {
995  auto p = egamma::correctElectronMomentum(ele, electronData.vtxTSOS);
996  ele.correctMomentum(p.momentum, p.trackError, p.finalError);
997  }
998  }
1000  {
1002  }
1003 
1004  //====================================================
1005  // now isolation variables
1006  //====================================================
1008  dr03.tkSumPt = eventData.tkIsol03Calc(*ele.gsfTrack()).ptSum;
1009  dr04.tkSumPt = eventData.tkIsol04Calc(*ele.gsfTrack()).ptSum;
1010  dr03.tkSumPtHEEP = eventData.tkIsolHEEP03Calc(*ele.gsfTrack()).ptSum;
1011  dr04.tkSumPtHEEP = eventData.tkIsolHEEP04Calc(*ele.gsfTrack()).ptSum;
1012 
1014  dr03.hcalDepth1TowerSumEt = eventData.hadDepth1Isolation03.getTowerEtSum(&ele);
1015  dr03.hcalDepth2TowerSumEt = eventData.hadDepth2Isolation03.getTowerEtSum(&ele);
1016  dr03.hcalDepth1TowerSumEtBc =
1017  eventData.hadDepth1Isolation03Bc.getTowerEtSum(&ele, &(showerShape.hcalTowersBehindClusters));
1018  dr03.hcalDepth2TowerSumEtBc =
1019  eventData.hadDepth2Isolation03Bc.getTowerEtSum(&ele, &(showerShape.hcalTowersBehindClusters));
1020  dr03.ecalRecHitSumEt = eventData.ecalBarrelIsol03.getEtSum(&ele);
1021  dr03.ecalRecHitSumEt += eventData.ecalEndcapIsol03.getEtSum(&ele);
1022  dr04.hcalDepth1TowerSumEt = eventData.hadDepth1Isolation04.getTowerEtSum(&ele);
1023  dr04.hcalDepth2TowerSumEt = eventData.hadDepth2Isolation04.getTowerEtSum(&ele);
1024  dr04.hcalDepth1TowerSumEtBc =
1025  eventData.hadDepth1Isolation04Bc.getTowerEtSum(&ele, &(showerShape.hcalTowersBehindClusters));
1026  dr04.hcalDepth2TowerSumEtBc =
1027  eventData.hadDepth2Isolation04Bc.getTowerEtSum(&ele, &(showerShape.hcalTowersBehindClusters));
1028  dr04.ecalRecHitSumEt = eventData.ecalBarrelIsol04.getEtSum(&ele);
1029  dr04.ecalRecHitSumEt += eventData.ecalEndcapIsol04.getEtSum(&ele);
1030  }
1031  ele.setIsolation03(dr03);
1032  ele.setIsolation04(dr04);
1033 
1034  //====================================================
1035  // preselection flag
1036  //====================================================
1037 
1038  setCutBasedPreselectionFlag(ele, *eventData.beamspot);
1039  //setting mva flag, currently GedGsfElectron and GsfElectron pre-selection flags have desynced
1040  //this is for GedGsfElectrons, GsfElectrons (ie old pre 7X std reco) resets this later on
1041  //in the function "addPfInfo"
1042  //yes this is awful, we'll fix it once we work out how to...
1043  float mvaValue = hoc->sElectronMVAEstimator->mva(ele, *(eventData.vertices));
1044  ele.setPassMvaPreselection(mvaValue > cfg_.strategy.PreSelectMVA);
1045 
1046  //====================================================
1047  // Pixel match variables
1048  //====================================================
1050 
1051  LogTrace("GsfElectronAlgo") << "Constructed new electron with energy " << ele.p4().e();
1052 }

References funct::abs(), RegressionHelper::applyCombinationRegression(), RegressionHelper::applyEcalRegression(), GsfElectronAlgo::EventData::barrelRecHits, GsfElectronAlgo::EventData::beamspot, GsfElectronAlgo::ElectronData::calculateMode(), GsfElectronAlgo::ElectronData::calculateMomentum(), calculateSaturationInfo(), cfg_, GetRecoTauVFromDQM_MC_cff::cl, egamma::classBasedElectronEnergy(), egamma::classBasedElectronEnergyUncertainty(), egamma::classifyElectron(), GsfElectronAlgo::ElectronData::computeCharge(), GsfElectronAlgo::EventData::conversions, GsfElectronAlgo::ElectronData::coreRef, egamma::correctElectronMomentum(), crackCorrectionFunction_, reco::GsfElectron::ClosestCtfTrack::ctfTrack, GsfElectronAlgo::ElectronData::ctfTrackRef, lowPtGsfElectronCores_cff::ctfTracks, GsfElectronAlgo::EventData::currentCtfTracks, reco::GsfElectron::ConversionRejection::dcot, reco::GsfElectron::TrackClusterMatching::deltaEtaEleClusterAtCalo, reco::GsfElectron::TrackClusterMatching::deltaEtaSeedClusterAtCalo, reco::GsfElectron::TrackClusterMatching::deltaEtaSuperClusterAtVtx, reco::GsfElectron::TrackClusterMatching::deltaPhiEleClusterAtCalo, reco::GsfElectron::TrackClusterMatching::deltaPhiSeedClusterAtCalo, reco::GsfElectron::TrackClusterMatching::deltaPhiSuperClusterAtVtx, DetId::det(), hgcalTestNeighbor_cfi::detector, reco::GsfElectron::ConversionRejection::dist, MillePedeFileConverter_cfg::e, EcalBarrel, GsfElectronAlgo::EventData::ecalBarrelIsol03, GsfElectronAlgo::EventData::ecalBarrelIsol04, GsfElectronAlgo::StrategyConfiguration::ecalDrivenEcalEnergyFromClassBasedParameterization, GsfElectronAlgo::StrategyConfiguration::ecalDrivenEcalErrorFromClassBasedParameterization, EcalEndcap, GsfElectronAlgo::EventData::ecalEndcapIsol03, GsfElectronAlgo::EventData::ecalEndcapIsol04, reco::GsfElectron::IsolationVariables::ecalRecHitSumEt, reco::GsfElectron::TrackClusterMatching::eEleClusterOverPout, ele_convert(), reco::GsfElectron::TrackClusterMatching::electronCluster, pwdgSkimBPark_cfi::electrons, GsfElectronAlgo::ElectronData::eleMom, GsfElectronAlgo::ElectronData::elePos, GsfElectronAlgo::EventData::endcapRecHits, reco::CaloCluster::energy(), reco::GsfElectron::TrackClusterMatching::eSeedClusterOverP, reco::GsfElectron::TrackClusterMatching::eSeedClusterOverPout, reco::GsfElectron::TrackClusterMatching::eSuperClusterOverP, Exception, JetMETHLTOfflineSource_cfi::feta, GsfElectronAlgo::StrategyConfiguration::fillConvVtxFitProb, egamma::conv::findConversion(), reco::GsfElectron::ConversionRejection::flags, GsfElectronAlgo::ElectronData::getEleBasicCluster(), EgammaRecHitIsolation::getEtSum(), EgammaTowerIsolation::getTowerEtSum(), ConversionTools::getVtxFitProb(), GsfElectronAlgo::EventData::hadDepth1Isolation03, GsfElectronAlgo::EventData::hadDepth1Isolation03Bc, GsfElectronAlgo::EventData::hadDepth1Isolation04, GsfElectronAlgo::EventData::hadDepth1Isolation04Bc, GsfElectronAlgo::EventData::hadDepth2Isolation03, GsfElectronAlgo::EventData::hadDepth2Isolation03Bc, GsfElectronAlgo::EventData::hadDepth2Isolation04, GsfElectronAlgo::EventData::hadDepth2Isolation04Bc, reco::GsfElectron::IsolationVariables::hcalDepth1TowerSumEt, reco::GsfElectron::IsolationVariables::hcalDepth1TowerSumEtBc, reco::GsfElectron::IsolationVariables::hcalDepth2TowerSumEt, reco::GsfElectron::IsolationVariables::hcalDepth2TowerSumEtBc, hcalHelper_, reco::GsfElectron::ShowerShape::hcalTowersBehindClusters, reco::CaloCluster::hitsAndFractions(), edm::HandleBase::id(), edm::Ref< C, T, F >::id(), EBDetId::ietaAbs(), GsfElectronAlgo::ElectronData::innMom, reco::GsfElectron::FiducialFlags::isEB, reco::GsfElectron::FiducialFlags::isEBEEGap, reco::GsfElectron::FiducialFlags::isEBEtaGap, reco::GsfElectron::FiducialFlags::isEBPhiGap, reco::GsfElectron::FiducialFlags::isEE, reco::GsfElectron::FiducialFlags::isEEDeeGap, reco::GsfElectron::FiducialFlags::isEERingGap, EcalTools::isHGCalDet(), EEDetId::isNextToDBoundary(), EBDetId::isNextToEtaBoundary(), EBDetId::isNextToPhiBoundary(), EEDetId::isNextToRingBoundary(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::isNull(), LogTrace, PV3DBase< T, PVType, FrameType >::mag(), ConversionTools::matchedConversion(), reco::GsfElectron::TrackExtrapolations::momentumAtCalo, reco::GsfElectron::TrackExtrapolations::momentumAtEleClus, reco::GsfElectron::TrackExtrapolations::momentumAtVtx, reco::GsfElectron::TrackExtrapolations::momentumAtVtxWithConstraint, reco::GsfElectron::TrackExtrapolations::momentumOut, GsfElectronAlgo::EventData::originalCtfTracks, GsfElectronAlgo::EventData::originalGsfTracks, GsfElectronAlgo::ElectronData::outMom, AlCaHLTBitMon_ParallelJobs::p, reco::GsfElectron::P4_COMBINATION, reco::GsfElectron::ConversionRejection::partner, reco::BeamSpot::position(), reco::CaloCluster::position(), reco::GsfElectron::TrackExtrapolations::positionAtCalo, reco::GsfElectron::TrackExtrapolations::positionAtVtx, GsfElectronAlgo::StrategyConfiguration::PreSelectMVA, GsfElectronAlgo::StrategyConfiguration::pureTrackerDrivenEcalErrorFromSimpleParameterization, reco::GsfElectron::ConversionRejection::radius, regHelper_, HLT_FULL_cff::region, GsfElectronAlgo::ElectronData::sclMom, GsfElectronAlgo::ElectronData::sclPos, GsfElectronAlgo::ElectronData::seedMom, GsfElectronAlgo::ElectronData::seedPos, GsfElectronAlgo::HeavyObjectCache::sElectronMVAEstimator, setCutBasedPreselectionFlag(), setPixelMatchInfomation(), GsfElectronAlgo::ElectronData::shFracInnerHits, reco::GsfElectron::ClosestCtfTrack::shFracInnerHits, egamma::simpleElectronEnergyUncertainty(), GsfElectronAlgo::Configuration::strategy, DetId::subdetId(), superClusterErrorFunction_, GsfElectronAlgo::ElectronData::superClusterRef, GsfElectronAlgo::EventData::tkIsol03Calc, GsfElectronAlgo::EventData::tkIsol04Calc, GsfElectronAlgo::EventData::tkIsolHEEP03Calc, GsfElectronAlgo::EventData::tkIsolHEEP04Calc, reco::GsfElectron::IsolationVariables::tkSumPt, reco::GsfElectron::IsolationVariables::tkSumPtHEEP, ecaldqm::topology(), SiStripSubdetector::UNKNOWN, GsfElectronAlgo::StrategyConfiguration::useCombinationRegression, GsfElectronAlgo::StrategyConfiguration::useDefaultEnergyCorrection, GsfElectronAlgo::StrategyConfiguration::useEcalRegression, GsfElectronAlgo::EventData::vertices, reco::GsfElectron::ConversionRejection::vtxFitProb, GsfElectronAlgo::ElectronData::vtxMom, GsfElectronAlgo::ElectronData::vtxMomWithConstraint, GsfElectronAlgo::ElectronData::vtxPos, and GsfElectronAlgo::ElectronData::vtxTSOS.

Referenced by completeElectrons().

◆ setCutBasedPreselectionFlag()

void GsfElectronAlgo::setCutBasedPreselectionFlag ( reco::GsfElectron ele,
const reco::BeamSpot bs 
) const
private

Definition at line 594 of file GsfElectronAlgo.cc.

594  {
595  // default value
596  ele.setPassCutBasedPreselection(false);
597 
598  // kind of seeding
599  bool eg = ele.core()->ecalDrivenSeed();
600  bool pf = ele.core()->trackerDrivenSeed() && !ele.core()->ecalDrivenSeed();
601  if (eg && pf) {
602  throw cms::Exception("GsfElectronAlgo|BothEcalAndPureTrackerDriven")
603  << "An electron cannot be both egamma and purely pflow";
604  }
605  if ((!eg) && (!pf)) {
606  throw cms::Exception("GsfElectronAlgo|NeitherEcalNorPureTrackerDriven")
607  << "An electron cannot be neither egamma nor purely pflow";
608  }
609 
610  CutsConfiguration const& cfg = cfg_.cuts;
611 
612  // Et cut
613  double etaValue = EleRelPoint(ele.superCluster()->position(), bs.position()).eta();
614  double etValue = ele.superCluster()->energy() / cosh(etaValue);
615  LogTrace("GsfElectronAlgo") << "Et : " << etValue;
616  if (ele.isEB() && (etValue < cfg.minSCEtBarrel))
617  return;
618  if (ele.isEE() && (etValue < cfg.minSCEtEndcaps))
619  return;
620  LogTrace("GsfElectronAlgo") << "Et criteria are satisfied";
621 
622  // E/p cut
623  double eopValue = ele.eSuperClusterOverP();
624  LogTrace("GsfElectronAlgo") << "E/p : " << eopValue;
625  if (ele.isEB() && (eopValue > cfg.maxEOverPBarrel))
626  return;
627  if (ele.isEE() && (eopValue > cfg.maxEOverPEndcaps))
628  return;
629  if (ele.isEB() && (eopValue < cfg.minEOverPBarrel))
630  return;
631  if (ele.isEE() && (eopValue < cfg.minEOverPEndcaps))
632  return;
633  LogTrace("GsfElectronAlgo") << "E/p criteria are satisfied";
634 
635  // HoE cuts
636  LogTrace("GsfElectronAlgo") << "HoE1 : " << ele.hcalDepth1OverEcal() << ", HoE2 : " << ele.hcalDepth2OverEcal();
637  double hoeCone = ele.hcalOverEcal();
638  double hoeTower = ele.hcalOverEcalBc();
639  const reco::CaloCluster& seedCluster = *(ele.superCluster()->seed());
640  int detector = seedCluster.hitsAndFractions()[0].first.subdetId();
641  bool HoEveto = false;
642  double scle = ele.superCluster()->energy();
643 
644  if (detector == EcalBarrel)
645  HoEveto = hoeCone * scle < cfg.maxHBarrelCone || hoeTower * scle < cfg.maxHBarrelTower ||
646  hoeCone < cfg.maxHOverEBarrelCone || hoeTower < cfg.maxHOverEBarrelTower;
647  else if (detector == EcalEndcap)
648  HoEveto = hoeCone * scle < cfg.maxHEndcapsCone || hoeTower * scle < cfg.maxHEndcapsTower ||
649  hoeCone < cfg.maxHOverEEndcapsCone || hoeTower < cfg.maxHOverEEndcapsTower;
650 
651  if (!HoEveto)
652  return;
653  LogTrace("GsfElectronAlgo") << "H/E criteria are satisfied";
654 
655  // delta eta criteria
656  double deta = ele.deltaEtaSuperClusterTrackAtVtx();
657  LogTrace("GsfElectronAlgo") << "delta eta : " << deta;
658  if (ele.isEB() && (std::abs(deta) > cfg.maxDeltaEtaBarrel))
659  return;
660  if (ele.isEE() && (std::abs(deta) > cfg.maxDeltaEtaEndcaps))
661  return;
662  LogTrace("GsfElectronAlgo") << "Delta eta criteria are satisfied";
663 
664  // delta phi criteria
665  double dphi = ele.deltaPhiSuperClusterTrackAtVtx();
666  LogTrace("GsfElectronAlgo") << "delta phi : " << dphi;
667  if (ele.isEB() && (std::abs(dphi) > cfg.maxDeltaPhiBarrel))
668  return;
669  if (ele.isEE() && (std::abs(dphi) > cfg.maxDeltaPhiEndcaps))
670  return;
671  LogTrace("GsfElectronAlgo") << "Delta phi criteria are satisfied";
672 
673  // sigma ieta ieta
674  LogTrace("GsfElectronAlgo") << "sigma ieta ieta : " << ele.sigmaIetaIeta();
675  if (ele.isEB() && (ele.sigmaIetaIeta() > cfg.maxSigmaIetaIetaBarrel))
676  return;
677  if (ele.isEE() && (ele.sigmaIetaIeta() > cfg.maxSigmaIetaIetaEndcaps))
678  return;
679  LogTrace("GsfElectronAlgo") << "Sigma ieta ieta criteria are satisfied";
680 
681  // fiducial
682  if (!ele.isEB() && cfg.isBarrel)
683  return;
684  if (!ele.isEE() && cfg.isEndcaps)
685  return;
686  if (cfg.isFiducial &&
687  (ele.isEBEEGap() || ele.isEBEtaGap() || ele.isEBPhiGap() || ele.isEERingGap() || ele.isEEDeeGap()))
688  return;
689  LogTrace("GsfElectronAlgo") << "Fiducial flags criteria are satisfied";
690 
691  // seed in TEC
692  edm::RefToBase<TrajectorySeed> seed = ele.gsfTrack()->extra()->seedRef();
693  ElectronSeedRef elseed = seed.castTo<ElectronSeedRef>();
694  if (eg && !cfg_.cuts.seedFromTEC) {
695  if (elseed.isNull()) {
696  throw cms::Exception("GsfElectronAlgo|NotElectronSeed") << "The GsfTrack seed is not an ElectronSeed ?!";
697  } else {
698  if (elseed->subDet(1) == 6)
699  return;
700  }
701  }
702 
703  // transverse impact parameter
704  if (std::abs(ele.gsfTrack()->dxy(bs.position())) > cfg.maxTIP)
705  return;
706  LogTrace("GsfElectronAlgo") << "TIP criterion is satisfied";
707 
708  LogTrace("GsfElectronAlgo") << "All cut based criteria are satisfied";
709  ele.setPassCutBasedPreselection(true);
710 }

References funct::abs(), cms::cuda::bs, looper::cfg, cfg_, reco::GsfElectron::core(), GsfElectronAlgo::Configuration::cuts, reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), hgcalTestNeighbor_cfi::detector, EcalBarrel, EcalEndcap, reco::GsfElectron::eSuperClusterOverP(), PVValHelper::eta, Exception, reco::GsfElectron::gsfTrack(), reco::GsfElectron::hcalDepth1OverEcal(), reco::GsfElectron::hcalDepth2OverEcal(), reco::GsfElectron::hcalOverEcal(), reco::GsfElectron::hcalOverEcalBc(), reco::CaloCluster::hitsAndFractions(), reco::GsfElectron::isEB(), reco::GsfElectron::isEBEEGap(), reco::GsfElectron::isEBEtaGap(), reco::GsfElectron::isEBPhiGap(), reco::GsfElectron::isEE(), reco::GsfElectron::isEEDeeGap(), reco::GsfElectron::isEERingGap(), edm::Ref< C, T, F >::isNull(), LogTrace, packedPFCandidateRefMixer_cfi::pf, fileCollector::seed, GsfElectronAlgo::CutsConfiguration::seedFromTEC, reco::GsfElectron::setPassCutBasedPreselection(), reco::GsfElectron::sigmaIetaIeta(), and reco::GsfElectron::superCluster().

Referenced by createElectron().

◆ setPixelMatchInfomation()

void GsfElectronAlgo::setPixelMatchInfomation ( reco::GsfElectron ele) const
private

Definition at line 1055 of file GsfElectronAlgo.cc.

1055  {
1056  int sd1 = 0;
1057  int sd2 = 0;
1058  float dPhi1 = 0;
1059  float dPhi2 = 0;
1060  float dRz1 = 0;
1061  float dRz2 = 0;
1062  edm::RefToBase<TrajectorySeed> seed = ele.gsfTrack()->extra()->seedRef();
1063  ElectronSeedRef elseed = seed.castTo<ElectronSeedRef>();
1064  if (seed.isNull()) {
1065  } else {
1066  if (elseed.isNull()) {
1067  } else {
1068  sd1 = elseed->subDet(0);
1069  sd2 = elseed->subDet(1);
1070  dPhi1 = (ele.charge() > 0) ? elseed->dPhiPos(0) : elseed->dPhiNeg(0);
1071  dPhi2 = (ele.charge() > 0) ? elseed->dPhiPos(1) : elseed->dPhiNeg(1);
1072  dRz1 = (ele.charge() > 0) ? elseed->dRZPos(0) : elseed->dRZNeg(0);
1073  dRz2 = (ele.charge() > 0) ? elseed->dRZPos(1) : elseed->dRZNeg(1);
1074  }
1075  }
1076  ele.setPixelMatchSubdetectors(sd1, sd2);
1077  ele.setPixelMatchDPhi1(dPhi1);
1078  ele.setPixelMatchDPhi2(dPhi2);
1079  ele.setPixelMatchDRz1(dRz1);
1080  ele.setPixelMatchDRz2(dRz2);
1081 }

References reco::LeafCandidate::charge(), reco::GsfElectron::gsfTrack(), edm::Ref< C, T, F >::isNull(), fileCollector::seed, reco::GsfElectron::setPixelMatchDPhi1(), reco::GsfElectron::setPixelMatchDPhi2(), reco::GsfElectron::setPixelMatchDRz1(), reco::GsfElectron::setPixelMatchDRz2(), and reco::GsfElectron::setPixelMatchSubdetectors().

Referenced by createElectron().

Member Data Documentation

◆ caloGeometryToken_

const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> GsfElectronAlgo::caloGeometryToken_
private

Definition at line 247 of file GsfElectronAlgo.h.

Referenced by completeElectrons().

◆ caloTopologyToken_

const edm::ESGetToken<CaloTopology, CaloTopologyRecord> GsfElectronAlgo::caloTopologyToken_
private

Definition at line 248 of file GsfElectronAlgo.h.

Referenced by completeElectrons().

◆ cfg_

const Configuration GsfElectronAlgo::cfg_
private

◆ crackCorrectionFunction_

std::unique_ptr<EcalClusterFunctionBaseClass> GsfElectronAlgo::crackCorrectionFunction_
private

Definition at line 255 of file GsfElectronAlgo.h.

Referenced by checkSetup(), and createElectron().

◆ ecalSeveretyLevelAlgoToken_

const edm::ESGetToken<EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd> GsfElectronAlgo::ecalSeveretyLevelAlgoToken_
private

Definition at line 250 of file GsfElectronAlgo.h.

Referenced by completeElectrons().

◆ hcalHelper_

ElectronHcalHelper GsfElectronAlgo::hcalHelper_
private

Definition at line 253 of file GsfElectronAlgo.h.

Referenced by completeElectrons(), and createElectron().

◆ magneticFieldToken_

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> GsfElectronAlgo::magneticFieldToken_
private

Definition at line 246 of file GsfElectronAlgo.h.

Referenced by completeElectrons().

◆ regHelper_

RegressionHelper GsfElectronAlgo::regHelper_
private

Definition at line 256 of file GsfElectronAlgo.h.

Referenced by checkSetup(), and createElectron().

◆ superClusterErrorFunction_

std::unique_ptr<EcalClusterFunctionBaseClass> GsfElectronAlgo::superClusterErrorFunction_
private

Definition at line 254 of file GsfElectronAlgo.h.

Referenced by checkSetup(), and createElectron().

◆ tkIsol03CalcCfg_

const EleTkIsolFromCands::Configuration GsfElectronAlgo::tkIsol03CalcCfg_
private

Definition at line 241 of file GsfElectronAlgo.h.

Referenced by beginEvent().

◆ tkIsol04CalcCfg_

const EleTkIsolFromCands::Configuration GsfElectronAlgo::tkIsol04CalcCfg_
private

Definition at line 242 of file GsfElectronAlgo.h.

Referenced by beginEvent().

◆ tkIsolHEEP03CalcCfg_

const EleTkIsolFromCands::Configuration GsfElectronAlgo::tkIsolHEEP03CalcCfg_
private

Definition at line 243 of file GsfElectronAlgo.h.

Referenced by beginEvent().

◆ tkIsolHEEP04CalcCfg_

const EleTkIsolFromCands::Configuration GsfElectronAlgo::tkIsolHEEP04CalcCfg_
private

Definition at line 244 of file GsfElectronAlgo.h.

Referenced by beginEvent().

◆ trackerGeometryToken_

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> GsfElectronAlgo::trackerGeometryToken_
private

Definition at line 249 of file GsfElectronAlgo.h.

Referenced by completeElectrons().

reco::GsfElectron::ClosestCtfTrack::shFracInnerHits
float shFracInnerHits
Definition: GsfElectron.h:183
EgHLTOffHistBins_cfi.e1x5
e1x5
Definition: EgHLTOffHistBins_cfi.py:22
GsfElectronAlgo::EcalRecHitsConfiguration::recHitFlagsToBeExcludedEndcaps
std::vector< int > recHitFlagsToBeExcludedEndcaps
Definition: GsfElectronAlgo.h:152
HLT_FULL_cff.towers
towers
Definition: HLT_FULL_cff.py:36428
reco::GsfElectron::ShowerShape::e2x5Right
float e2x5Right
Definition: GsfElectron.h:389
reco::GsfElectron::isEE
bool isEE() const
Definition: GsfElectron.h:337
EBDetId::isNextToEtaBoundary
static bool isNextToEtaBoundary(EBDetId id)
Definition: EBDetId.cc:108
reco::GsfElectron::ShowerShape::r9
float r9
Definition: GsfElectron.h:373
GsfElectronAlgo::magneticFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magneticFieldToken_
Definition: GsfElectronAlgo.h:246
reco::GsfElectron::ShowerShape::sigmaIetaIeta
float sigmaIetaIeta
Definition: GsfElectron.h:368
reco::GsfElectron::ClosestCtfTrack
Definition: GsfElectron.h:181
reco::GsfElectron::TrackClusterMatching::electronCluster
CaloClusterPtr electronCluster
Definition: GsfElectron.h:203
mps_fire.i
i
Definition: mps_fire.py:428
reco::GsfElectron::isEB
bool isEB() const
Definition: GsfElectron.h:336
input
static const std::string input
Definition: EdmProvDump.cc:48
reco::GsfElectron::gsfTrack
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
Definition: GsfElectron.h:164
ele_convert
void ele_convert(const Type1 &obj1, Type2 &obj2)
Definition: ElectronUtilities.h:16
GsfElectronAlgo::IsolationConfiguration::eMinEndcaps
double eMinEndcaps
Definition: GsfElectronAlgo.h:168
GsfElectronAlgo::Configuration::iso
const IsolationConfiguration iso
Definition: GsfElectronAlgo.h:201
reco::GsfElectron::FiducialFlags::isEBEEGap
bool isEBEEGap
Definition: GsfElectron.h:320
egamma::conv::findConversion
ConversionInfo findConversion(const reco::GsfElectronCore &gsfElectron, TrackTableView ctfTable, TrackTableView gsfTable, float bFieldAtOrigin, float minFracSharedHits=0.45f)
Definition: ConversionFinder.h:71
egamma::conv::TrackTable
edm::soa::AddColumns< edm::soa::PtEtaPhiTable, TrackTableSpecificColumns >::type TrackTable
Definition: ConversionFinder.h:56
reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:236
EcalTools::isHGCalDet
static bool isHGCalDet(DetId::Detector thedet)
identify HGCal cells
Definition: EcalTools.h:49
reco::GsfElectron::ShowerShape::hcalDepth1OverEcal
float hcalDepth1OverEcal
Definition: GsfElectron.h:374
reco::GsfElectron::ChargeInfo
Definition: GsfElectron.h:123
edm::isNotFinite
constexpr bool isNotFinite(T x)
Definition: isFinite.h:9
GsfElectronAlgo::IsolationConfiguration::intRadiusEcalBarrel
double intRadiusEcalBarrel
Definition: GsfElectronAlgo.h:162
GsfElectronAlgo::IsolationConfiguration::etMinHcal
double etMinHcal
Definition: GsfElectronAlgo.h:161
reco::GsfElectron::FiducialFlags::isEE
bool isEE
Definition: GsfElectron.h:319
reco::GsfElectron::setPixelMatchDPhi2
void setPixelMatchDPhi2(float dPhi2)
Definition: GsfElectron.h:855
reco::GsfElectron::isEERingGap
bool isEERingGap() const
Definition: GsfElectron.h:345
HLT_FULL_cff.scale
scale
Definition: HLT_FULL_cff.py:6637
HLT_FULL_cff.endcapRecHits
endcapRecHits
Definition: HLT_FULL_cff.py:14984
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
EBDetId
Definition: EBDetId.h:17
GsfElectronAlgo::trackerGeometryToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
Definition: GsfElectronAlgo.h:249
reco::GsfElectron::FiducialFlags::isEEDeeGap
bool isEEDeeGap
Definition: GsfElectron.h:323
GsfElectronAlgo::Tokens::gsfElectronCores
edm::EDGetTokenT< reco::GsfElectronCoreCollection > gsfElectronCores
Definition: GsfElectronAlgo.h:60
reco::GsfElectron::ClosestCtfTrack::ctfTrack
TrackRef ctfTrack
Definition: GsfElectron.h:182
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
GsfElectronAlgo::StrategyConfiguration::useCombinationRegression
bool useCombinationRegression
Definition: GsfElectronAlgo.h:93
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
GsfElectronAlgo::IsolationConfiguration::vetoClustered
bool vetoClustered
Definition: GsfElectronAlgo.h:169
geometry
Definition: geometry.py:1
ConversionTools::getVtxFitProb
static float getVtxFitProb(const reco::Conversion *conv)
Definition: ConversionTools.cc:440
reco::GsfElectron::P4_COMBINATION
Definition: GsfElectron.h:769
reco::GsfElectron::TrackClusterMatching::eSeedClusterOverP
float eSeedClusterOverP
Definition: GsfElectron.h:205
HLT_FULL_cff.barrelRecHits
barrelRecHits
Definition: HLT_FULL_cff.py:14987
GsfElectronAlgo::hcalHelper_
ElectronHcalHelper hcalHelper_
Definition: GsfElectronAlgo.h:253
reco::GsfElectron::ShowerShape::eMax
float eMax
Definition: GsfElectron.h:381
lowPtGsfElectronCores_cff.ctfTracks
ctfTracks
Definition: lowPtGsfElectronCores_cff.py:6
GsfElectronAlgo::tkIsol03CalcCfg_
const EleTkIsolFromCands::Configuration tkIsol03CalcCfg_
Definition: GsfElectronAlgo.h:241
reco::GsfElectron::setPixelMatchSubdetectors
void setPixelMatchSubdetectors(int sd1, int sd2)
Definition: GsfElectron.h:853
reco::GsfElectron::ConversionRejection::dcot
float dcot
Definition: GsfElectron.h:576
edm::SortedCollection< EcalRecHit >
reco::GsfElectron::ShowerShape::sigmaIetaIphi
float sigmaIetaIphi
Definition: GsfElectron.h:380
GsfElectronAlgo::setCutBasedPreselectionFlag
void setCutBasedPreselectionFlag(reco::GsfElectron &ele, const reco::BeamSpot &) const
Definition: GsfElectronAlgo.cc:594
reco::TrackBaseRef
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:35
GsfElectronAlgo::IsolationConfiguration::useNumCrystals
bool useNumCrystals
Definition: GsfElectronAlgo.h:170
GsfElectronAlgo::IsolationConfiguration::eMinBarrel
double eMinBarrel
Definition: GsfElectronAlgo.h:166
reco::GsfElectronCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
Definition: GsfElectronFwd.h:14
reco::GsfElectron::SaturationInfo::nSaturatedXtals
int nSaturatedXtals
Definition: GsfElectron.h:491
EgammaRecHitIsolation
Definition: EgammaRecHitIsolation.h:26
reco::GsfElectron::TrackClusterMatching::eEleClusterOverPout
float eEleClusterOverPout
Definition: GsfElectron.h:207
reco::GsfElectron::TrackExtrapolations::momentumAtCalo
math::XYZVectorF momentumAtCalo
Definition: GsfElectron.h:265
HLT_FULL_cff.magneticField
magneticField
Definition: HLT_FULL_cff.py:348
GsfElectronAlgo::EcalRecHitsConfiguration::recHitFlagsToBeExcludedBarrel
std::vector< int > recHitFlagsToBeExcludedBarrel
Definition: GsfElectronAlgo.h:151
reco::GsfElectron::TrackExtrapolations::momentumOut
math::XYZVectorF momentumOut
Definition: GsfElectron.h:267
GsfElectronAlgo::Tokens::seedsTag
edm::EDGetTokenT< reco::ElectronSeedCollection > seedsTag
Definition: GsfElectronAlgo.h:66
reco::GsfElectron::ShowerShape::e2x5Max
float e2x5Max
Definition: GsfElectron.h:371
reco::GsfElectron::TrackClusterMatching::deltaEtaEleClusterAtCalo
float deltaEtaEleClusterAtCalo
Definition: GsfElectron.h:210
edm::Handle< reco::ConversionCollection >
GsfElectronAlgo::Tokens::beamSpotTag
edm::EDGetTokenT< reco::BeamSpot > beamSpotTag
Definition: GsfElectronAlgo.h:68
GsfElectronAlgo::Tokens::barrelRecHitCollection
edm::EDGetTokenT< EcalRecHitCollection > barrelRecHitCollection
Definition: GsfElectronAlgo.h:64
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
GsfElectronAlgo::StrategyConfiguration::ecalDrivenEcalErrorFromClassBasedParameterization
bool ecalDrivenEcalErrorFromClassBasedParameterization
Definition: GsfElectronAlgo.h:79
reco::GsfElectron::hcalDepth2OverEcal
float hcalDepth2OverEcal() const
Definition: GsfElectron.h:426
EcalBarrel
Definition: EcalSubdetector.h:10
reco::GsfElectron::ShowerShape::eBottom
float eBottom
Definition: GsfElectron.h:386
edm::Ref< GsfElectronCoreCollection >
reco::GsfElectron::FiducialFlags::isEBPhiGap
bool isEBPhiGap
Definition: GsfElectron.h:322
RegressionHelper::applyCombinationRegression
void applyCombinationRegression(reco::GsfElectron &ele) const
Definition: RegressionHelper.cc:114
cc
reco::GsfElectron::hcalDepth1OverEcal
float hcalDepth1OverEcal() const
Definition: GsfElectron.h:425
reco::GsfElectron::ShowerShape::sigmaEtaEta
float sigmaEtaEta
Definition: GsfElectron.h:367
reco::GsfElectron::core
virtual GsfElectronCoreRef core() const
Definition: GsfElectron.cc:8
reco::GsfElectron::TrackClusterMatching::deltaPhiSuperClusterAtVtx
float deltaPhiSuperClusterAtVtx
Definition: GsfElectron.h:212
patCandidatesForDimuonsSequences_cff.hcal
hcal
Definition: patCandidatesForDimuonsSequences_cff.py:37
fileCollector.seed
seed
Definition: fileCollector.py:127
reco::GsfElectron::IsolationVariables::tkSumPtHEEP
float tkSumPtHEEP
Definition: GsfElectron.h:512
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
DetId
Definition: DetId.h:17
GsfElectronAlgo::EcalRecHitsConfiguration::recHitSeverityToBeExcludedBarrel
std::vector< int > recHitSeverityToBeExcludedBarrel
Definition: GsfElectronAlgo.h:153
EleRelPoint
Definition: ElectronUtilities.h:25
cms::cuda::bs
bs
Definition: HistoContainer.h:127
reco::GsfElectron::IsolationVariables::tkSumPt
float tkSumPt
Definition: GsfElectron.h:511
reco::GsfElectron::FiducialFlags::isEERingGap
bool isEERingGap
Definition: GsfElectron.h:324
GsfElectronAlgo::caloTopologyToken_
const edm::ESGetToken< CaloTopology, CaloTopologyRecord > caloTopologyToken_
Definition: GsfElectronAlgo.h:248
GsfElectronAlgo::StrategyConfiguration::pureTrackerDrivenEcalErrorFromSimpleParameterization
bool pureTrackerDrivenEcalErrorFromSimpleParameterization
Definition: GsfElectronAlgo.h:80
GsfElectronAlgo::regHelper_
RegressionHelper regHelper_
Definition: GsfElectronAlgo.h:256
reco::GsfElectron::setPixelMatchDRz2
void setPixelMatchDRz2(float dRz2)
Definition: GsfElectron.h:857
ecaldqm::topology
const CaloTopology * topology(nullptr)
reco::GsfElectron::ConversionRejection
Definition: GsfElectron.h:572
GsfConstraintAtVertex
Definition: GsfConstraintAtVertex.h:21
reco::GsfElectron::ShowerShape
Definition: GsfElectron.h:366
PVValHelper::eta
Definition: PVValidationHelpers.h:69
reco::GsfElectronCoreCollection
std::vector< GsfElectronCore > GsfElectronCoreCollection
Definition: GsfElectronCoreFwd.h:12
reco::CaloCluster
Definition: CaloCluster.h:31
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
GsfElectronAlgo::setPixelMatchInfomation
void setPixelMatchInfomation(reco::GsfElectron &) const
Definition: GsfElectronAlgo.cc:1055
reco::GsfElectron::isEEDeeGap
bool isEEDeeGap() const
Definition: GsfElectron.h:344
reco::GsfElectron::IsolationVariables::hcalDepth1TowerSumEt
float hcalDepth1TowerSumEt
Definition: GsfElectron.h:514
reco::GsfElectron::ShowerShape::eTop
float eTop
Definition: GsfElectron.h:383
reco::GsfElectron::FiducialFlags
Definition: GsfElectron.h:317
reco::GsfElectron::setPixelMatchDRz1
void setPixelMatchDRz1(float dRz1)
Definition: GsfElectron.h:856
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
reco::GsfElectron::IsolationVariables
Definition: GsfElectron.h:510
reco::GsfElectron::ShowerShape::hcalTowersBehindClusters
std::vector< CaloTowerDetId > hcalTowersBehindClusters
Definition: GsfElectron.h:376
GsfElectronAlgo::tkIsolHEEP03CalcCfg_
const EleTkIsolFromCands::Configuration tkIsolHEEP03CalcCfg_
Definition: GsfElectronAlgo.h:243
reco::GsfElectron::ShowerShape::sigmaIphiIphi
float sigmaIphiIphi
Definition: GsfElectron.h:369
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
EEDetId
Definition: EEDetId.h:14
GsfElectronAlgo::beginEvent
EventData beginEvent(edm::Event const &event, CaloGeometry const &caloGeometry, EcalSeverityLevelAlgo const &ecalSeveretyLevelAlgo)
Definition: GsfElectronAlgo.cc:411
GsfElectronAlgo::Tokens::endcapRecHitCollection
edm::EDGetTokenT< EcalRecHitCollection > endcapRecHitCollection
Definition: GsfElectronAlgo.h:65
egamma::classBasedElectronEnergy
float classBasedElectronEnergy(reco::GsfElectron const &, reco::BeamSpot const &, EcalClusterFunctionBaseClass const &crackCorrectionFunction)
Definition: ElectronEnergyCorrector.cc:295
EcalEndcap
Definition: EcalSubdetector.h:10
reco::GsfElectron::IsolationVariables::hcalDepth1TowerSumEtBc
float hcalDepth1TowerSumEtBc
Definition: GsfElectron.h:516
FastTrackerRecHitMaskProducer_cfi.recHits
recHits
Definition: FastTrackerRecHitMaskProducer_cfi.py:8
reco::GsfElectron::TrackClusterMatching::eSeedClusterOverPout
float eSeedClusterOverPout
Definition: GsfElectron.h:206
reco::GsfElectron::IsolationVariables::hcalDepth2TowerSumEtBc
float hcalDepth2TowerSumEtBc
Definition: GsfElectron.h:517
IOMC_cff.ecalRecHit
ecalRecHit
Definition: IOMC_cff.py:103
JetMETHLTOfflineSource_cfi.feta
feta
Definition: JetMETHLTOfflineSource_cfi.py:30
reco::GsfElectron::TrackClusterMatching
Definition: GsfElectron.h:202
reco::GsfElectron::TrackClusterMatching::eSuperClusterOverP
float eSuperClusterOverP
Definition: GsfElectron.h:204
reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:233
reco::CaloCluster::hitsAndFractions
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
Definition: CaloCluster.h:210
GsfElectronAlgo::ecalSeveretyLevelAlgoToken_
const edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > ecalSeveretyLevelAlgoToken_
Definition: GsfElectronAlgo.h:250
GsfElectronAlgo::tkIsol04CalcCfg_
const EleTkIsolFromCands::Configuration tkIsol04CalcCfg_
Definition: GsfElectronAlgo.h:242
GsfElectronAlgo::checkSetup
void checkSetup(edm::EventSetup const &eventSetup)
Definition: GsfElectronAlgo.cc:399
EEDetId::isNextToRingBoundary
static bool isNextToRingBoundary(EEDetId id)
Definition: EEDetId.cc:284
cosmicPhotonAnalyzer_cfi.eMax
eMax
Definition: cosmicPhotonAnalyzer_cfi.py:10
GsfElectronAlgo::Tokens::conversions
edm::EDGetTokenT< reco::ConversionCollection > conversions
Definition: GsfElectronAlgo.h:70
reco::GsfElectron::TrackExtrapolations::momentumAtVtxWithConstraint
math::XYZVectorF momentumAtVtxWithConstraint
Definition: GsfElectron.h:270
edm::SortedCollection::end
const_iterator end() const
Definition: SortedCollection.h:267
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
reco::GsfElectron::TrackExtrapolations
Definition: GsfElectron.h:260
edmPickEvents.event
event
Definition: edmPickEvents.py:273
GsfElectronAlgo::createElectron
void createElectron(reco::GsfElectronCollection &electrons, ElectronData &electronData, EventData &eventData, CaloTopology const &topology, CaloGeometry const &geometry, MultiTrajectoryStateTransform const &mtsTransform, double magneticFieldInTesla, const HeavyObjectCache *, egamma::conv::TrackTableView ctfTable, egamma::conv::TrackTableView gsfTable)
Definition: GsfElectronAlgo.cc:712
egamma::correctElectronMomentum
ElectronMomentum correctElectronMomentum(reco::GsfElectron const &, TrajectoryStateOnSurface const &)
Definition: ElectronMomentumCorrector.cc:22
reco::GsfElectron::ShowerShape::e2x5Left
float e2x5Left
Definition: GsfElectron.h:388
EgammaTowerIsolation
Definition: EgammaTowerIsolation.h:197
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88338
GsfElectronAlgo::Configuration::strategy
const StrategyConfiguration strategy
Definition: GsfElectronAlgo.h:199
reco::GsfElectron::hcalOverEcalBc
float hcalOverEcalBc() const
Definition: GsfElectron.h:433
reco::GsfElectron::TrackClusterMatching::deltaPhiEleClusterAtCalo
float deltaPhiEleClusterAtCalo
Definition: GsfElectron.h:211
reco::GsfElectron::ShowerShape::e2x5Top
float e2x5Top
Definition: GsfElectron.h:387
ElectronHcalHelper::beginEvent
void beginEvent(const edm::Event &, const edm::EventSetup &)
Definition: ElectronHcalHelper.cc:23
GsfElectronAlgo::IsolationConfiguration::etMinEndcaps
double etMinEndcaps
Definition: GsfElectronAlgo.h:167
reco::GsfElectron::setPixelMatchDPhi1
void setPixelMatchDPhi1(float dPhi1)
Definition: GsfElectron.h:854
reco::LeafCandidate::charge
int charge() const final
electric charge
Definition: LeafCandidate.h:106
GsfElectronAlgo::CutsConfiguration::seedFromTEC
bool seedFromTEC
Definition: GsfElectronAlgo.h:146
reco::GsfElectron::isEBEtaGap
bool isEBEtaGap() const
Definition: GsfElectron.h:341
DetId::Detector
Detector
Definition: DetId.h:24
EleRelPointPair
Definition: ElectronUtilities.h:43
DetId::Ecal
Definition: DetId.h:27
reco::GsfElectron::TrackExtrapolations::momentumAtEleClus
math::XYZVectorF momentumAtEleClus
Definition: GsfElectron.h:269
reco::GsfElectron::SaturationInfo::isSeedSaturated
bool isSeedSaturated
Definition: GsfElectron.h:492
egamma::classifyElectron
reco::GsfElectron::Classification classifyElectron(reco::GsfElectron const &)
reco::CaloCluster::seed
DetId seed() const
return DetId of seed
Definition: CaloCluster.h:219
GsfElectronAlgo::StrategyConfiguration::fillConvVtxFitProb
bool fillConvVtxFitProb
Definition: GsfElectronAlgo.h:96
reco::GsfElectron::hcalOverEcal
float hcalOverEcal() const
Definition: GsfElectron.h:427
RegressionHelper::checkSetup
void checkSetup(const edm::EventSetup &)
Definition: RegressionHelper.cc:43
reco::GsfElectron::TrackClusterMatching::deltaPhiSeedClusterAtCalo
float deltaPhiSeedClusterAtCalo
Definition: GsfElectron.h:213
EcalClusterToolsT
Definition: EcalClusterTools.h:73
reco::CaloCluster::position
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:154
edm::Ptr< CaloCluster >
looper.cfg
cfg
Definition: looper.py:297
MultiTrajectoryStateTransform
Definition: MultiTrajectoryStateTransform.h:18
reco::GsfElectron::sigmaIetaIeta
float sigmaIetaIeta() const
Definition: GsfElectron.h:419
EBDetId::isNextToPhiBoundary
static bool isNextToPhiBoundary(EBDetId id)
Definition: EBDetId.cc:113
SiStripSubdetector::UNKNOWN
Definition: SiStripEnums.h:5
reco::GsfElectron::ConversionRejection::partner
TrackBaseRef partner
Definition: GsfElectron.h:574
edm::SortedCollection::find
iterator find(key_type k)
Definition: SortedCollection.h:240
edm::Ref::id
ProductID id() const
Accessor for product ID.
Definition: Ref.h:244
GsfElectronAlgo::calculateSaturationInfo
reco::GsfElectron::SaturationInfo calculateSaturationInfo(const reco::SuperClusterRef &, EventData const &eventData) const
Definition: GsfElectronAlgo.cc:258
reco::GsfElectron::ShowerShape::eRight
float eRight
Definition: GsfElectron.h:385
reco::GsfElectron::ShowerShape::e2nd
float e2nd
Definition: GsfElectron.h:382
eostools.move
def move(src, dest)
Definition: eostools.py:511
GsfElectronAlgo::Configuration::tokens
const Tokens tokens
Definition: GsfElectronAlgo.h:198
reco::GsfElectron::ShowerShape::invalidHcal
bool invalidHcal
Definition: GsfElectron.h:379
GsfElectronAlgo::cfg_
const Configuration cfg_
Definition: GsfElectronAlgo.h:239
reco::GsfElectron::ShowerShape::e1x5
float e1x5
Definition: GsfElectron.h:370
GsfElectronAlgo::StrategyConfiguration::PreSelectMVA
float PreSelectMVA
Definition: GsfElectronAlgo.h:88
reco::GsfElectron::setPassCutBasedPreselection
void setPassCutBasedPreselection(bool flag)
Definition: GsfElectron.h:695
pwdgSkimBPark_cfi.electrons
electrons
Definition: pwdgSkimBPark_cfi.py:6
reco::GsfElectron::ConversionRejection::dist
float dist
Definition: GsfElectron.h:575
reco::GsfElectron::TrackClusterMatching::deltaEtaSuperClusterAtVtx
float deltaEtaSuperClusterAtVtx
Definition: GsfElectron.h:208
GsfElectronAlgo::superClusterErrorFunction_
std::unique_ptr< EcalClusterFunctionBaseClass > superClusterErrorFunction_
Definition: GsfElectronAlgo.h:254
reco::GsfElectron::isEBEEGap
bool isEBEEGap() const
Definition: GsfElectron.h:339
packedPFCandidateRefMixer_cfi.pf
pf
Definition: packedPFCandidateRefMixer_cfi.py:4
reco::GsfElectron::ShowerShape::hcalDepth2OverEcalBc
float hcalDepth2OverEcalBc
Definition: GsfElectron.h:378
GsfElectronAlgo::IsolationConfiguration::jurassicWidth
double jurassicWidth
Definition: GsfElectronAlgo.h:164
EEDetId::isNextToDBoundary
static bool isNextToDBoundary(EEDetId id)
Definition: EEDetId.cc:279
GsfElectronAlgo::IsolationConfiguration::etMinBarrel
double etMinBarrel
Definition: GsfElectronAlgo.h:165
GsfElectronAlgo::IsolationConfiguration::intRadiusEcalEndcaps
double intRadiusEcalEndcaps
Definition: GsfElectronAlgo.h:163
Exception
Definition: hltDiff.cc:246
ConversionTools::matchedConversion
static const reco::Conversion * matchedConversion(const reco::GsfElectron &ele, const reco::ConversionCollection &convCol, const math::XYZPoint &beamspot, bool allowCkfMatch=true, float lxyMin=2.0, float probMin=1e-6, unsigned int nHitsBeforeVtxMax=0)
Definition: ConversionTools.cc:257
reco::GsfElectron::TrackExtrapolations::positionAtCalo
math::XYZPointF positionAtCalo
Definition: GsfElectron.h:262
reco::GsfElectron::ShowerShape::hcalDepth1OverEcalBc
float hcalDepth1OverEcalBc
Definition: GsfElectron.h:377
reco::GsfElectron::eSuperClusterOverP
float eSuperClusterOverP() const
Definition: GsfElectron.h:229
GsfElectronAlgo::Tokens::vtxCollectionTag
edm::EDGetTokenT< reco::VertexCollection > vtxCollectionTag
Definition: GsfElectronAlgo.h:69
reco::GsfElectron::ConversionRejection::radius
float radius
Definition: GsfElectron.h:577
reco::GsfElectron::ConversionRejection::flags
int flags
Definition: GsfElectron.h:573
reco::GsfElectron::IsolationVariables::hcalDepth2TowerSumEt
float hcalDepth2TowerSumEt
Definition: GsfElectron.h:515
GsfElectronAlgo::StrategyConfiguration::useDefaultEnergyCorrection
bool useDefaultEnergyCorrection
Definition: GsfElectronAlgo.h:90
edm::RefToBase< TrajectorySeed >
reco::GsfElectron::isEBPhiGap
bool isEBPhiGap() const
Definition: GsfElectron.h:342
reco::GsfElectron::ShowerShape::eLeft
float eLeft
Definition: GsfElectron.h:384
reco::GsfElectron::superCluster
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:163
egamma::classBasedElectronEnergyUncertainty
double classBasedElectronEnergyUncertainty(reco::GsfElectron const &)
Definition: ElectronEnergyCorrector.cc:270
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
GsfElectronAlgo::Tokens::ctfTracks
edm::EDGetTokenT< reco::TrackCollection > ctfTracks
Definition: GsfElectronAlgo.h:67
GsfElectronAlgo::StrategyConfiguration::useEcalRegression
bool useEcalRegression
Definition: GsfElectronAlgo.h:92
reco::GsfElectron::IsolationVariables::ecalRecHitSumEt
float ecalRecHitSumEt
Definition: GsfElectron.h:513
GsfElectronAlgo::Tokens::hcalTowersTag
edm::EDGetTokenT< CaloTowerCollection > hcalTowersTag
Definition: GsfElectronAlgo.h:61
GsfElectronAlgo::IsolationConfiguration::intRadiusHcal
double intRadiusHcal
Definition: GsfElectronAlgo.h:160
GsfElectronAlgo::StrategyConfiguration::ecalDrivenEcalEnergyFromClassBasedParameterization
bool ecalDrivenEcalEnergyFromClassBasedParameterization
Definition: GsfElectronAlgo.h:78
reco::GsfElectron::FiducialFlags::isEBEtaGap
bool isEBEtaGap
Definition: GsfElectron.h:321
cms::Exception
Definition: Exception.h:70
reco::GsfElectron::FiducialFlags::isEB
bool isEB
Definition: GsfElectron.h:318
EleTkIsolFromCands
Definition: EleTkIsolFromCands.h:46
L1TMuonDQMOffline_cfi.cuts
cuts
Definition: L1TMuonDQMOffline_cfi.py:41
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:224
reco::GsfElectron::TrackExtrapolations::momentumAtVtx
math::XYZVectorF momentumAtVtx
Definition: GsfElectron.h:263
RegressionHelper::applyEcalRegression
void applyEcalRegression(reco::GsfElectron &electron, const reco::VertexCollection &vertices, const EcalRecHitCollection &rechitsEB, const EcalRecHitCollection &rechitsEE) const
Definition: RegressionHelper.cc:33
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
event
Definition: event.py:1
reco::GsfElectron::SaturationInfo
Definition: GsfElectron.h:490
GsfElectronAlgo::crackCorrectionFunction_
std::unique_ptr< EcalClusterFunctionBaseClass > crackCorrectionFunction_
Definition: GsfElectronAlgo.h:255
GsfElectronAlgo::Configuration::cuts
const CutsConfiguration cuts
Definition: GsfElectronAlgo.h:200
egamma::simpleElectronEnergyUncertainty
double simpleElectronEnergyUncertainty(reco::GsfElectron const &)
Definition: ElectronEnergyCorrector.cc:277
reco::CaloCluster::energy
double energy() const
cluster energy
Definition: CaloCluster.h:149
reco::GsfElectron::ShowerShape::e5x5
float e5x5
Definition: GsfElectron.h:372
GsfElectronAlgo::Configuration::recHits
const EcalRecHitsConfiguration recHits
Definition: GsfElectronAlgo.h:202
GsfElectronAlgo::tkIsolHEEP04CalcCfg_
const EleTkIsolFromCands::Configuration tkIsolHEEP04CalcCfg_
Definition: GsfElectronAlgo.h:244
reco::GsfElectron::ShowerShape::e2x5Bottom
float e2x5Bottom
Definition: GsfElectron.h:390
GsfElectronAlgo::caloGeometryToken_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Definition: GsfElectronAlgo.h:247
reco::GsfElectron::ConversionRejection::vtxFitProb
float vtxFitProb
Definition: GsfElectron.h:578
reco::GsfElectron::TrackClusterMatching::deltaEtaSeedClusterAtCalo
float deltaEtaSeedClusterAtCalo
Definition: GsfElectron.h:209
reco::GsfElectron::TrackExtrapolations::positionAtVtx
math::XYZPointF positionAtVtx
Definition: GsfElectron.h:261
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ProductID::id
ProductIndex id() const
Definition: ProductID.h:35
GsfElectronAlgo::EcalRecHitsConfiguration::recHitSeverityToBeExcludedEndcaps
std::vector< int > recHitSeverityToBeExcludedEndcaps
Definition: GsfElectronAlgo.h:154
reco::GsfElectron::ShowerShape::hcalDepth2OverEcal
float hcalDepth2OverEcal
Definition: GsfElectron.h:375