10 std::pair<int, int> HBsearchTS,
11 std::pair<int, int> HEsearchTS,
12 std::pair<int, int> HOsearchTS,
13 std::pair<int, int> HFsearchTS)
16 thresholdHB_(levelHB),
17 thresholdHE_(levelHE),
18 thresholdHO_(levelHO),
19 thresholdHF_(levelHF),
20 HBsearchTS_(HBsearchTS),
21 HEsearchTS_(HEsearchTS),
22 HOsearchTS_(HOsearchTS),
23 HFsearchTS_(HFsearchTS) {
29 std::pair<int, int> HBsearchTS,
30 std::pair<int, int> HEsearchTS,
31 std::pair<int, int> HOsearchTS,
32 std::pair<int, int> HFsearchTS)
35 HBsearchTS_(HBsearchTS),
36 HEsearchTS_(HEsearchTS),
37 HOsearchTS_(HOsearchTS),
38 HFsearchTS_(HFsearchTS) {
53 for (
int i =
start;
i < finish;
i++) {
54 if ((zsmask & (1 <<
i)) != 0)
65 bool HcalZSAlgoRealistic::keepMe<QIE10DataFrame>(
67 if ((usingDBvalues) && (
threshold < 0) && (m_dbService !=
nullptr)) {
68 threshold = (m_dbService->getHcalZSThreshold(inp.id()))->getValue();
72 for (
int i =
start;
i < finish;
i++) {
80 bool HcalZSAlgoRealistic::keepMe<QIE11DataFrame>(
82 if ((usingDBvalues) && (
threshold < 0) && (m_dbService !=
nullptr)) {
83 threshold = (m_dbService->getHcalZSThreshold(inp.id()))->getValue();
87 for (
int i =
start;
i < finish;
i++) {
88 int sum = inp[
i].adc();
90 sum += inp[
i + 1].adc();
const HcalDbService * m_dbService
bool keepMe(const Digi &inp, int start, int finish, int threshold, uint32_t zsmask) const
constexpr uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
const HcalZSThreshold * getHcalZSThreshold(const HcalGenericDetId &fId) const
constexpr edm::DataFrame::id_type id() const
bool shouldKeep(const HBHEDataFrame &digi) const override
constexpr uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
constexpr HcalSubdetector subdet() const
get the subdetector
std::pair< int, int > HOsearchTS_
std::pair< int, int > HBsearchTS_
constexpr uint32_t zsCrossingMask() const
zs crossing mask (which sums considered)
constexpr int size() const
total number of samples in the digi
constexpr const HcalDetId & id() const
constexpr int samples() const
total number of samples in the digi
std::pair< int, int > HFsearchTS_
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)
constexpr int size() const
total number of samples in the digi
std::pair< int, int > HEsearchTS_
constexpr int size() const
total number of samples in the digi
constexpr int samples() const
total number of samples in the digi
uint16_t *__restrict__ uint16_t const *__restrict__ adc