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  std::unordered_map<int, l1t::HGCalTowerMap> towerMaps;
20  for (unsigned layer = 1; layer <= triggerTools_.lastLayerBH(); layer++) {
21  // FIXME: this is hardcoded...quite ugly
22  if (layer <= triggerTools_.lastLayerEE() && layer % 2 == 0)
23  continue;
25  }
26 
27  return towerMaps;
28 }
HGCalTowerMap2DImpl::HGCalTowerMap2DImpl
HGCalTowerMap2DImpl(const edm::ParameterSet &conf)
Definition: HGCalTowerMap2DImpl.cc:13
electrons_cff.bool
bool
Definition: electrons_cff.py:366
HGCalTowerMap2DImpl::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalTowerMap2DImpl.h:60
edm
HLT enums.
Definition: AlignableModifier.h:19
EDMException.h
l1t::HGCalTowerMap
Definition: HGCalTowerMap.h:15
HGCalTriggerGeometryBase.h
HGCalTriggerTools::lastLayerBH
unsigned lastLayerBH() const
Definition: HGCalTriggerTools.h:56
HGCalTowerMap2DImpl.h
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
HGCalTowerMap2DImpl::newTowerMaps
std::unordered_map< int, l1t::HGCalTowerMap > newTowerMaps()
Definition: HGCalTowerMap2DImpl.cc:18
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
std
Definition: JetResolutionObject.h:76
HGCalTriggerTowerGeometryHelper::getTowerCoordinates
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
Definition: HGCalTriggerTowerGeometryHelper.cc:83
HGCalTriggerTools::lastLayerEE
unsigned lastLayerEE() const
Definition: HGCalTriggerTools.h:54
HGCalTowerMap2DImpl::towerGeometryHelper_
HGCalTriggerTowerGeometryHelper towerGeometryHelper_
Definition: HGCalTowerMap2DImpl.h:63