CMS 3D CMS Logo

HGCalTowerMap2DImpl.cc
Go to the documentation of this file.
1 
9 
12 
14  : useLayerWeights_(conf.getParameter<bool>("useLayerWeights")),
15  layerWeights_(conf.getParameter<std::vector<double>>("layerWeights")),
16  towerGeometryHelper_(conf.getParameter<edm::ParameterSet>("L1TTriggerTowerConfig")) {}
17 
18 std::unordered_map<int, l1t::HGCalTowerMap> HGCalTowerMap2DImpl::newTowerMaps() {
19  bool isNose = towerGeometryHelper_.isNose();
20 
21  std::unordered_map<int, l1t::HGCalTowerMap> towerMaps;
22  for (unsigned layer = 1; layer <= triggerTools_.lastLayer(isNose); layer++) {
23  // FIXME: this is hardcoded...quite ugly
24  if (!isNose && layer <= triggerTools_.lastLayerEE(isNose) && layer % 2 == 0)
25  continue;
26 
28  }
29 
30  return towerMaps;
31 }
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
HGCalTriggerTools triggerTools_
std::unordered_map< int, l1t::HGCalTowerMap > newTowerMaps()
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
unsigned lastLayer(bool nose=false) const
HGCalTriggerTowerGeometryHelper towerGeometryHelper_
unsigned lastLayerEE(bool nose=false) const
HLT enums.
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)