22 double icalconst = 1.;
26 if (icalit != icalMap.
end()) {
27 icalconst = (*icalit);
34 for (
unsigned int igain(0); igain <=
NGAINS; ++igain) {
37 LSB[igain] = Emax / (
MAXADC * gainRatios[igain]);
44 for (
int isample = 0; isample < digi.
size(); ++isample) {
45 int gainId = digi[isample].gainId();
50 }
else if (gainId > 1) {
51 result[isample] =
float(digi[isample].
adc()) * LSB[gainId - 1] * icalconst / peToA;
89 double icalconst = 1.;
93 if (icalit != icalMap.
end()) {
94 icalconst = (*icalit);
101 for (
unsigned int igain(0); igain <=
NGAINS; ++igain) {
104 LSB[igain] = Emax / (
MAXADC * gainRatios[igain]);
111 for (
int isample = 0; isample < digi.
size(); ++isample) {
112 int gainId = digi[isample].gainId();
117 }
else if (gainId > 1) {
118 result[isample] =
float(digi[isample].
adc()) * LSB[gainId - 1] * icalconst / peToA;
153 double icalconst = 1.;
157 if (icalit != icalMap.
end()) {
158 icalconst = double(*icalit);
163 for (
int isample = 0; isample < digi.
size(); ++isample) {
const self & getMap() const
const ESDetId & id() const
const_iterator end() const
const self & getMap() const
const std::vector< float > GetGainRatios(const DetId &detid)
double fullScaleEnergy(const DetId &detId) const
const EcalIntercalibConstantsMC * ical
const_iterator find(uint32_t rawId) const
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
CaloSamples samplesInPE(const DIGI &digi)
std::vector< Item >::const_iterator const_iterator
std::vector< Item >::const_iterator const_iterator
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
double peToAConversion(const DetId &detId) const
const_iterator find(uint32_t rawId) const
const_iterator end() const
const ESIntercalibConstants * esmips