#include <ElectronHcalHelper.h>
Classes | |
struct | Configuration |
Public Member Functions | |
void | beginEvent (const edm::Event &, const edm::EventSetup &) |
ElectronHcalHelper (const Configuration &cfg, edm::ConsumesCollector &&cc) | |
bool | hasActiveHcal (const reco::SuperCluster &sc) const |
double | hcalESum (const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=nullptr) const |
double | hcalESumDepth1 (const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=nullptr) const |
auto | hcalESumDepth1BehindClusters (const std::vector< CaloTowerDetId > &towers) const |
double | hcalESumDepth2 (const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=nullptr) const |
auto | hcalESumDepth2BehindClusters (const std::vector< CaloTowerDetId > &towers) const |
auto | hcalTowersBehindClusters (const reco::SuperCluster &sc) const |
double | hOverEConeSize () const |
Private Attributes | |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeometryToken_ |
const Configuration | cfg_ |
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > | hcalChannelQualityToken_ |
std::unique_ptr< EgammaHcalIsolation > | hcalIso_ = nullptr |
const HcalChannelQuality * | hcalQuality_ = nullptr |
const HcalTopology * | hcalTopology_ = nullptr |
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > | hcalTopologyToken_ |
std::unique_ptr< EgammaTowerIsolation > | towerIso1_ = nullptr |
std::unique_ptr< EgammaTowerIsolation > | towerIso2_ = nullptr |
const CaloTowerConstituentsMap * | towerMap_ = nullptr |
edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > | towerMapToken_ |
const CaloTowerCollection * | towersFromCollection_ = nullptr |
Definition at line 23 of file ElectronHcalHelper.h.
ElectronHcalHelper::ElectronHcalHelper | ( | const Configuration & | cfg, |
edm::ConsumesCollector && | cc | ||
) |
Definition at line 9 of file ElectronHcalHelper.cc.
References caloGeometryToken_, cfg_, hcalChannelQualityToken_, hcalTopologyToken_, ElectronHcalHelper::Configuration::hOverEConeSize, towerMapToken_, and ElectronHcalHelper::Configuration::useTowers.
void ElectronHcalHelper::beginEvent | ( | const edm::Event & | evt, |
const edm::EventSetup & | eventSetup | ||
) |
Definition at line 23 of file ElectronHcalHelper.cc.
References caloGeometryToken_, cfg_, edm::Event::get(), edm::EventSetup::getData(), edm::EventSetup::getHandle(), hcalChannelQualityToken_, hcalIso_, hcalQuality_, ElectronHcalHelper::Configuration::hcalRecHits, hcalTopology_, hcalTopologyToken_, ElectronHcalHelper::Configuration::hcalTowers, ElectronHcalHelper::Configuration::hOverEConeSize, ElectronHcalHelper::Configuration::hOverEHBMinE, ElectronHcalHelper::Configuration::hOverEHFMinE, ElectronHcalHelper::Configuration::hOverEPtMin, towerIso1_, towerIso2_, towerMap_, towerMapToken_, towersFromCollection_, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::completeElectrons().
bool ElectronHcalHelper::hasActiveHcal | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 86 of file ElectronHcalHelper.cc.
References cfg_, ElectronHcalHelper::Configuration::checkHcalStatus, egamma::hasActiveHcal(), hcalQuality_, hcalTopology_, ElectronHcalHelper::Configuration::hOverEConeSize, towerMap_, egamma::towersOf(), and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::calculateShowerShape().
double ElectronHcalHelper::hcalESum | ( | const reco::SuperCluster & | sc, |
const std::vector< CaloTowerDetId > * | excludeTowers = nullptr |
||
) | const |
Definition at line 51 of file ElectronHcalHelper.cc.
References cfg_, hcalESumDepth1(), hcalESumDepth2(), hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, and ElectronHcalHelper::Configuration::useTowers.
double ElectronHcalHelper::hcalESumDepth1 | ( | const reco::SuperCluster & | sc, |
const std::vector< CaloTowerDetId > * | excludeTowers = nullptr |
||
) | const |
Definition at line 62 of file ElectronHcalHelper.cc.
References cfg_, hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, towerIso1_, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::calculateShowerShape(), and hcalESum().
|
inline |
Definition at line 53 of file ElectronHcalHelper.h.
References egamma::depth1HcalESum(), HLT_FULL_cff::towers, and towersFromCollection_.
Referenced by GsfElectronAlgo::calculateShowerShape().
double ElectronHcalHelper::hcalESumDepth2 | ( | const reco::SuperCluster & | sc, |
const std::vector< CaloTowerDetId > * | excludeTowers = nullptr |
||
) | const |
Definition at line 74 of file ElectronHcalHelper.cc.
References cfg_, hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, towerIso2_, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::calculateShowerShape(), and hcalESum().
|
inline |
Definition at line 56 of file ElectronHcalHelper.h.
References egamma::depth2HcalESum(), HLT_FULL_cff::towers, and towersFromCollection_.
Referenced by GsfElectronAlgo::calculateShowerShape().
|
inline |
Definition at line 52 of file ElectronHcalHelper.h.
References towerMap_, and egamma::towersOf().
Referenced by GsfElectronAlgo::calculateShowerShape().
|
inline |
Definition at line 49 of file ElectronHcalHelper.h.
References cfg_, and ElectronHcalHelper::Configuration::hOverEConeSize.
|
private |
Definition at line 70 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 65 of file ElectronHcalHelper.h.
Referenced by beginEvent(), ElectronHcalHelper(), hasActiveHcal(), hcalESum(), hcalESumDepth1(), hcalESumDepth2(), and hOverEConeSize().
|
private |
Definition at line 67 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 73 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hcalESum(), hcalESumDepth1(), and hcalESumDepth2().
|
private |
Definition at line 80 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hasActiveHcal().
|
private |
Definition at line 81 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hasActiveHcal().
|
private |
Definition at line 68 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 76 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hcalESumDepth1().
|
private |
Definition at line 77 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and hcalESumDepth2().
|
private |
Definition at line 79 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hasActiveHcal(), and hcalTowersBehindClusters().
|
private |
Definition at line 69 of file ElectronHcalHelper.h.
Referenced by beginEvent(), and ElectronHcalHelper().
|
private |
Definition at line 78 of file ElectronHcalHelper.h.
Referenced by beginEvent(), hcalESumDepth1BehindClusters(), and hcalESumDepth2BehindClusters().