ATLAS Offline Software
Loading...
Searching...
No Matches
gFexSRJetRoIThresholdsTool.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 gFexSRJetRoIThresholdsTool::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 int ieta = roi.menuEta();
14 uint64_t thresholdMask = 0;
15
16 for (const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
17 auto thr = static_cast<TrigConf::L1Threshold_gJ*>(thrBase.get());
18
19 if (et > thr->thrValueMeV(ieta)) {
20 thresholdMask |= (1_u64<<thr->mapping());
21 }
22
23 }
24
25 return thresholdMask;
26}
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
int menuEta() const
the eta index to use for looking up thresholds in the menu
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.