4 HcalZSAlgoRealistic::HcalZSAlgoRealistic(
bool mp,
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) :
10 HBsearchTS_(HBsearchTS),
11 HEsearchTS_(HEsearchTS),
12 HOsearchTS_(HOsearchTS),
13 HFsearchTS_(HFsearchTS)
20 HBsearchTS_(HBsearchTS),
21 HEsearchTS_(HEsearchTS),
22 HOsearchTS_(HOsearchTS),
23 HFsearchTS_(HFsearchTS)
46 for (
int i = start;
i < finish && !keepIt;
i++) {
49 for (
int j =
i;
j < (
i+2);
j++){
53 if ((hbhezsmask&(1<<
i)) !=0)
continue;
54 else if (sum>=threshold) keepIt=
true;
69 for (
int i = start;
i < finish && !keepIt;
i++) {
72 for (
int j =
i;
j < (
i+2);
j++){
76 if ((hozsmask&(1<<
i)) !=0)
continue;
77 else if (sum>=threshold) keepIt=
true;
92 for (
int i = start;
i < finish && !keepIt;
i++) {
95 for (
int j =
i;
j < (
i+2);
j++){
99 if ((hfzsmask&(1<<
i)) !=0)
continue;
100 else if (sum>=threshold) keepIt=
true;
const HcalDbService * m_dbService
std::pair< int, int > HOsearchTS_
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
const HcalDetId & id() const
const T & max(const T &a, const T &b)
virtual bool shouldKeep(const HBHEDataFrame &digi) const
int size() const
total number of samples in the digi
std::pair< int, int > HEsearchTS_
const HcalZSThreshold * getHcalZSThreshold(const HcalGenericDetId &fId) const
int size() const
total number of samples in the digi
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
std::pair< int, int > HFsearchTS_
std::pair< int, int > HBsearchTS_
uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
const HcalDetId & id() const
bool keepMe(const HBHEDataFrame &inp, int start, int finish, int threshold, uint32_t hbhezsmask) const
const HcalDetId & id() const
HcalZSAlgoRealistic(bool markAndPass, std::pair< int, int > HBsearchTS, std::pair< int, int > HEsearchTS, std::pair< int, int > HOsearchTS, std::pair< int, int > HFsearchTS)