ATLAS Offline Software
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"
6 using namespace HLTSeedingNs;
7 
8 uint64_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 }
et
Extra patterns decribing particle interation process.
TrigConf::L1ThrExtraInfoBase
L1 extra information for certain threshold types.
Definition: L1ThresholdBase.h:72
gFexLRJetRoIThresholdsTool.h
xAOD::gFexJetRoI_v1
Class describing properties of a LVL1 gFEX jet Trigger Object (TOB) in the xAOD format.
Definition: gFexJetRoI_v1.h:25
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
RoIThresholdsTool::ThrVec
std::vector< std::shared_ptr< TrigConf::L1Threshold > > ThrVec
Definition: IRoIThresholdsTool.h:24
xAOD::gFexJetRoI_v1::et
float et() const
retrieves the Et index from the 32-bit word
Definition: gFexJetRoI_v1.cxx:160
utilities.h
HLTSeedingNs
Definition: utilities.h:8
gFexLRJetRoIThresholdsTool::getPattern
virtual uint64_t getPattern(const EventContext &ctx, const xAOD::gFexJetRoI &roi, const ThrVec &menuThresholds, const TrigConf::L1ThrExtraInfoBase &menuExtraInfo) const override
Definition: gFexLRJetRoIThresholdsTool.cxx:8
TrigConf::L1Threshold_gLJ
Definition: L1Threshold.h:320