CMS 3D CMS Logo

Functions

HcalSaturation Namespace Reference

Functions

template<class T , class V >
data refman pasoursint
CMSSW_4_4_5_patch3 src
RecoLocalCalo HcalRecAlgos src
HcalADCSaturationFlag cc void 
checkADCSaturation (T &rechit, const V &digi, int level)

Function Documentation

template<class T , class V >
data refman pasoursint CMSSW_4_4_5_patch3 src RecoLocalCalo HcalRecAlgos src HcalADCSaturationFlag cc void HcalSaturation::checkADCSaturation ( T rechit,
const V &  digi,
int  level 
)

Definition at line 13 of file HcalADCSaturationFlag.cc.

References HcalCaloFlagLabels::ADCSaturationBit, i, and testEve_cfg::level.

  {
    // Loop over digi
    for (int i=0;i<digi.size();++i)
      {
        if (digi.sample(i).adc()>=level)
          {
            rechit.setFlagField(1,HcalCaloFlagLabels::ADCSaturationBit);
            break;
          }
      }
    return;
  }
}