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.

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  }

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

personalPlayback.level
level
Definition: personalPlayback.py:22
mps_fire.i
i
Definition: mps_fire.py:355
HcalCaloFlagLabels::ADCSaturationBit
Definition: HcalCaloFlagLabels.h:53