#include <HcalZSAlgoRealistic.h>
Public Member Functions | |
HcalZSAlgoRealistic (bool markAndPass, bool use1ts, std::pair< int, int > HBsearchTS, std::pair< int, int > HEsearchTS, std::pair< int, int > HOsearchTS, std::pair< int, int > HFsearchTS) | |
HcalZSAlgoRealistic (bool markAndPass, bool use1ts, 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) | |
~HcalZSAlgoRealistic () override=default | |
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 QIE10DigiCollection &input, QIE10DigiCollection &output) |
void | suppress (const QIE11DigiCollection &input, QIE11DigiCollection &output) |
virtual | ~HcalZeroSuppressionAlgo ()=default |
Protected Member Functions | |
bool | shouldKeep (const HBHEDataFrame &digi) const override |
bool | shouldKeep (const HODataFrame &digi) const override |
bool | shouldKeep (const HFDataFrame &digi) const override |
bool | shouldKeep (const QIE10DataFrame &digi) const override |
bool | shouldKeep (const QIE11DataFrame &digi) const override |
Protected Member Functions inherited from HcalZeroSuppressionAlgo | |
HcalZeroSuppressionAlgo (bool markAndPass) | |
Private Member Functions | |
template<class Digi > | |
bool | keepMe (const Digi &inp, int start, int finish, int threshold, uint32_t zsmask) const |
template<> | |
bool | keepMe (const QIE10DataFrame &inp, int start, int finish, int threshold, uint32_t zsmask) const |
template<> | |
bool | keepMe (const QIE11DataFrame &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 | use1ts_ |
bool | usingDBvalues |
Additional Inherited Members | |
Protected Attributes inherited from HcalZeroSuppressionAlgo | |
const HcalDbService * | m_dbService |
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.
For Run3 and Run4 HB and HE only 1TS is used
Definition at line 17 of file HcalZSAlgoRealistic.h.
HcalZSAlgoRealistic::HcalZSAlgoRealistic | ( | bool | markAndPass, |
bool | use1ts, | ||
std::pair< int, int > | HBsearchTS, | ||
std::pair< int, int > | HEsearchTS, | ||
std::pair< int, int > | HOsearchTS, | ||
std::pair< int, int > | HFsearchTS | ||
) |
Definition at line 27 of file HcalZSAlgoRealistic.cc.
References thresholdHB_, thresholdHE_, thresholdHF_, thresholdHO_, and usingDBvalues.
HcalZSAlgoRealistic::HcalZSAlgoRealistic | ( | bool | markAndPass, |
bool | use1ts, | ||
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 4 of file HcalZSAlgoRealistic.cc.
References usingDBvalues.
|
overridedefault |
|
private |
Definition at line 47 of file HcalZSAlgoRealistic.cc.
References gpuClustering::adc, HcalDbService::getHcalZSThreshold(), mps_fire::i, HcalZeroSuppressionAlgo::m_dbService, DiMuonV_cfg::threshold, and usingDBvalues.
Referenced by shouldKeep().
|
private |
Definition at line 65 of file HcalZSAlgoRealistic.cc.
References gpuClustering::adc, mps_fire::i, and DiMuonV_cfg::threshold.
|
private |
Definition at line 80 of file HcalZSAlgoRealistic.cc.
References mps_fire::i, and DiMuonV_cfg::threshold.
|
overrideprotectedvirtual |
Implements HcalZeroSuppressionAlgo.
Definition at line 97 of file HcalZSAlgoRealistic.cc.
References HBsearchTS_, HcalBarrel, HEsearchTS_, HBHEDataFrame::id(), keepMe(), SiStripPI::max, SiStripPI::min, HBHEDataFrame::size(), HcalDetId::subdet(), thresholdHB_, thresholdHE_, and HBHEDataFrame::zsCrossingMask().
|
overrideprotectedvirtual |
Implements HcalZeroSuppressionAlgo.
Definition at line 109 of file HcalZSAlgoRealistic.cc.
References HOsearchTS_, keepMe(), SiStripPI::max, SiStripPI::min, HODataFrame::size(), thresholdHO_, and HODataFrame::zsCrossingMask().
|
overrideprotectedvirtual |
Implements HcalZeroSuppressionAlgo.
Definition at line 115 of file HcalZSAlgoRealistic.cc.
References HFsearchTS_, keepMe(), SiStripPI::max, SiStripPI::min, HFDataFrame::size(), thresholdHF_, and HFDataFrame::zsCrossingMask().
|
overrideprotectedvirtual |
Implements HcalZeroSuppressionAlgo.
Definition at line 121 of file HcalZSAlgoRealistic.cc.
References HFsearchTS_, keepMe(), SiStripPI::max, SiStripPI::min, QIE10DataFrame::samples(), and thresholdHF_.
|
overrideprotectedvirtual |
Implements HcalZeroSuppressionAlgo.
Definition at line 127 of file HcalZSAlgoRealistic.cc.
References HBsearchTS_, HcalBarrel, HEsearchTS_, QIE11DataFrame::id(), keepMe(), SiStripPI::max, SiStripPI::min, QIE11DataFrame::samples(), thresholdHB_, and thresholdHE_.
|
private |
Definition at line 49 of file HcalZSAlgoRealistic.h.
Referenced by shouldKeep().
|
private |
Definition at line 49 of file HcalZSAlgoRealistic.h.
Referenced by shouldKeep().
|
private |
Definition at line 49 of file HcalZSAlgoRealistic.h.
Referenced by shouldKeep().
|
private |
Definition at line 49 of file HcalZSAlgoRealistic.h.
Referenced by shouldKeep().
|
private |
Definition at line 48 of file HcalZSAlgoRealistic.h.
Referenced by HcalZSAlgoRealistic(), and shouldKeep().
|
private |
Definition at line 48 of file HcalZSAlgoRealistic.h.
Referenced by HcalZSAlgoRealistic(), and shouldKeep().
|
private |
Definition at line 48 of file HcalZSAlgoRealistic.h.
Referenced by HcalZSAlgoRealistic(), and shouldKeep().
|
private |
Definition at line 48 of file HcalZSAlgoRealistic.h.
Referenced by HcalZSAlgoRealistic(), and shouldKeep().
|
private |
Definition at line 47 of file HcalZSAlgoRealistic.h.
|
private |
Definition at line 47 of file HcalZSAlgoRealistic.h.
Referenced by HcalZSAlgoRealistic(), and keepMe().