9 std::pair<int, int> HBsearchTS,
10 std::pair<int, int> HEsearchTS,
11 std::pair<int, int> HOsearchTS,
12 std::pair<int, int> HFsearchTS)
14 thresholdHB_(levelHB),
15 thresholdHE_(levelHE),
16 thresholdHO_(levelHO),
17 thresholdHF_(levelHF),
18 HBsearchTS_(HBsearchTS),
19 HEsearchTS_(HEsearchTS),
20 HOsearchTS_(HOsearchTS),
21 HFsearchTS_(HFsearchTS) {
26 std::pair<int, int> HBsearchTS,
27 std::pair<int, int> HEsearchTS,
28 std::pair<int, int> HOsearchTS,
29 std::pair<int, int> HFsearchTS)
49 for (
int i = start;
i < finish;
i++) {
50 if ((zsmask & (1 <<
i)) != 0)
52 if ((inp[
i].
adc() + inp[
i + 1].
adc()) >= threshold)
61 bool HcalZSAlgoRealistic::keepMe<QIE10DataFrame>(
68 for (
int i =
start;
i < finish;
i++) {
76 bool HcalZSAlgoRealistic::keepMe<QIE11DataFrame>(
83 for (
int i =
start;
i < finish;
i++) {
int samples() const
total number of samples in the digi
const HcalDbService * m_dbService
bool keepMe(const Digi &inp, int start, int finish, int threshold, uint32_t zsmask) const
HcalSubdetector subdet() const
get the subdetector
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
int size() const
total number of samples in the digi
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
std::pair< int, int > HOsearchTS_
int size() const
total number of samples in the digi
edm::DataFrame::id_type id() const
std::pair< int, int > HBsearchTS_
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
const HcalZSThreshold * getHcalZSThreshold(const HcalGenericDetId &fId) const
int size() const
total number of samples in the digi
bool shouldKeep(const HBHEDataFrame &digi) const override
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
std::pair< int, int > HFsearchTS_
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
const HcalDetId & id() const
std::pair< int, int > HEsearchTS_
int samples() const
total number of samples in the digi
HcalZSAlgoRealistic(bool markAndPass, std::pair< int, int > HBsearchTS, std::pair< int, int > HEsearchTS, std::pair< int, int > HOsearchTS, std::pair< int, int > HFsearchTS)