9 for (
int id = 0;
id < digi.samples();
id++) {
10 if (digi[
id].
adc() > 0)
23 bool overflow =
false;
26 for (
int isample = 0; isample < digi.samples(); ++isample) {
28 if (digi[isample].
adc() > 0 && !digi[isample].ok())
36 coder.adc2fC(digi, result);
39 for (
int isample = 0; isample < digi.samples(); ++isample) {
40 if (digi[isample].
ok())
45 for (
int isample = 0; isample < digi.samples(); ++isample) {
47 if (digi[isample].soi())
62 for (
typename COLLECTION::const_iterator it = digis->begin(); it != digis->end(); ++it) {
66 int startingCapId =
df[0].capid();
79 for (
int id = 0;
id < digi.samples();
id++) {
80 if (digi[
id].
adc() > 0)
93 bool overflow =
false;
96 for (
int isample = 0; isample < digi.samples(); ++isample) {
97 if (digi[isample].tdc() == 1) {
107 coder.adc2fC(digi, result);
110 for (
int isample = 0; isample < digi.samples(); ++isample) {
111 if (digi[isample].tdc() == 0)
116 for (
int isample = 0; isample < digi.samples(); ++isample) {
118 if (digi[isample].soi())
133 for (
typename COLLECTION::const_iterator it = digis->begin(); it != digis->end(); ++it) {
137 int startingCapId =
df[0].capid();
CaloSamples samplesInPE(const DIGI &digi)
void setStartingCapId(int startingCapId)
void fC2pe(CaloSamples &samples) const
bool validDigi(const DIGI &digi)
static constexpr double PreMixFactor
std::vector< CaloSamples > theNoiseSignals
void setPresamples(int pre)
set presample information
HcalElectronicsSim * theElectronicsSim
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
virtual void fillDigis(const COLLECTION *digis)
static constexpr double PreMixFactor
uint16_t *__restrict__ uint16_t const *__restrict__ adc
const HcalDbService * theConditions