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
(
const
std::vector<HcalInterpolatedPulse>& pulses,
5
const
HBHEChannelGroups
& groups)
6
: pulses_(pulses), groups_(groups) {
7
if
(!(
pulses_
.size() ==
groups_
.
largestGroupNumber
() + 1
U
))
8
throw
cms::Exception
(
"Inconsistent arguments in HcalInterpolatedPulseColl constructor"
);
9
}
10
11
const
HcalInterpolatedPulse
&
HcalInterpolatedPulseColl::getChannelPulse
(
const
HcalDetId
&
id
)
const
{
12
// Figure out the group number for this channel
13
const
unsigned
lindex =
hbheChannelMap
().
linearIndex
(
id
.
depth
(),
id
.
ieta
(),
id
.
iphi
());
14
const
unsigned
grN =
groups_
.
getGroup
(lindex);
15
16
// Return the pulse for this group
17
return
pulses_
[grN];
18
}
HBHEChannelGroups
Definition:
HBHEChannelGroups.h:12
HcalInterpolatedPulseColl::getChannelPulse
const HcalInterpolatedPulse & getChannelPulse(const HcalDetId &id) const
Definition:
HcalInterpolatedPulseColl.cc:11
HcalInterpolatedPulseColl::groups_
HBHEChannelGroups groups_
Definition:
HcalInterpolatedPulseColl.h:24
LEDCalibrationChannels.iphi
iphi
Definition:
LEDCalibrationChannels.py:64
HBHELinearMap.h
LEDCalibrationChannels.depth
depth
Definition:
LEDCalibrationChannels.py:65
mitigatedMETSequence_cff.U
U
Definition:
mitigatedMETSequence_cff.py:36
LEDCalibrationChannels.ieta
ieta
Definition:
LEDCalibrationChannels.py:63
HBHELinearMap::linearIndex
unsigned linearIndex(unsigned depth, int ieta, unsigned iphi) const
Definition:
HBHELinearMap.cc:35
HcalDetId
Definition:
HcalDetId.h:12
HBHEChannelGroups::getGroup
unsigned getGroup(const unsigned linearChannel) const
Definition:
HBHEChannelGroups.h:37
hbheChannelMap
const HBHELinearMap & hbheChannelMap()
Definition:
HBHELinearMap.cc:139
InterpolatedPulse< 1500U >
Exception
Definition:
hltDiff.cc:245
HcalInterpolatedPulseColl::HcalInterpolatedPulseColl
HcalInterpolatedPulseColl()
Definition:
HcalInterpolatedPulseColl.h:29
HBHEChannelGroups::largestGroupNumber
unsigned largestGroupNumber() const
Definition:
HBHEChannelGroups.h:39
HcalInterpolatedPulseColl::pulses_
std::vector< HcalInterpolatedPulse > pulses_
Definition:
HcalInterpolatedPulseColl.h:23
HcalInterpolatedPulseColl.h
Generated for CMSSW Reference Manual by
1.8.16