#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) | |
bool | hasActiveHcal (const reco::SuperCluster &sc) const |
const auto | hcalChannelQuality () const |
double | hcalESum (const reco::SuperCluster &, int depth) 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 23 of file ElectronHcalHelper.h.
ElectronHcalHelper::ElectronHcalHelper | ( | const Configuration & | cfg, |
edm::ConsumesCollector && | cc | ||
) |
Definition at line 8 of file ElectronHcalHelper.cc.
References caloGeometryToken_, 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().
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 56 of file ElectronHcalHelper.h.
References hcalChannelQuality_.
Referenced by GsfElectronAlgo::beginEvent().
double ElectronHcalHelper::hcalESum | ( | const reco::SuperCluster & | sc, |
int | depth | ||
) | const |
Definition at line 73 of file ElectronHcalHelper.cc.
References cfg_, LEDCalibrationChannels::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 57 of file ElectronHcalHelper.h.
References hcalSevLvlComputer_.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 55 of file ElectronHcalHelper.h.
References hcalTopology_.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 45 of file ElectronHcalHelper.h.
References towerMap_, and egamma::towersOf().
Referenced by GsfElectronAlgo::calculateShowerShape(), PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), and hasActiveHcal().
|
inline |
Definition at line 47 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::hOverEConeSize.
|
inline |
Definition at line 48 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::maxSeverityHB.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 49 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::maxSeverityHE.
Referenced by GsfElectronAlgo::beginEvent().
|
inline |
Definition at line 58 of file ElectronHcalHelper.h.
References towerMap_.
Referenced by GsfElectronAlgo::beginEvent().
|
private |
Definition at line 63 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 61 of file ElectronHcalHelper.h.
Referenced by beginEvent(), ElectronHcalHelper(), hasActiveHcal(), hcalESum(), hOverEConeSize(), maxSeverityHB(), and maxSeverityHE().
|
private |
Definition at line 72 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), and hcalChannelQuality().
|
private |
Definition at line 65 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 70 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hcalESum().
|
private |
Definition at line 73 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hcalSevLvlComputer().
|
private |
Definition at line 66 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 71 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), and hcalTopology().
|
private |
Definition at line 64 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 74 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), hcalTowersBehindClusters(), and towerMap().
|
private |
Definition at line 67 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().