#include <HcalZeroSuppressionAlgo.h>
Public Member Functions | |
void | clearDbService () |
void | setDbService (const HcalDbService *db) |
virtual bool | shouldKeep (const HFDataFrame &digi) const =0 |
virtual bool | shouldKeep (const HODataFrame &digi) const =0 |
virtual bool | shouldKeep (const HBHEDataFrame &digi) const =0 |
void | suppress (const HODigiCollection &input, HODigiCollection &output) |
void | suppress (const HBHEDigiCollection &input, HBHEDigiCollection &output) |
void | suppress (const HFDigiCollection &input, HFDigiCollection &output) |
Protected Member Functions | |
HcalZeroSuppressionAlgo (bool markAndPass) | |
Protected Attributes | |
const HcalDbService * | m_dbService |
Private Attributes | |
bool | m_markAndPass |
Definition at line 17 of file HcalZeroSuppressionAlgo.h.
HcalZeroSuppressionAlgo::HcalZeroSuppressionAlgo | ( | bool | markAndPass | ) | [protected] |
Definition at line 3 of file HcalZeroSuppressionAlgo.cc.
References m_dbService.
: m_markAndPass(mp) { m_dbService=0; }
void HcalZeroSuppressionAlgo::clearDbService | ( | ) | [inline] |
void HcalZeroSuppressionAlgo::setDbService | ( | const HcalDbService * | db | ) | [inline] |
Definition at line 25 of file HcalZeroSuppressionAlgo.h.
References EcalCondDB::db, and m_dbService.
{ m_dbService=db; }
virtual bool HcalZeroSuppressionAlgo::shouldKeep | ( | const HFDataFrame & | digi | ) | const [pure virtual] |
Implemented in HcalZSAlgoEnergy, and HcalZSAlgoRealistic.
virtual bool HcalZeroSuppressionAlgo::shouldKeep | ( | const HODataFrame & | digi | ) | const [pure virtual] |
Implemented in HcalZSAlgoEnergy, and HcalZSAlgoRealistic.
virtual bool HcalZeroSuppressionAlgo::shouldKeep | ( | const HBHEDataFrame & | digi | ) | const [pure virtual] |
Implemented in HcalZSAlgoEnergy, and HcalZSAlgoRealistic.
Referenced by suppress().
void HcalZeroSuppressionAlgo::suppress | ( | const HODigiCollection & | input, |
HODigiCollection & | output | ||
) |
void HcalZeroSuppressionAlgo::suppress | ( | const HBHEDigiCollection & | input, |
HBHEDigiCollection & | output | ||
) |
Definition at line 8 of file HcalZeroSuppressionAlgo.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), i, m_markAndPass, edm::SortedCollection< T, SORT >::push_back(), HBHEDataFrame::setZSInfo(), and shouldKeep().
{ HBHEDigiCollection::const_iterator i; for (i=input.begin(); i!=input.end(); ++i) if (shouldKeep((*i))) { if (!m_markAndPass) output.push_back(*i); else { HBHEDataFrame df(*i); df.setZSInfo(true,false); output.push_back(df); } } else if (m_markAndPass) { HBHEDataFrame df(*i); df.setZSInfo(true,true); output.push_back(df); } }
void HcalZeroSuppressionAlgo::suppress | ( | const HFDigiCollection & | input, |
HFDigiCollection & | output | ||
) |
const HcalDbService* HcalZeroSuppressionAlgo::m_dbService [protected] |
Definition at line 31 of file HcalZeroSuppressionAlgo.h.
Referenced by clearDbService(), HcalZeroSuppressionAlgo(), HcalZSAlgoRealistic::keepMe(), and setDbService().
bool HcalZeroSuppressionAlgo::m_markAndPass [private] |
Definition at line 34 of file HcalZeroSuppressionAlgo.h.
Referenced by suppress().