L1Trigger
L1THGCal
src
backend
HGCalTowerMap2DImpl.cc
Go to the documentation of this file.
1
8
#include "
FWCore/Utilities/interface/EDMException.h
"
9
10
#include "
L1Trigger/L1THGCal/interface/backend/HGCalTowerMap2DImpl.h
"
11
#include "
L1Trigger/L1THGCal/interface/HGCalTriggerGeometryBase.h
"
12
13
HGCalTowerMap2DImpl::HGCalTowerMap2DImpl
(
const
edm::ParameterSet
& conf)
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
;
24
towerMaps[
layer
] =
l1t::HGCalTowerMap
(
towerGeometryHelper_
.
getTowerCoordinates
(),
layer
);
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
Generated for CMSSW Reference Manual by
1.8.16