5#ifndef TRIGCONFIGSVC__BUNCHGROUPCONDALG
6#define TRIGCONFIGSVC__BUNCHGROUPCONDALG
15#include <tbb/concurrent_unordered_map.h>
24 virtual StatusCode
execute(
const EventContext& ctx)
const override;
28 std::shared_ptr<L1BunchGroupSet>
createFromFile(
const std::string & filename )
const;
31 std::shared_ptr<L1BunchGroupSet>
createFromDB(
unsigned int )
const;
34 mutable tbb::concurrent_unordered_map<unsigned int, std::shared_ptr<const L1BunchGroupSet>> m_BgsMap
ATLAS_THREAD_SAFE;
43 Gaudi::Property< std::string >
m_configSource {
this,
"Source",
"FILE",
"Configuration source, can be 'FILE', 'DB', or 'COOL'" };
44 Gaudi::Property< std::string >
m_dbConnection {
this,
"TriggerDB",
"",
"DB connection alias or 'JOSVC', used when property Source set to 'DB' or set to 'COOL'." };
45 Gaudi::Property< unsigned int >
m_bgk {
this,
"BGSK", 0,
"L1 BunchGroup key, used when property 'Source' set to 'DB' or 'FILE'" };
46 Gaudi::Property< std::string >
m_filename {
this,
"Filename",
"",
"L1BunchGroupSet json file, used when property 'Source' set to 'FILE'" };
Base class for conditions algorithms.
An AttributeList represents a logical row of attributes in a metadata table.
Define macros for attributes used to control the static checker.
Base class for conditions algorithms.
tbb::concurrent_unordered_map< unsigned int, std::shared_ptr< const L1BunchGroupSet > > m_BgsMap ATLAS_THREAD_SAFE
SG::WriteCondHandleKey< TrigConf::L1BunchGroupSet > m_l1BunchGroupSetOutputKey
BunchGroupCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< AthenaAttributeList > m_bgkFolderInputKey
Gaudi::Property< unsigned int > m_bgk
std::shared_ptr< L1BunchGroupSet > createFromFile(const std::string &filename) const
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_configSource
Gaudi::Property< std::string > m_filename
std::shared_ptr< L1BunchGroupSet > createFromDB(unsigned int) const
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< std::string > m_dbConnection
Forward iterator to traverse the main components of the trigger configuration.