1 #include "../interface/HcalADCSaturationFlag.h"
6 namespace HcalSaturation
11 template <
class T,
class V>
15 for (
int i=0;
i<digi.size();++
i)
17 if (digi.sample(
i).adc()>=
level)
27 using namespace HcalSaturation;
36 SaturationLevel_=
level;
44 checkADCSaturation<HBHERecHit, HBHEDataFrame>(rechit, digi, SaturationLevel_);
50 checkADCSaturation<HORecHit, HODataFrame>(rechit, digi, SaturationLevel_);
56 checkADCSaturation<HFRecHit, HFDataFrame>(rechit, digi, SaturationLevel_);
62 checkADCSaturation<ZDCRecHit, ZDCDataFrame>(rechit, digi, SaturationLevel_);
void setSaturationFlag(HBHERecHit &rechit, const HBHEDataFrame &digi)
void checkADCSaturation(T &rechit, const V &digi, int level)