#include <HGCalTriggerTowerGeometryHelper.h>
Public Member Functions | |
const std::vector < l1t::HGCalTowerCoord > & | getTowerCoordinates () const |
unsigned short | getTriggerTower (const l1t::HGCalTriggerCell &) const |
unsigned short | getTriggerTower (const l1t::HGCalTriggerSums &) const |
unsigned short | getTriggerTowerFromEtaPhi (const float &eta, const float &phi) const |
HGCalTriggerTowerGeometryHelper (const edm::ParameterSet &conf) | |
const bool | isNose () |
void | setGeometry (const HGCalTriggerGeometryBase *const geom) |
~HGCalTriggerTowerGeometryHelper () | |
Private Attributes | |
std::vector< double > | binsEta_ |
std::vector< double > | binsPhi_ |
std::unordered_map< unsigned, short > | cells_to_trigger_towers_ |
bool | doNose_ |
double | maxEta_ |
double | maxPhi_ |
double | minEta_ |
double | minPhi_ |
unsigned int | nBinsEta_ |
unsigned int | nBinsPhi_ |
std::vector< l1t::HGCalTowerCoord > | tower_coords_ |
HGCalTriggerTools | triggerTools_ |
Handles the mapping between TCs and TTs. The mapping can be provided externally (via a mapping file) or can be derived on the fly based on the TC eta-phi coordinates. The bin boundaries need anyhow to be provided to establish the eta-phi coordinates of the towers (assumed as the Tower Center for the moment)
Definition at line 27 of file HGCalTriggerTowerGeometryHelper.h.
HGCalTriggerTowerGeometryHelper::HGCalTriggerTowerGeometryHelper | ( | const edm::ParameterSet & | conf | ) |
Definition at line 13 of file HGCalTriggerTowerGeometryHelper.cc.
References binsEta_, binsPhi_, cells_to_trigger_towers_, edm::errors::Configuration, doNose_, Exception, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), maxEta_, maxPhi_, minEta_, minPhi_, nBinsEta_, nBinsPhi_, l1t::HGCalTowerID::rawId(), tower_coords_, ecaldqm::towerId(), triggerTools_, HGCalTriggerTools::zside(), and ecaldqm::zside().
|
inline |
Definition at line 31 of file HGCalTriggerTowerGeometryHelper.h.
const std::vector< l1t::HGCalTowerCoord > & HGCalTriggerTowerGeometryHelper::getTowerCoordinates | ( | ) | const |
Definition at line 84 of file HGCalTriggerTowerGeometryHelper.cc.
References tower_coords_.
Referenced by HGCalTowerMap2DImpl::newTowerMaps().
unsigned short HGCalTriggerTowerGeometryHelper::getTriggerTower | ( | const l1t::HGCalTriggerCell & | thecell | ) | const |
Definition at line 123 of file HGCalTriggerTowerGeometryHelper.cc.
References cells_to_trigger_towers_, l1t::HGCalTriggerCell::detId(), PV3DBase< T, PVType, FrameType >::eta(), getTriggerTowerFromEtaPhi(), PV3DBase< T, PVType, FrameType >::phi(), and l1t::HGCalTriggerCell::position().
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D().
unsigned short HGCalTriggerTowerGeometryHelper::getTriggerTower | ( | const l1t::HGCalTriggerSums & | thesum | ) | const |
Definition at line 135 of file HGCalTriggerTowerGeometryHelper.cc.
References PV3DBase< T, PVType, FrameType >::eta(), getTriggerTowerFromEtaPhi(), PV3DBase< T, PVType, FrameType >::phi(), and l1t::HGCalTriggerSums::position().
unsigned short HGCalTriggerTowerGeometryHelper::getTriggerTowerFromEtaPhi | ( | const float & | eta, |
const float & | phi | ||
) | const |
Definition at line 88 of file HGCalTriggerTowerGeometryHelper.cc.
References binsEta_, binsPhi_, doNose_, cuda_std::lower_bound(), maxEta_, maxPhi_, minEta_, minPhi_, nBinsEta_, nBinsPhi_, phi, l1t::HGCalTowerID::rawId(), and ecaldqm::zside().
Referenced by getTriggerTower().
|
inline |
Definition at line 41 of file HGCalTriggerTowerGeometryHelper.h.
References doNose_.
Referenced by HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
Definition at line 33 of file HGCalTriggerTowerGeometryHelper.h.
References HGCalTriggerTools::setGeometry(), and triggerTools_.
Referenced by HGCalTowerMap2DImpl::setGeometry().
|
private |
Definition at line 55 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 56 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 45 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTower(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 47 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), HGCalTriggerTowerGeometryHelper(), and isNose().
|
private |
Definition at line 49 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 51 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 48 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 50 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 52 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 53 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromEtaPhi(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 44 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTowerCoordinates(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 58 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by HGCalTriggerTowerGeometryHelper(), and setGeometry().