CMS 3D CMS Logo

Functions
HcalSaturation Namespace Reference

Functions

template<class T , class V >
void checkADCSaturation (T &rechit, const V &digi, int level)
 

Function Documentation

◆ checkADCSaturation()

template<class T , class V >
void HcalSaturation::checkADCSaturation ( T rechit,
const V &  digi,
int  level 
)

Definition at line 9 of file HcalADCSaturationFlag.cc.

References HcalCaloFlagLabels::ADCSaturationBit, mps_fire::i, and gammaJetAnalysis_CHSJECs_cff::level.

9  {
10  // Loop over digi
11  for (int i = 0; i < digi.size(); ++i) {
12  if (digi.sample(i).adc() >= level) {
13  rechit.setFlagField(1, HcalCaloFlagLabels::ADCSaturationBit);
14  break;
15  }
16  }
17  return;
18  }