9 for(
int id = 0;
id<digi.samples();
id++) {
10 if(digi[
id].
adc() > 0) ++DigiSum;
21 bool overflow =
false;
24 for(
int isample=0; isample<digi.samples(); ++isample) {
26 if(digi[isample].
adc()>0 && !digi[isample].ok()) overflow =
true;
33 coder.adc2fC(digi, result);
36 for(
int isample=0; isample<digi.samples(); ++isample) {
42 for(
int isample=0; isample<digi.samples(); ++isample) {
57 for(
typename COLLECTION::const_iterator it = digis->begin(); it != digis->end(); ++it)
63 int startingCapId = df[0].capid();
76 for(
int id = 0;
id<digi.samples();
id++) {
77 if(digi[
id].
adc() > 0) ++DigiSum;
88 bool overflow =
false;
91 uint16_t
flag = digi.flags();
92 for(
int isample=0; isample<digi.samples(); ++isample) {
93 if((flag>>isample)&1) overflow =
true;
100 coder.adc2fC(digi, result);
103 for(
int isample=0; isample<digi.samples(); ++isample) {
109 for(
int isample=0; isample<digi.samples(); ++isample) {
124 for(
typename COLLECTION::const_iterator it = digis->begin(); it != digis->end(); ++it)
130 int startingCapId = df[0].capid();
int adc(sample_type sample)
get the ADC sample (12 bits)
edm::ESHandle< HcalDbService > theConditions
CaloSamples samplesInPE(const DIGI &digi)
void setStartingCapId(int startingCapId)
void fC2pe(CaloSamples &samples) const
bool validDigi(const DIGI &digi)
std::vector< CaloSamples > theNoiseSignals
void setPresamples(int pre)
set presample information
HcalElectronicsSim * theElectronicsSim
static double PreMixFactor
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
static double PreMixFactor
virtual void fillDigis(const COLLECTION *digis)