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();
56 result[isample] =
float(digi[isample].
adc())*LSB[gainId-1]*icalconst/peToA;
94 double icalconst = 1.;
98 if( icalit!=icalMap.
end() )
100 icalconst = (*icalit);
108 for(
unsigned int igain ( 0 ); igain <=
NGAINS ; ++igain )
111 if ( igain > 0 ) LSB[igain]= Emax/(
MAXADC*gainRatios[igain]);
118 for(
int isample = 0; isample<digi.
size(); ++isample){
120 int gainId = digi[isample].gainId();
126 else if(gainId > 1) {
127 result[isample] =
float(digi[isample].
adc())*LSB[gainId-1]*icalconst/peToA;
161 double icalconst = 1.;
165 if( icalit!=icalMap.
end() )
167 icalconst = double (*icalit);
172 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