CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

HcalZeroSuppressionAlgo Class Reference

#include <HcalZeroSuppressionAlgo.h>

Inheritance diagram for HcalZeroSuppressionAlgo:
HcalZSAlgoEnergy HcalZSAlgoRealistic

List of all members.

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 HcalDbServicem_dbService

Private Attributes

bool m_markAndPass

Detailed Description

Definition at line 17 of file HcalZeroSuppressionAlgo.h.


Constructor & Destructor Documentation

HcalZeroSuppressionAlgo::HcalZeroSuppressionAlgo ( bool  markAndPass) [protected]

Definition at line 3 of file HcalZeroSuppressionAlgo.cc.

References m_dbService.

                                                        : m_markAndPass(mp) {
   m_dbService=0;
}

Member Function Documentation

void HcalZeroSuppressionAlgo::clearDbService ( ) [inline]

Definition at line 26 of file HcalZeroSuppressionAlgo.h.

References m_dbService.

{ m_dbService=0; }
void HcalZeroSuppressionAlgo::setDbService ( const HcalDbService db) [inline]

Definition at line 25 of file HcalZeroSuppressionAlgo.h.

References EcalCondDB::db, and m_dbService.

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 
)

Member Data Documentation

Definition at line 34 of file HcalZeroSuppressionAlgo.h.

Referenced by suppress().