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)
40 for (
int i = start;
i < finish;
i++) {
41 if ((zsmask&(1<<
i)) !=0)
continue;
42 if ((inp[
i].
adc()+inp[
i+1].
adc())>=threshold)
return true;
56 for (
int i =
start;
i < finish;
i++) {
69 for (
int i =
start;
i < finish;
i++) {
int adc(sample_type sample)
get the ADC sample (12 bits)
int samples() const
total number of samples in the digi
const HcalDbService * m_dbService
std::pair< int, int > HOsearchTS_
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
virtual bool shouldKeep(const HBHEDataFrame &digi) const
int size() const
total number of samples in the digi
edm::DataFrame::id_type id() const
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
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)