Main Page
Namespaces
Classes
Package Documentation
CondFormats
HcalObjects
src
HcalInterpolatedPulseColl.cc
Go to the documentation of this file.
1
#include "
CondFormats/HcalObjects/interface/HcalInterpolatedPulseColl.h
"
2
#include "
CondFormats/HcalObjects/interface/HBHELinearMap.h
"
3
4
HcalInterpolatedPulseColl::HcalInterpolatedPulseColl
(
5
const
std::vector<HcalInterpolatedPulse>& pulses,
6
const
HBHEChannelGroups
& groups)
7
: pulses_(pulses),
8
groups_(groups)
9
{
10
if
(!(
pulses_
.size() ==
groups_
.
largestGroupNumber
() + 1
U
))
11
throw
cms::Exception
(
12
"Inconsistent arguments in HcalInterpolatedPulseColl constructor"
);
13
}
14
15
const
HcalInterpolatedPulse
&
HcalInterpolatedPulseColl::getChannelPulse
(
16
const
HcalDetId
&
id
)
const
17
{
18
// Figure out the group number for this channel
19
const
unsigned
lindex =
hbheChannelMap
().
linearIndex
(
20
id
.
depth
(),
id
.ieta(),
id
.iphi());
21
const
unsigned
grN =
groups_
.
getGroup
(lindex);
22
23
// Return the pulse for this group
24
return
pulses_
[grN];
25
}
InterpolatedPulse< 1500U >
HBHEChannelGroups::getGroup
unsigned getGroup(const unsigned linearChannel) const
Definition:
HBHEChannelGroups.h:42
HcalInterpolatedPulseColl::pulses_
std::vector< HcalInterpolatedPulse > pulses_
Definition:
HcalInterpolatedPulseColl.h:29
Exception
Definition:
hltDiff.cc:292
HBHELinearMap.h
mitigatedMETSequence_cff.U
U
Definition:
mitigatedMETSequence_cff.py:36
HBHEChannelGroups::largestGroupNumber
unsigned largestGroupNumber() const
Definition:
HBHEChannelGroups.h:45
HcalInterpolatedPulseColl.h
HcalInterpolatedPulseColl::getChannelPulse
const HcalInterpolatedPulse & getChannelPulse(const HcalDetId &id) const
Definition:
HcalInterpolatedPulseColl.cc:15
HcalDetId
Definition:
HcalDetId.h:13
HBHEChannelGroups
Definition:
HBHEChannelGroups.h:12
HcalInterpolatedPulseColl::HcalInterpolatedPulseColl
HcalInterpolatedPulseColl()
Definition:
HcalInterpolatedPulseColl.h:35
HcalInterpolatedPulseColl::groups_
HBHEChannelGroups groups_
Definition:
HcalInterpolatedPulseColl.h:30
hbheChannelMap
const HBHELinearMap & hbheChannelMap()
Definition:
HBHELinearMap.cc:146
HBHELinearMap::linearIndex
unsigned linearIndex(unsigned depth, int ieta, unsigned iphi) const
Definition:
HBHELinearMap.cc:41
egammaForCoreTracking_cff.depth
depth
Definition:
egammaForCoreTracking_cff.py:29
Generated for CMSSW Reference Manual by
1.8.11