5#ifndef TRIGCONFIGSVC__L1PRESCALECONDALG
6#define TRIGCONFIGSVC__L1PRESCALECONDALG
17#include <tbb/concurrent_unordered_map.h>
39 virtual StatusCode
execute(
const EventContext& ctx)
const override;
44 std::shared_ptr<L1PrescalesSet>
createFromFile(
const std::string & filename )
const;
47 std::shared_ptr<L1PrescalesSet>
createFromDB(
unsigned int psk,
bool isRun3 )
const;
50 mutable tbb::concurrent_unordered_map<unsigned int, std::shared_ptr<const L1PrescalesSet>> m_pssMap
ATLAS_THREAD_SAFE;
59 Gaudi::Property< std::string >
m_configSource {
this,
"Source",
"FILE",
"Configuration source, can be 'FILE', 'DB', or 'COOL'" };
60 Gaudi::Property< std::string >
m_dbConnection {
this,
"TriggerDB",
"",
"DB connection alias or 'JOSVC', used when property Source set to 'DB' or set to 'COOL'." };
61 Gaudi::Property< unsigned int >
m_psk {
this,
"L1Psk", 0,
"L1 prescale key, used when property 'Source' set to 'DB' or 'FILE'" };
62 Gaudi::Property< std::string >
m_filename {
this,
"Filename",
"",
"L1 prescale json file, used when property 'Source' set to 'FILE'" };
Base class for conditions algorithms.
Define macros for attributes used to control the static checker.
Base class for conditions algorithms.
SG::WriteCondHandleKey< TrigConf::L1PrescalesSet > m_l1PrescalesSetOutputKey
std::shared_ptr< L1PrescalesSet > createFromDB(unsigned int psk, bool isRun3) const
Gaudi::Property< unsigned int > m_psk
virtual StatusCode execute(const EventContext &ctx) const override
std::shared_ptr< L1PrescalesSet > createFromFile(const std::string &filename) const
Gaudi::Property< std::string > m_configSource
Gaudi::Property< std::string > m_filename
tbb::concurrent_unordered_map< unsigned int, std::shared_ptr< const L1PrescalesSet > > m_pssMap ATLAS_THREAD_SAFE
SG::ReadCondHandleKey< AthenaAttributeList > m_pskFolderInputKey
virtual ~L1PrescaleCondAlg() override=default
virtual StatusCode initialize() override
L1PrescaleCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_dbConnection
Forward iterator to traverse the main components of the trigger configuration.