#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 reco::SuperCluster &sc) const |
double | getDepth1HcalESum (const std::vector< CaloTowerDetId > &towers) const |
double | getDepth2HcalESum (const reco::SuperCluster &sc) const |
double | getDepth2HcalESum (const std::vector< CaloTowerDetId > &towers) const |
bool | hasActiveHcal (const reco::SuperCluster &sc) const |
bool | hasActiveHcal (const std::vector< CaloTowerDetId > &towers) const |
void | setTowerCollection (const CaloTowerCollection *towercollection) |
CaloTowerDetId | towerOf (const reco::CaloCluster &cluster) const |
std::vector< CaloTowerDetId > | towersOf (const reco::SuperCluster &sc) const |
~EgammaHadTower () | |
Private Attributes | |
const HcalChannelQuality * | hcalQuality_ |
const HcalTopology * | hcalTopology_ |
HoeMode | mode_ |
unsigned int | NMaxClusters_ |
const CaloTowerCollection * | towerCollection_ |
const CaloTowerConstituentsMap * | towerMap_ |
Definition at line 17 of file EgammaHadTower.h.
Enumerator | |
---|---|
SingleTower | |
TowersBehindCluster |
Definition at line 20 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(), hcalQuality_, hcalTopology_, NMaxClusters_, edm::ESHandle< T >::product(), and towerMap_.
|
inline |
Definition at line 23 of file EgammaHadTower.h.
References getDepth1HcalESum(), getDepth2HcalESum(), hasActiveHcal(), SimDataFormats::CaloAnalysis::sc, setTowerCollection(), towerOf(), and towersOf().
double EgammaHadTower::getDepth1HcalESum | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 177 of file EgammaHadTower.cc.
References towersOf().
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::hcalESumDepth1BehindClusters(), and ~EgammaHadTower().
double EgammaHadTower::getDepth1HcalESum | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 99 of file EgammaHadTower.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), spr::find(), and towerCollection_.
double EgammaHadTower::getDepth2HcalESum | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 181 of file EgammaHadTower.cc.
References towersOf().
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::hcalESumDepth2BehindClusters(), and ~EgammaHadTower().
double EgammaHadTower::getDepth2HcalESum | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 112 of file EgammaHadTower.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), spr::find(), and towerCollection_.
bool EgammaHadTower::hasActiveHcal | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 189 of file EgammaHadTower.cc.
References towersOf().
Referenced by GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::hasActiveHcal(), and ~EgammaHadTower().
bool EgammaHadTower::hasActiveHcal | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 125 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(), and towerMap_.
void EgammaHadTower::setTowerCollection | ( | const CaloTowerCollection * | towercollection | ) |
Definition at line 185 of file EgammaHadTower.cc.
References towerCollection_.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), ElectronHcalHelper::readEvent(), and ~EgammaHadTower().
CaloTowerDetId EgammaHadTower::towerOf | ( | const reco::CaloCluster & | cluster | ) | const |
Definition at line 36 of file EgammaHadTower.cc.
References DetId::det(), DetId::Ecal, reco::CaloCluster::hitsAndFractions(), triggerObjects_cff::id, reco::CaloCluster::seed(), towerMap_, and CaloTowerConstituentsMap::towerOf().
Referenced by towersOf(), and ~EgammaHadTower().
std::vector< CaloTowerDetId > EgammaHadTower::towersOf | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 51 of file EgammaHadTower.cc.
References ClusterGreaterThan(), reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), gather_cfg::cout, spr::find(), triggerObjects_cff::id, mode_, NMaxClusters_, reco::SuperCluster::seed(), SingleTower, towerOf(), and TowersBehindCluster.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), getDepth1HcalESum(), getDepth2HcalESum(), hasActiveHcal(), ElectronHcalHelper::hcalTowersBehindClusters(), and ~EgammaHadTower().
|
private |
Definition at line 40 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and hasActiveHcal().
|
private |
Definition at line 41 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and hasActiveHcal().
|
private |
Definition at line 37 of file EgammaHadTower.h.
Referenced by towersOf().
|
private |
Definition at line 39 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and towersOf().
|
private |
Definition at line 38 of file EgammaHadTower.h.
Referenced by getDepth1HcalESum(), getDepth2HcalESum(), and setTowerCollection().
|
private |
Definition at line 36 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), hasActiveHcal(), and towerOf().