#include <HGCalTriggerTowerGeometryHelper.h>
Public Member Functions | |
void | eventSetup (const edm::EventSetup &es) |
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_ |
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 25 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, Exception, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), L1TowerCalibrationProducer_cfi::iEta, createfilelist::int, maxEta_, maxPhi_, minEta_, minPhi_, nBinsEta_, nBinsPhi_, tower_coords_, ecaldqm::towerId(), triggerTools_, HGCalTriggerTools::zside(), and ecaldqm::zside().
|
inline |
Definition at line 29 of file HGCalTriggerTowerGeometryHelper.h.
|
inline |
Definition at line 31 of file HGCalTriggerTowerGeometryHelper.h.
References HGCalTriggerTools::eventSetup(), and triggerTools_.
Referenced by HGCalTowerMap2DImpl::eventSetup().
const std::vector< l1t::HGCalTowerCoord > & HGCalTriggerTowerGeometryHelper::getTowerCoordinates | ( | ) | const |
Definition at line 83 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 87 of file HGCalTriggerTowerGeometryHelper.cc.
References binsEta_, binsPhi_, cells_to_trigger_towers_, PVValHelper::eta, cuda_std::lower_bound(), maxEta_, maxPhi_, minEta_, minPhi_, nBinsEta_, nBinsPhi_, phi, l1t::HGCalTowerID::rawId(), and ecaldqm::zside().
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D().
|
private |
Definition at line 48 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 49 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 39 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 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 45 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 46 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTriggerTowerFromTriggerCell(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 38 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by getTowerCoordinates(), and HGCalTriggerTowerGeometryHelper().
|
private |
Definition at line 51 of file HGCalTriggerTowerGeometryHelper.h.
Referenced by eventSetup(), and HGCalTriggerTowerGeometryHelper().