CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
HcalZSAlgoRealistic Class Reference

#include <HcalZSAlgoRealistic.h>

Inheritance diagram for HcalZSAlgoRealistic:
HcalZeroSuppressionAlgo

Public Member Functions

 HcalZSAlgoRealistic (bool markAndPass, std::pair< int, int > HBsearchTS, std::pair< int, int > HEsearchTS, std::pair< int, int > HOsearchTS, std::pair< int, int > HFsearchTS)
 
 HcalZSAlgoRealistic (bool markAndPass, int levelHB, int levelHE, int levelHO, int levelHF, std::pair< int, int > HBsearchTS, std::pair< int, int > HEsearchTS, std::pair< int, int > HOsearchTS, std::pair< int, int > HFsearchTS)
 
- Public Member Functions inherited from HcalZeroSuppressionAlgo
void clearDbService ()
 
void setDbService (const HcalDbService *db)
 
void suppress (const HBHEDigiCollection &input, HBHEDigiCollection &output)
 
void suppress (const HODigiCollection &input, HODigiCollection &output)
 
void suppress (const HFDigiCollection &input, HFDigiCollection &output)
 
void suppress (const HcalUpgradeDigiCollection &input, HcalUpgradeDigiCollection &output)
 
void suppress (const QIE10DigiCollection &input, QIE10DigiCollection &output)
 

Protected Member Functions

virtual bool shouldKeep (const HBHEDataFrame &digi) const
 
virtual bool shouldKeep (const HODataFrame &digi) const
 
virtual bool shouldKeep (const HFDataFrame &digi) const
 
virtual bool shouldKeep (const QIE10DataFrame &digi) const
 
virtual bool shouldKeep (const HcalUpgradeDataFrame &digi) const
 
- Protected Member Functions inherited from HcalZeroSuppressionAlgo
 HcalZeroSuppressionAlgo (bool markAndPass)
 

Private Member Functions

bool keepMe (const HBHEDataFrame &inp, int start, int finish, int threshold, uint32_t hbhezsmask) const
 
bool keepMe (const HODataFrame &inp, int start, int finish, int threshold, uint32_t hozsmask) const
 
bool keepMe (const HFDataFrame &inp, int start, int finish, int threshold, uint32_t hfzsmask) const
 
bool keepMe (const QIE10DataFrame &inp, int start, int finish, int threshold) const
 
bool keepMe (const HcalUpgradeDataFrame &inp, int start, int finish, int threshold, uint32_t zsmask) const
 

Private Attributes

std::pair< int, int > HBsearchTS_
 
std::pair< int, int > HEsearchTS_
 
std::pair< int, int > HFsearchTS_
 
std::pair< int, int > HOsearchTS_
 
int thresholdHB_
 
int thresholdHE_
 
int thresholdHF_
 
int thresholdHO_
 
bool usingDBvalues
 

Additional Inherited Members

- Protected Attributes inherited from HcalZeroSuppressionAlgo
const HcalDbServicem_dbService
 

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.

Author
S. Sengupta - Minnesota

Definition at line 14 of file HcalZSAlgoRealistic.h.

Constructor & Destructor Documentation

HcalZSAlgoRealistic::HcalZSAlgoRealistic ( bool  markAndPass,
std::pair< int, int >  HBsearchTS,
std::pair< int, int >  HEsearchTS,
std::pair< int, int >  HOsearchTS,
std::pair< int, int >  HFsearchTS 
)

Definition at line 19 of file HcalZSAlgoRealistic.cc.

HcalZSAlgoRealistic::HcalZSAlgoRealistic ( bool  markAndPass,
int  levelHB,
int  levelHE,
int  levelHO,
int  levelHF,
std::pair< int, int >  HBsearchTS,
std::pair< int, int >  HEsearchTS,
std::pair< int, int >  HOsearchTS,
std::pair< int, int >  HFsearchTS 
)

Definition at line 5 of file HcalZSAlgoRealistic.cc.

Member Function Documentation

bool HcalZSAlgoRealistic::keepMe ( const HBHEDataFrame inp,
int  start,
int  finish,
int  threshold,
uint32_t  hbhezsmask 
) const
private

Definition at line 38 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::keepMe ( const HODataFrame inp,
int  start,
int  finish,
int  threshold,
uint32_t  hozsmask 
) const
private

Definition at line 61 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::keepMe ( const HFDataFrame inp,
int  start,
int  finish,
int  threshold,
uint32_t  hfzsmask 
) const
private

Definition at line 84 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::keepMe ( const QIE10DataFrame inp,
int  start,
int  finish,
int  threshold 
) const
private

Definition at line 106 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::keepMe ( const HcalUpgradeDataFrame inp,
int  start,
int  finish,
int  threshold,
uint32_t  zsmask 
) const
private

Definition at line 127 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::shouldKeep ( const HBHEDataFrame digi) const
protectedvirtual

Implements HcalZeroSuppressionAlgo.

Definition at line 147 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::shouldKeep ( const HODataFrame digi) const
protectedvirtual

Implements HcalZeroSuppressionAlgo.

Definition at line 167 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::shouldKeep ( const HFDataFrame digi) const
protectedvirtual

Implements HcalZeroSuppressionAlgo.

Definition at line 174 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::shouldKeep ( const QIE10DataFrame digi) const
protectedvirtual

Implements HcalZeroSuppressionAlgo.

Definition at line 181 of file HcalZSAlgoRealistic.cc.

bool HcalZSAlgoRealistic::shouldKeep ( const HcalUpgradeDataFrame digi) const
protectedvirtual

Implements HcalZeroSuppressionAlgo.

Definition at line 188 of file HcalZSAlgoRealistic.cc.

Member Data Documentation

std::pair<int,int> HcalZSAlgoRealistic::HBsearchTS_
private

Definition at line 28 of file HcalZSAlgoRealistic.h.

std::pair<int,int> HcalZSAlgoRealistic::HEsearchTS_
private

Definition at line 28 of file HcalZSAlgoRealistic.h.

std::pair<int,int> HcalZSAlgoRealistic::HFsearchTS_
private

Definition at line 28 of file HcalZSAlgoRealistic.h.

std::pair<int,int> HcalZSAlgoRealistic::HOsearchTS_
private

Definition at line 28 of file HcalZSAlgoRealistic.h.

int HcalZSAlgoRealistic::thresholdHB_
private

Definition at line 27 of file HcalZSAlgoRealistic.h.

int HcalZSAlgoRealistic::thresholdHE_
private

Definition at line 27 of file HcalZSAlgoRealistic.h.

int HcalZSAlgoRealistic::thresholdHF_
private

Definition at line 27 of file HcalZSAlgoRealistic.h.

int HcalZSAlgoRealistic::thresholdHO_
private

Definition at line 27 of file HcalZSAlgoRealistic.h.

bool HcalZSAlgoRealistic::usingDBvalues
private

Definition at line 26 of file HcalZSAlgoRealistic.h.