1 #ifndef __L1Trigger_L1THGCal_HGCalTriggerTowerGeometryHelper_h__ 2 #define __L1Trigger_L1THGCal_HGCalTriggerTowerGeometryHelper_h__ 21 #include <unordered_map> 25 struct HGCalTowerCoord;
38 void unpackTowerIDandShare(
unsigned towerIDandShare,
int& towerEta_raw,
int& towerPhi_raw,
int& towerShare)
const;
void setGeometry(const HGCalTriggerGeometryBase *const geom)
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
static const int towerShareMask
static const int towerShareShift
std::unordered_map< unsigned, std::vector< unsigned > > modules_to_trigger_towers_
HGCalTriggerTools triggerTools_
std::vector< double > binsPhi_
std::vector< l1t::HGCalTowerCoord > tower_coords_
static const int sign2Shift
std::vector< double > binsEta_
unsigned packTowerIDandShare(int towerEta, int towerPhi, int towerShare) const
std::unordered_map< unsigned short, float > getTriggerTower(const l1t::HGCalTriggerCell &) const
~HGCalTriggerTowerGeometryHelper()
static const int signMask
void reverseXaxis(int &towerPhi) const
int moveToCorrectSector(int towerPhi_raw, int sector) const
std::unordered_map< unsigned, short > cells_to_trigger_towers_
HGCalTriggerTowerGeometryHelper(const edm::ParameterSet &conf)
unsigned packLayerSubdetWaferId(int subdet, int layer, int moduleU, int moduleV) const
void unpackTowerIDandShare(unsigned towerIDandShare, int &towerEta_raw, int &towerPhi_raw, int &towerShare) const
static const int sign1Shift
unsigned short getTriggerTowerFromEtaPhi(const float &eta, const float &phi) const