13 uint32_t thr_num =
static_cast<uint32_t
>(roi.
getThrNumber());
15 uint64_t thresholdsPattern = 0;
18 for (
const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
19 std::shared_ptr<TrigConf::L1Threshold_MU> thr = std::static_pointer_cast<TrigConf::L1Threshold_MU>(thrBase);
24 if (thr_num >= thr->idxBarrel() || thr_num >= thr->idxEndcap() || thr_num >= thr->idxForward()) {
30 thresholdsPattern |= (1_u64 << thr->mapping());
35 return thresholdsPattern;
int getThrNumber() const
Get the logic number of the highest threshold this RoI passed.