23 const std::string&
name, ISvcLocator* svcLoc)
34 return StatusCode::SUCCESS;
38 const EventContext& ctx) {
42 }
catch (
const std::exception&
e) {
45 <<
". The Phase-I jFEX threshold table "
46 "cannot be built. Ensure TrigConf::xAODConfigSvc has "
47 "loaded the L1 menu for this input file.");
48 return StatusCode::FAILURE;
52 return StatusCode::SUCCESS;
57 <<
"' - rebuilding jFEX threshold table");
60 if (thresholds.empty()) {
62 <<
"' has no thresholds of type '"
64 return StatusCode::FAILURE;
67 for (
const auto& thr : thresholds) {
68 const unsigned int bit = thr->mapping();
74 <<
" jFEX threshold names from L1 menu '"
75 << l1menu->name() <<
"'");
78 return StatusCode::SUCCESS;
87 return StatusCode::FAILURE;
90 static const SG::AuxElement::ConstAccessor<uint64_t>
91 thrPatternsAcc(
"thresholdPatterns");
96 std::vector<std::string>
passed;
97 if (thrPatternsAcc.isAvailable(*roi)) {
98 const uint64_t pat = thrPatternsAcc(*roi);
106 thresholdsDec(*roi) = std::move(
passed);
109 return StatusCode::SUCCESS;
Helper class to provide constant type-safe access to aux data.
static const Attributes_t empty
StatusCode rebuildJfexThresholdTable(const EventContext &ctx)
Gaudi::Property< std::string > m_l1ThresholdType
SG::WriteDecorHandleKey< xAOD::jFexSRJetRoIContainer > m_thresholdsDecorKey
std::string m_cachedL1MenuName
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_l1JetsKey
L1jFexJetThresholdsDecoratorAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Gaudi::Property< std::string > m_decorationName
ToolHandle< TrigConf::ITrigConfigTool > m_trigConfigTool
bool m_thresholdNamesLoaded
StatusCode initialize() override
std::vector< std::string > m_jfexThresholdNames
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
Select isolated Photons, Electrons and Muons.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
jFexSRJetRoI_v1 jFexSRJetRoI
Define the latest version of the jFexSRJetRoI class.