CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
HcalSaturation Namespace Reference

Functions

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

Function Documentation

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 testEve_cfg::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  }
tuple level
Definition: testEve_cfg.py:47