24 double icalconst = 1.;
28 if( icalit!=icalMap.
end() )
30 icalconst = (*icalit);
37 for(
unsigned int igain ( 0 ); igain <=
NGAINS ; ++igain )
40 if ( igain > 0 ) LSB[igain]= Emax/(
MAXADC*gainRatios[igain]);
47 for(
int isample = 0; isample<digi.
size(); ++isample){
49 int gainId = digi[isample].gainId();
52 result[isample] = float(digi[isample].
adc())*LSB[
gainId]*icalconst/peToA;
85 double icalconst = 1.;
89 if( icalit!=icalMap.
end() )
91 icalconst = (*icalit);
99 for(
unsigned int igain ( 0 ); igain <=
NGAINS ; ++igain )
102 if ( igain > 0 ) LSB[igain]= Emax/(
MAXADC*gainRatios[igain]);
109 for(
int isample = 0; isample<digi.
size(); ++isample){
111 int gainId = digi[isample].gainId();
114 result[isample] = float(digi[isample].
adc())*LSB[
gainId]*icalconst/peToA;
143 double icalconst = 1.;
147 if( icalit!=icalMap.
end() )
149 icalconst = double (*icalit);
154 for(
int isample = 0; isample<digi.
size(); ++isample){
int adc(sample_type sample)
get the ADC sample (12 bits)
int gainId(sample_type sample)
get the gainId (2 bits)
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
CaloSamples samplesInPE(const DIGI &digi)
std::vector< Item >::const_iterator const_iterator
std::vector< Item >::const_iterator const_iterator
double peToAConversion(const DetId &detId) const
const_iterator find(uint32_t rawId) const
const_iterator end() const
const ESIntercalibConstants * esmips