#include <HGCalTriggerTowerGeometryHelper.h>
Public Member Functions | |
const std::vector< l1t::HGCalTowerCoord > & | getTowerCoordinates () const |
unsigned short | getTriggerTowerFromTriggerCell (const unsigned tcId, const float &eta, const float &phi) const |
HGCalTriggerTowerGeometryHelper (const edm::ParameterSet &conf) | |
~HGCalTriggerTowerGeometryHelper () | |
Private Attributes | |
std::vector< double > | binsEta_ |
std::vector< double > | binsPhi_ |
std::unordered_map< unsigned, short > | cells_to_trigger_towers_ |
double | maxEta_ |
double | maxPhi_ |
double | minEta_ |
double | minPhi_ |
unsigned int | nBinsEta_ |
unsigned int | nBinsPhi_ |
std::vector< l1t::HGCalTowerCoord > | tower_coords_ |
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 25 of file HGCalTriggerTowerGeometryHelper.h.
HGCalTriggerTowerGeometryHelper::HGCalTriggerTowerGeometryHelper | ( | const edm::ParameterSet & | conf | ) |
Definition at line 14 of file HGCalTriggerTowerGeometryHelper.cc.
References binsEta_, binsPhi_, cells_to_trigger_towers_, edm::errors::Configuration, Exception, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), createfilelist::int, maxEta_, maxPhi_, minEta_, minPhi_, nBinsEta_, nBinsPhi_, l1t::HGCalTowerID::rawId(), tower_coords_, DataFormats::L1THGCal::towerId, and ecaldqm::zside().
|
inline |
const std::vector< l1t::HGCalTowerCoord > & HGCalTriggerTowerGeometryHelper::getTowerCoordinates | ( | ) | const |
Definition at line 89 of file HGCalTriggerTowerGeometryHelper.cc.
References tower_coords_.
Referenced by HGCalTowerMap2DImpl::newTowerMaps().
unsigned short HGCalTriggerTowerGeometryHelper::getTriggerTowerFromTriggerCell | ( | const unsigned | tcId, |
const float & | eta, | ||
const float & | phi | ||
) | const |
Definition at line 94 of file HGCalTriggerTowerGeometryHelper.cc.
References binsEta_, binsPhi_, cells_to_trigger_towers_, maxEta_, maxPhi_, minEta_, minPhi_, nBinsEta_, nBinsPhi_, phi, l1t::HGCalTowerID::rawId(), and ecaldqm::zside().
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D().
|
private |
Definition at line 47 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 48 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 38 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 41 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 43 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 40 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 42 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 44 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 45 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 37 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTowerCoordinates(), and HGCalTriggerTowerGeometryHelper().