CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
HGCalTriggerTools triggerTools_
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
std::unordered_map< int, l1t::HGCalTowerMap > newTowerMaps()
constexpr std::array< uint8_t, layerIndexSize > layer
unsigned lastLayer(bool nose=false) const
unsigned lastLayerEE(bool nose=false) const
HGCalTriggerTowerGeometryHelper towerGeometryHelper_
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)