#include <SimCalorimetry/HcalZeroSuppressionAlgos/interface/HcalZSAlgoRealistic.h>
Public Member Functions | |
HcalZSAlgoRealistic (ZSMode mode, int levelHB, int levelHE, int levelHO, int levelHF) | |
Protected Member Functions | |
virtual bool | shouldKeep (const HFDataFrame &digi) const |
virtual bool | shouldKeep (const HODataFrame &digi) const |
virtual bool | shouldKeep (const HBHEDataFrame &digi) const |
Private Attributes | |
int | thresholdHB_ |
int | thresholdHE_ |
int | thresholdHF_ |
int | thresholdHO_ |
For each digi, add up consecutive 2 samples in a slice of 10 time samples, beginning with (start) sample. If any of the sums are greater then the threshold, keep the event.
Definition at line 16 of file HcalZSAlgoRealistic.h.
HcalZSAlgoRealistic::HcalZSAlgoRealistic | ( | HcalZeroSuppressionAlgo::ZSMode | mode, | |
int | levelHB, | |||
int | levelHE, | |||
int | levelHO, | |||
int | levelHF | |||
) |
Definition at line 4 of file HcalZSAlgoRealistic.cc.
00004 : 00005 HcalZeroSuppressionAlgo(mode), 00006 thresholdHB_(levelHB), 00007 thresholdHE_(levelHE), 00008 thresholdHO_(levelHO), 00009 thresholdHF_(levelHF) 00010 { 00011 }
bool HcalZSAlgoRealistic::shouldKeep | ( | const HFDataFrame & | digi | ) | const [protected, virtual] |
Implements HcalZeroSuppressionAlgo.
Definition at line 42 of file HcalZSAlgoRealistic.cc.
References thresholdHF_.
00042 { 00043 return ZSRealistic_impl::keepMe<HFDataFrame>(digi,thresholdHF_); 00044 }
bool HcalZSAlgoRealistic::shouldKeep | ( | const HODataFrame & | digi | ) | const [protected, virtual] |
Implements HcalZeroSuppressionAlgo.
Definition at line 39 of file HcalZSAlgoRealistic.cc.
References thresholdHO_.
00039 { 00040 return ZSRealistic_impl::keepMe<HODataFrame>(digi,thresholdHO_); 00041 }
bool HcalZSAlgoRealistic::shouldKeep | ( | const HBHEDataFrame & | digi | ) | const [protected, virtual] |
Implements HcalZeroSuppressionAlgo.
Definition at line 34 of file HcalZSAlgoRealistic.cc.
References HcalBarrel, HBHEDataFrame::id(), HcalDetId::subdet(), thresholdHB_, and thresholdHE_.
00034 { 00035 if (digi.id().subdet()==HcalBarrel) return ZSRealistic_impl::keepMe<HBHEDataFrame>(digi,thresholdHB_); 00036 else return ZSRealistic_impl::keepMe<HBHEDataFrame>(digi,thresholdHE_); 00037 }
int HcalZSAlgoRealistic::thresholdHB_ [private] |
int HcalZSAlgoRealistic::thresholdHE_ [private] |
int HcalZSAlgoRealistic::thresholdHF_ [private] |
int HcalZSAlgoRealistic::thresholdHO_ [private] |