ATLAS Offline Software
gFexSRJetRoIThresholdsTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
5 
7  const RoIThresholdsTool::ThrVec& menuThresholds,
8  const TrigConf::L1ThrExtraInfoBase& /*menuExtraInfo*/) const {
9  float et = roi.et();
10  int ieta = roi.menuEta();
11  uint64_t thresholdMask = 0;
12 
13  for (const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
14  auto thr = static_cast<TrigConf::L1Threshold_gJ*>(thrBase.get());
15 
16  if (et > thr->thrValueMeV(ieta)) {
17  thresholdMask |= (1<<thr->mapping());
18  }
19 
20  }
21 
22  return thresholdMask;
23 }
et
Extra patterns decribing particle interation process.
gFexSRJetRoIThresholdsTool::getPattern
virtual uint64_t getPattern(const xAOD::gFexJetRoI &roi, const ThrVec &menuThresholds, const TrigConf::L1ThrExtraInfoBase &menuExtraInfo) const override
Definition: gFexSRJetRoIThresholdsTool.cxx:6
TrigConf::L1ThrExtraInfoBase
L1 extra information for certain threshold types.
Definition: L1ThresholdBase.h:72
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:157
xAOD::gFexJetRoI_v1::menuEta
int menuEta() const
the eta index to use for looking up thresholds in the menu
Definition: gFexJetRoI_v1.cxx:53
TrigConf::L1Threshold_gJ
Definition: L1Threshold.h:305
gFexSRJetRoIThresholdsTool.h