#include <ElectronHcalHelper.h>
Classes | |
struct | Configuration |
Public Member Functions | |
void | checkSetup (const edm::EventSetup &) |
ElectronHcalHelper (const Configuration &) | |
bool | hasActiveHcal (const reco::SuperCluster &sc) const |
double | hcalESum (const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=0) const |
double | hcalESumDepth1 (const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=0) const |
double | hcalESumDepth1BehindClusters (const std::vector< CaloTowerDetId > &towers) const |
double | hcalESumDepth2 (const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=0) const |
double | hcalESumDepth2BehindClusters (const std::vector< CaloTowerDetId > &towers) const |
std::vector< CaloTowerDetId > | hcalTowersBehindClusters (const reco::SuperCluster &sc) const |
double | hOverEConeSize () const |
void | readEvent (const edm::Event &) |
~ElectronHcalHelper () | |
Private Attributes | |
edm::ESHandle< CaloGeometry > | caloGeom_ |
unsigned long long | caloGeomCacheId_ |
const Configuration | cfg_ |
EgammaHadTower * | hadTower_ |
EgammaHcalIsolation * | hcalIso_ |
EgammaTowerIsolation * | towerIso1_ |
EgammaTowerIsolation * | towerIso2_ |
Definition at line 21 of file ElectronHcalHelper.h.
ElectronHcalHelper::ElectronHcalHelper | ( | const Configuration & | cfg | ) |
Definition at line 11 of file ElectronHcalHelper.cc.
ElectronHcalHelper::~ElectronHcalHelper | ( | ) |
Definition at line 120 of file ElectronHcalHelper.cc.
References cfg_, hadTower_, hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, mathSSE::return(), towerIso1_, towerIso2_, and ElectronHcalHelper::Configuration::useTowers.
void ElectronHcalHelper::checkSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 15 of file ElectronHcalHelper.cc.
References caloGeom_, caloGeomCacheId_, cfg_, edm::EventSetup::get(), hadTower_, ElectronHcalHelper::Configuration::hOverEConeSize, mathSSE::return(), and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::checkSetup(), EgammaHLTBcHcalIsolationProducersRegional::produce(), and ElectronSeedProducer::produce().
bool ElectronHcalHelper::hasActiveHcal | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 110 of file ElectronHcalHelper.cc.
References cfg_, ElectronHcalHelper::Configuration::checkHcalStatus, hadTower_, EgammaHadTower::hasActiveHcal(), ElectronHcalHelper::Configuration::hOverEConeSize, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::calculateShowerShape(), and hOverEConeSize().
double ElectronHcalHelper::hcalESum | ( | const reco::SuperCluster & | sc, |
const std::vector< CaloTowerDetId > * | excludeTowers = 0 |
||
) | const |
Definition at line 80 of file ElectronHcalHelper.cc.
References cfg_, EgammaHcalIsolation::getHcalESum(), hcalESumDepth1(), hcalESumDepth2(), hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, and ElectronHcalHelper::Configuration::useTowers.
Referenced by EgammaHLTBcHcalIsolationProducersRegional::produce().
double ElectronHcalHelper::hcalESumDepth1 | ( | const reco::SuperCluster & | sc, |
const std::vector< CaloTowerDetId > * | excludeTowers = 0 |
||
) | const |
Definition at line 90 of file ElectronHcalHelper.cc.
References cfg_, EgammaHcalIsolation::getHcalESumDepth1(), EgammaTowerIsolation::getTowerESum(), hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, towerIso1_, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::calculateShowerShape(), ElectronSeedProducer::filterClusters(), and hcalESum().
double ElectronHcalHelper::hcalESumDepth1BehindClusters | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 74 of file ElectronHcalHelper.cc.
References EgammaHadTower::getDepth1HcalESum(), and hadTower_.
Referenced by GsfElectronAlgo::calculateShowerShape(), hOverEConeSize(), and EgammaHLTBcHcalIsolationProducersRegional::produce().
double ElectronHcalHelper::hcalESumDepth2 | ( | const reco::SuperCluster & | sc, |
const std::vector< CaloTowerDetId > * | excludeTowers = 0 |
||
) | const |
Definition at line 100 of file ElectronHcalHelper.cc.
References cfg_, EgammaHcalIsolation::getHcalESumDepth2(), EgammaTowerIsolation::getTowerESum(), hcalIso_, ElectronHcalHelper::Configuration::hOverEConeSize, towerIso2_, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::calculateShowerShape(), ElectronSeedProducer::filterClusters(), and hcalESum().
double ElectronHcalHelper::hcalESumDepth2BehindClusters | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 77 of file ElectronHcalHelper.cc.
References EgammaHadTower::getDepth2HcalESum(), and hadTower_.
Referenced by GsfElectronAlgo::calculateShowerShape(), hOverEConeSize(), and EgammaHLTBcHcalIsolationProducersRegional::produce().
std::vector< CaloTowerDetId > ElectronHcalHelper::hcalTowersBehindClusters | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 71 of file ElectronHcalHelper.cc.
References hadTower_, and EgammaHadTower::towersOf().
Referenced by GsfElectronAlgo::calculateShowerShape(), hOverEConeSize(), and EgammaHLTBcHcalIsolationProducersRegional::produce().
|
inline |
Definition at line 49 of file ElectronHcalHelper.h.
References cfg_, hasActiveHcal(), hcalESumDepth1BehindClusters(), hcalESumDepth2BehindClusters(), hcalTowersBehindClusters(), ElectronHcalHelper::Configuration::hOverEConeSize, and SimDataFormats::CaloAnalysis::sc.
void ElectronHcalHelper::readEvent | ( | const edm::Event & | evt | ) |
Definition at line 38 of file ElectronHcalHelper.cc.
References caloGeom_, cfg_, edm::Event::getByToken(), hadTower_, hcalIso_, ElectronHcalHelper::Configuration::hcalRecHits, ElectronHcalHelper::Configuration::hcalTowers, ElectronHcalHelper::Configuration::hOverEConeSize, ElectronHcalHelper::Configuration::hOverEHBMinE, ElectronHcalHelper::Configuration::hOverEHFMinE, ElectronHcalHelper::Configuration::hOverEPtMin, nullptr, edm::Handle< T >::product(), mathSSE::return(), EgammaHadTower::setTowerCollection(), towerIso1_, towerIso2_, and ElectronHcalHelper::Configuration::useTowers.
Referenced by GsfElectronAlgo::beginEvent(), EgammaHLTBcHcalIsolationProducersRegional::produce(), and ElectronSeedProducer::produce().
|
private |
Definition at line 66 of file ElectronHcalHelper.h.
Referenced by checkSetup(), and readEvent().
|
private |
Definition at line 65 of file ElectronHcalHelper.h.
Referenced by checkSetup().
|
private |
Definition at line 62 of file ElectronHcalHelper.h.
Referenced by checkSetup(), hasActiveHcal(), hcalESum(), hcalESumDepth1(), hcalESumDepth2(), hOverEConeSize(), readEvent(), and ~ElectronHcalHelper().
|
private |
Definition at line 74 of file ElectronHcalHelper.h.
Referenced by checkSetup(), hasActiveHcal(), hcalESumDepth1BehindClusters(), hcalESumDepth2BehindClusters(), hcalTowersBehindClusters(), readEvent(), and ~ElectronHcalHelper().
|
private |
Definition at line 69 of file ElectronHcalHelper.h.
Referenced by hcalESum(), hcalESumDepth1(), hcalESumDepth2(), readEvent(), and ~ElectronHcalHelper().
|
private |
Definition at line 72 of file ElectronHcalHelper.h.
Referenced by hcalESumDepth1(), readEvent(), and ~ElectronHcalHelper().
|
private |
Definition at line 73 of file ElectronHcalHelper.h.
Referenced by hcalESumDepth2(), readEvent(), and ~ElectronHcalHelper().