ATLAS Offline Software
jFexFwdElRoIThresholdsTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
5 
7  const RoIThresholdsTool::ThrVec& menuThresholds,
8  const TrigConf::L1ThrExtraInfoBase& /*menuExtraInfo*/) const {
9 
10  // Get RoI properties (once, rather than for every threshold in the menu)
11  unsigned int et = roi.et();
12  int ieta = roi.menuEta();
13  uint64_t thresholdMask = 0;
14 
15  // Iterate through thresholds and see which ones are passed
16  for (const std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
17  std::shared_ptr<TrigConf::L1Threshold_jEM> thr = std::static_pointer_cast<TrigConf::L1Threshold_jEM>(thrBase);
18 
19  //Checking et thresholds
20  if (et > thr->thrValueMeV(ieta)) {
21  thresholdMask |= (1<<thr->mapping());
22  }
23 
24  ATH_MSG_DEBUG("jFEX FwdEl HLT seeding for ("<< thr->name() <<"): et=" << et << " > "<<thr->thrValueMeV(ieta));
25  }
26  return thresholdMask;
27 
28 }
TrigConf::L1Threshold::mapping
unsigned int mapping() const
Accessor to the mapping number The mapping is unique within a type.
Definition: L1ThresholdBase.h:163
et
Extra patterns decribing particle interation process.
TrigConf::L1ThrExtraInfoBase
L1 extra information for certain threshold types.
Definition: L1ThresholdBase.h:72
TrigConf::DataStructure::name
virtual const std::string & name() const final
Definition: DataStructure.cxx:109
jFexFwdElRoIThresholdsTool::getPattern
virtual uint64_t getPattern(const xAOD::jFexFwdElRoI &roi, const ThrVec &menuThresholds, const TrigConf::L1ThrExtraInfoBase &menuExtraInfo) const override
Definition: jFexFwdElRoIThresholdsTool.cxx:6
jFexFwdElRoIThresholdsTool.h
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
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::jFexFwdElRoI_v1::et
unsigned int et() const
Methods that require combining results or applying scales.
Definition: jFexFwdElRoI_v1.cxx:151
TrigConf::L1Threshold_Calo::thrValueMeV
virtual unsigned int thrValueMeV(int eta=0) const
Definition: L1ThresholdBase.cxx:289
xAOD::jFexFwdElRoI_v1::menuEta
int menuEta() const
the eta index to use for looking up thresholds in the menu
Definition: jFexFwdElRoI_v1.cxx:56
xAOD::jFexFwdElRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition: jFexFwdElRoI_v1.h:22