#include <HGCalTriggerTowerGeometryHelper.h>
Public Member Functions | |
void | eventSetup (const edm::EventSetup &es) |
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 () |
~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(), 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 31 of file HGCalTriggerTowerGeometryHelper.h.
|
inline |
Definition at line 33 of file HGCalTriggerTowerGeometryHelper.h.
References HGCalTriggerTools::eventSetup(), and triggerTools_.
Referenced by HGCalTowerMap2DImpl::eventSetup().
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_, PVValHelper::eta, pfDeepBoostedJetPreprocessParams_cfi::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().
|
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 eventSetup(), and HGCalTriggerTowerGeometryHelper().