CMS 3D CMS Logo

HcalZSAlgoRealistic Class Reference

Simple amplitude-based zero suppression algorithm. More...

#include <SimCalorimetry/HcalZeroSuppressionAlgos/interface/HcalZSAlgoRealistic.h>

Inheritance diagram for HcalZSAlgoRealistic:

HcalZeroSuppressionAlgo

List of all members.

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_


Detailed Description

Simple amplitude-based zero suppression algorithm.

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.

Date
2008/11/20 04:21:20
Revision
1.2
Author:
S. Sengupta - Minnesota

Definition at line 16 of file HcalZSAlgoRealistic.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }


Member Data Documentation

int HcalZSAlgoRealistic::thresholdHB_ [private]

Definition at line 25 of file HcalZSAlgoRealistic.h.

Referenced by shouldKeep().

int HcalZSAlgoRealistic::thresholdHE_ [private]

Definition at line 25 of file HcalZSAlgoRealistic.h.

Referenced by shouldKeep().

int HcalZSAlgoRealistic::thresholdHF_ [private]

Definition at line 25 of file HcalZSAlgoRealistic.h.

Referenced by shouldKeep().

int HcalZSAlgoRealistic::thresholdHO_ [private]

Definition at line 25 of file HcalZSAlgoRealistic.h.

Referenced by shouldKeep().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:24:07 2009 for CMSSW by  doxygen 1.5.4