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 for(
int isample=0; isample<digi.samples(); ++isample) {
92 if(digi[isample].tdc()==1){
102 coder.adc2fC(digi, result);
105 for(
int isample=0; isample<digi.samples(); ++isample) {
111 for(
int isample=0; isample<digi.samples(); ++isample) {
126 for(
typename COLLECTION::const_iterator it = digis->begin(); it != digis->end(); ++it)
132 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)