ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigSteer
HLTSeeding
src
jFexSRJetRoIThresholdsTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
jFexSRJetRoIThresholdsTool.h
"
5
#include "
utilities.h
"
6
using namespace
HLTSeedingNs
;
7
8
uint64_t
jFexSRJetRoIThresholdsTool::getPattern
(
const
EventContext&
/*ctx*/
,
9
const
xAOD::jFexSRJetRoI
& roi,
10
const
RoIThresholdsTool::ThrVec
& menuThresholds,
11
const
TrigConf::L1ThrExtraInfoBase
&
/*menuExtraInfo*/
)
const
{
12
13
// Get RoI properties (once, rather than for every threshold in the menu)
14
unsigned
int
et
= roi.
et
();
15
int
ieta = roi.
menuEta
();
16
uint64_t thresholdMask = 0;
17
18
// Iterate through thresholds and see which ones are passed
19
for
(
const
std::shared_ptr<TrigConf::L1Threshold>& thrBase : menuThresholds) {
20
auto
thr =
static_cast<
TrigConf::L1Threshold_jJ
*
>
(thrBase.get());
21
22
//Checking et thresholds
23
if
(
et
> thr->thrValueMeV(ieta)) {
24
thresholdMask |= (1_u64<<thr->mapping());
25
}
26
27
ATH_MSG_DEBUG
(
"jFEX SRjets HLT seeding for ("
<< thr->name() <<
"): et="
<<
et
<<
" > "
<<thr->thrValueMeV(ieta));
28
}
29
return
thresholdMask;
30
31
}
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
RoIThresholdsTool::ThrVec
std::vector< std::shared_ptr< TrigConf::L1Threshold > > ThrVec
Definition
IRoIThresholdsTool.h:24
TrigConf::L1ThrExtraInfoBase
L1 extra information for certain threshold types.
Definition
L1ThresholdBase.h:72
TrigConf::L1Threshold_jJ
Definition
L1Threshold.h:280
jFexSRJetRoIThresholdsTool::getPattern
virtual uint64_t getPattern(const EventContext &ctx, const xAOD::jFexSRJetRoI &roi, const ThrVec &menuThresholds, const TrigConf::L1ThrExtraInfoBase &menuExtraInfo) const override
Definition
jFexSRJetRoIThresholdsTool.cxx:8
xAOD::jFexSRJetRoI_v1::menuEta
int menuEta() const
the eta index to use for looking up thresholds in the menu the current jFex fw only supports symmetri...
Definition
jFexSRJetRoI_v1.cxx:58
xAOD::jFexSRJetRoI_v1::et
unsigned int et() const
Methods that require combining results or applying scales.
Definition
jFexSRJetRoI_v1.cxx:138
jFexSRJetRoIThresholdsTool.h
HLTSeedingNs
Definition
utilities.h:8
xAOD::jFexSRJetRoI
jFexSRJetRoI_v1 jFexSRJetRoI
Define the latest version of the jFexSRJetRoI class.
Definition
jFexSRJetRoI.h:14
et
Extra patterns decribing particle interation process.
utilities.h
Generated on
for ATLAS Offline Software by
1.17.0