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
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
27
towerMaps[
layer
] =
l1t::HGCalTowerMap
(
towerGeometryHelper_
.
getTowerCoordinates
(),
layer
);
28
}
29
30
return
towerMaps;
31
}
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
HGCalTowerMap2DImpl.h
HGCalTriggerTools::lastLayer
unsigned lastLayer(bool nose=false) const
Definition:
HGCalTriggerTools.h:58
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
HGCalTriggerTowerGeometryHelper::isNose
const bool isNose()
Definition:
HGCalTriggerTowerGeometryHelper.h:41
std
Definition:
JetResolutionObject.h:76
HGCalTriggerTowerGeometryHelper::getTowerCoordinates
const std::vector< l1t::HGCalTowerCoord > & getTowerCoordinates() const
Definition:
HGCalTriggerTowerGeometryHelper.cc:84
HGCalTriggerTools::lastLayerEE
unsigned lastLayerEE(bool nose=false) const
Definition:
HGCalTriggerTools.h:54
HGCalTowerMap2DImpl::towerGeometryHelper_
HGCalTriggerTowerGeometryHelper towerGeometryHelper_
Definition:
HGCalTowerMap2DImpl.h:63
Generated for CMSSW Reference Manual by
1.8.16