#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 |
void | setTowerCollection (const CaloTowerCollection *towercollection) |
CaloTowerDetId | towerOf (const reco::CaloCluster &cluster) const |
std::vector< CaloTowerDetId > | towersOf (const reco::SuperCluster &sc) const |
~EgammaHadTower () | |
Private Attributes | |
HoeMode | mode_ |
unsigned int | NMaxClusters_ |
const CaloTowerCollection * | towerCollection_ |
const CaloTowerConstituentsMap * | towerMap_ |
Definition at line 15 of file EgammaHadTower.h.
Enumerator | |
---|---|
SingleTower | |
TowersBehindCluster |
Definition at line 18 of file EgammaHadTower.h.
EgammaHadTower::EgammaHadTower | ( | const edm::EventSetup & | es, |
HoeMode | mode = SingleTower |
||
) |
Definition at line 10 of file EgammaHadTower.cc.
References edm::EventSetup::get(), NMaxClusters_, and towerMap_.
|
inline |
Definition at line 21 of file EgammaHadTower.h.
double EgammaHadTower::getDepth1HcalESum | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 103 of file EgammaHadTower.cc.
References towersOf().
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), and ElectronHcalHelper::hcalESumDepth1BehindClusters().
double EgammaHadTower::getDepth1HcalESum | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 77 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 107 of file EgammaHadTower.cc.
References towersOf().
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), and ElectronHcalHelper::hcalESumDepth2BehindClusters().
double EgammaHadTower::getDepth2HcalESum | ( | const std::vector< CaloTowerDetId > & | towers | ) | const |
Definition at line 90 of file EgammaHadTower.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), spr::find(), and towerCollection_.
void EgammaHadTower::setTowerCollection | ( | const CaloTowerCollection * | towercollection | ) |
Definition at line 111 of file EgammaHadTower.cc.
References HLT_25ns14e33_v1_cff::towerCollection, and towerCollection_.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), and ElectronHcalHelper::readEvent().
CaloTowerDetId EgammaHadTower::towerOf | ( | const reco::CaloCluster & | cluster | ) | const |
Definition at line 17 of file EgammaHadTower.cc.
References DetId::det(), cond::rpcobgas::detid, DetId::Ecal, reco::CaloCluster::hitsAndFractions(), reco::CaloCluster::seed(), towerMap_, and CaloTowerConstituentsMap::towerOf().
Referenced by towersOf().
std::vector< CaloTowerDetId > EgammaHadTower::towersOf | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 32 of file EgammaHadTower.cc.
References ClusterGreaterThan(), reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), spr::find(), mode_, NMaxClusters_, reco::SuperCluster::seed(), SingleTower, python.multivaluedict::sort(), towerOf(), HLT_25ns14e33_v1_cff::towers, and TowersBehindCluster.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), getDepth1HcalESum(), getDepth2HcalESum(), and ElectronHcalHelper::hcalTowersBehindClusters().
|
private |
Definition at line 32 of file EgammaHadTower.h.
Referenced by towersOf().
|
private |
Definition at line 34 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and towersOf().
|
private |
Definition at line 33 of file EgammaHadTower.h.
Referenced by getDepth1HcalESum(), getDepth2HcalESum(), and setTowerCollection().
|
private |
Definition at line 31 of file EgammaHadTower.h.
Referenced by EgammaHadTower(), and towerOf().