#include <EgammaHadTower.h>
Public Types | |
enum | HoeMode { SingleTower = 0, TowersBehindCluster = 1 } |
Public Member Functions | |
EgammaHadTower (const edm::EventSetup &es, HoeMode mode=SingleTower) | |
double | getDepth1HcalESum (const std::vector< CaloTowerDetId > &towers, CaloTowerCollection const &) const |
double | getDepth2HcalESum (const std::vector< CaloTowerDetId > &towers, CaloTowerCollection const &) const |
bool | hasActiveHcal (const std::vector< CaloTowerDetId > &towers) const |
CaloTowerDetId | towerOf (const reco::CaloCluster &cluster) const |
std::vector< CaloTowerDetId > | towersOf (const reco::SuperCluster &sc) const |
Private Attributes | |
const HcalChannelQuality * | hcalQuality_ |
const HcalTopology * | hcalTopology_ |
HoeMode | mode_ |
unsigned int | nMaxClusters_ |
const CaloTowerConstituentsMap * | towerMap_ |
Definition at line 17 of file EgammaHadTower.h.
EgammaHadTower::EgammaHadTower | ( | const edm::EventSetup & | es, |
HoeMode | mode = SingleTower |
||
) |
Definition at line 20 of file EgammaHadTower.cc.
References edm::EventSetup::get(), get, hcalQuality_, hcalTopology_, nMaxClusters_, edm::ESHandle< T >::product(), and towerMap_.
double EgammaHadTower::getDepth1HcalESum | ( | const std::vector< CaloTowerDetId > & | towers, |
CaloTowerCollection const & | towerCollection | ||
) | const |
Definition at line 94 of file EgammaHadTower.cc.
References spr::find(), hgcalTowerProducer_cfi::tower, HLT_2018_cff::towerCollection, and HLT_2018_cff::towers.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::hcalESumDepth1BehindClusters(), and EgammaHLTBcHcalIsolationProducersRegional::produce().
double EgammaHadTower::getDepth2HcalESum | ( | const std::vector< CaloTowerDetId > & | towers, |
CaloTowerCollection const & | towerCollection | ||
) | const |
Definition at line 105 of file EgammaHadTower.cc.
References spr::find(), hgcalTowerProducer_cfi::tower, HLT_2018_cff::towerCollection, and HLT_2018_cff::towers.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::hcalESumDepth2BehindClusters(), and EgammaHLTBcHcalIsolationProducersRegional::produce().
bool EgammaHadTower::hasActiveHcal | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 116 of file EgammaHadTower.cc.
References CaloTowerConstituentsMap::constituentsOf(), gather_cfg::cout, TauDecayModes::dec, HcalDetId::depth(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), DetId::Hcal, HcalBarrel, HcalChannelStatus::HcalCellDead, HcalChannelStatus::HcalCellMask, HcalChannelStatus::HcalCellOff, HcalEndcap, hcalQuality_, hcalTopology_, HcalTopology::idFront(), HcalDetId::ieta(), HcalDetId::iphi(), DetId::rawId(), mps_update::status, HcalDetId::subdet(), towerMap_, and HLT_2018_cff::towers.
Referenced by GEDPhotonProducer::fillPhotonCollection(), and ElectronHcalHelper::hasActiveHcal().
CaloTowerDetId EgammaHadTower::towerOf | ( | const reco::CaloCluster & | cluster | ) | const |
Definition at line 35 of file EgammaHadTower.cc.
References DetId::det(), DetId::Ecal, reco::CaloCluster::hitsAndFractions(), triggerObjects_cff::id, reco::CaloCluster::seed(), hgcalTowerProducer_cfi::tower, towerMap_, and CaloTowerConstituentsMap::towerOf().
Referenced by towersOf().
std::vector< CaloTowerDetId > EgammaHadTower::towersOf | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 50 of file EgammaHadTower.cc.
References alignmentValidation::c1, reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), gather_cfg::cout, spr::find(), triggerObjects_cff::id, mode_, nMaxClusters_, reco::SuperCluster::seed(), SingleTower, towerOf(), HLT_2018_cff::towers, and TowersBehindCluster.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::hasActiveHcal(), ElectronHcalHelper::hcalTowersBehindClusters(), and EgammaHLTBcHcalIsolationProducersRegional::produce().
|
private |
Definition at line 32 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and hasActiveHcal().
|
private |
Definition at line 33 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and hasActiveHcal().
|
private |
Definition at line 30 of file EgammaHadTower.h.
Referenced by towersOf().
|
private |
Definition at line 31 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and towersOf().
|
private |
Definition at line 29 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), hasActiveHcal(), and towerOf().