ATLAS Offline Software
Loading...
Searching...
No Matches
gFexLRJetRoIThresholdsTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
5#include "utilities.h"
6using namespace HLTSeedingNs;
7
8uint64_t gFexLRJetRoIThresholdsTool::getPattern(const EventContext& /*ctx*/,
9 const xAOD::gFexJetRoI& roi,
10 const RoIThresholdsTool::ThrVec& menuThresholds,
11 const TrigConf::L1ThrExtraInfoBase& /*menuExtraInfo*/) const {
12 float et = roi.et();
13 uint64_t thresholdMask = 0;
14
15 for (const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
16 auto thr = static_cast<TrigConf::L1Threshold_gLJ*>(thrBase.get());
17
18 if (et > thr->thrValueMeV()) {
19 thresholdMask |= (1_u64<<thr->mapping());
20 }
21
22 }
23
24 return thresholdMask;
25}
std::vector< std::shared_ptr< TrigConf::L1Threshold > > ThrVec
L1 extra information for certain threshold types.
virtual uint64_t getPattern(const EventContext &ctx, const xAOD::gFexJetRoI &roi, const ThrVec &menuThresholds, const TrigConf::L1ThrExtraInfoBase &menuExtraInfo) const override
float et() const
retrieves the Et index from the 32-bit word
gFexJetRoI_v1 gFexJetRoI
Define the latest version of the gFexJetRoI class.
Definition gFexJetRoI.h:16
Extra patterns decribing particle interation process.