#include <ElectronHcalHelper.h>
Classes | |
struct | Configuration |
Public Member Functions | |
void | beginEvent (const edm::Event &evt, const edm::EventSetup &eventSetup) |
ElectronHcalHelper (const Configuration &cfg, edm::ConsumesCollector &&cc) | |
EgammaHcalIsolation::arrayHB | eThresHB () const |
EgammaHcalIsolation::arrayHE | eThresHE () const |
bool | hasActiveHcal (const reco::SuperCluster &sc) const |
const auto | hcalChannelQuality () const |
double | hcalESum (const reco::SuperCluster &, int depth, const HcalPFCuts *hcalCuts) const |
const auto | hcalSevLvlComputer () const |
const auto | hcalTopology () const |
auto | hcalTowersBehindClusters (const reco::SuperCluster &sc) const |
double | hOverEConeSize () const |
int | maxSeverityHB () const |
int | maxSeverityHE () const |
const auto | towerMap () const |
Private Attributes | |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeometryToken_ |
const Configuration | cfg_ |
HcalChannelQuality const * | hcalChannelQuality_ = nullptr |
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > | hcalChannelQualityToken_ |
std::unique_ptr< EgammaHcalIsolation > | hcalIso_ |
HcalSeverityLevelComputer const * | hcalSevLvlComputer_ = nullptr |
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > | hcalSevLvlComputerToken_ |
HcalTopology const * | hcalTopology_ = nullptr |
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > | hcalTopologyToken_ |
CaloTowerConstituentsMap const * | towerMap_ = nullptr |
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > | towerMapToken_ |
Definition at line 25 of file ElectronHcalHelper.h.
ElectronHcalHelper::ElectronHcalHelper | ( | const Configuration & | cfg, |
edm::ConsumesCollector && | cc | ||
) |
Definition at line 8 of file ElectronHcalHelper.cc.
References caloGeometryToken_, gpuPixelDoublets::cc, cfg_, hcalChannelQualityToken_, hcalSevLvlComputerToken_, hcalTopologyToken_, ElectronHcalHelper::Configuration::hOverEConeSize, ElectronHcalHelper::Configuration::onlyBehindCluster, and towerMapToken_.
void ElectronHcalHelper::beginEvent | ( | const edm::Event & | evt, |
const edm::EventSetup & | eventSetup | ||
) |
Definition at line 20 of file ElectronHcalHelper.cc.
References caloGeometryToken_, cfg_, ElectronHcalHelper::Configuration::eThresHB, ElectronHcalHelper::Configuration::eThresHE, options_cfi::eventSetup, edm::Event::get(), ElectronHcalHelper::Configuration::hbheRecHits, hcalChannelQuality_, hcalChannelQualityToken_, hcalIso_, hcalSevLvlComputer_, hcalSevLvlComputerToken_, hcalTopology_, hcalTopologyToken_, ElectronHcalHelper::Configuration::hOverEConeSize, EgammaHcalIsolation::isBehindClusterSeed, ElectronHcalHelper::Configuration::maxSeverityHB, ElectronHcalHelper::Configuration::maxSeverityHE, ElectronHcalHelper::Configuration::onlyBehindCluster, towerMap_, towerMapToken_, and EgammaHcalIsolation::withinConeAroundCluster.
Referenced by GsfElectronAlgo::completeElectrons().
|
inline |
Definition at line 52 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::eThresHB.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 53 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::eThresHE.
Referenced by GsfElectronAlgo::beginEvent().
bool ElectronHcalHelper::hasActiveHcal | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 67 of file ElectronHcalHelper.cc.
References cfg_, ElectronHcalHelper::Configuration::checkHcalStatus, egamma::hasActiveHcal(), hcalChannelQuality_, hcalTopology_, hcalTowersBehindClusters(), and towerMap_.
Referenced by GsfElectronAlgo::calculateShowerShape(), and GEDPhotonProducer::fillPhotonCollection().
|
inline |
Definition at line 60 of file ElectronHcalHelper.h.
References hcalChannelQuality_.
Referenced by GsfElectronAlgo::beginEvent().
double ElectronHcalHelper::hcalESum | ( | const reco::SuperCluster & | sc, |
int | depth, | ||
const HcalPFCuts * | hcalCuts | ||
) | const |
Definition at line 73 of file ElectronHcalHelper.cc.
References cfg_, hcalRecHitTable_cff::depth, hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, and ElectronHcalHelper::Configuration::onlyBehindCluster.
Referenced by ConvertedPhotonProducer::buildCollections(), ConversionTrackCandidateProducer::buildCollections(), GsfElectronAlgo::calculateShowerShape(), PhotonProducer::fillPhotonCollection(), and GEDPhotonProducer::fillPhotonCollection().
|
inline |
Definition at line 61 of file ElectronHcalHelper.h.
References hcalSevLvlComputer_.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 59 of file ElectronHcalHelper.h.
References hcalTopology_.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 47 of file ElectronHcalHelper.h.
References towerMap_, and egamma::towersOf().
Referenced by GsfElectronAlgo::calculateShowerShape(), PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), and hasActiveHcal().
|
inline |
Definition at line 49 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::hOverEConeSize.
|
inline |
Definition at line 50 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::maxSeverityHB.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 51 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::maxSeverityHE.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 62 of file ElectronHcalHelper.h.
References towerMap_.
Referenced by GsfElectronAlgo::beginEvent().
|
private |
Definition at line 67 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 65 of file ElectronHcalHelper.h.
Referenced by beginEvent(), ElectronHcalHelper(), eThresHB(), eThresHE(), hasActiveHcal(), hcalESum(), hOverEConeSize(), maxSeverityHB(), and maxSeverityHE().
|
private |
Definition at line 76 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), and hcalChannelQuality().
|
private |
Definition at line 69 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 74 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hcalESum().
|
private |
Definition at line 77 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hcalSevLvlComputer().
|
private |
Definition at line 70 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 75 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), and hcalTopology().
|
private |
Definition at line 68 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 78 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), hcalTowersBehindClusters(), and towerMap().
|
private |
Definition at line 71 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().