ATLAS Offline Software
TrigDBCTPFilesLoader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef TRIGCONFIO_TrigDBCTPFilesLoader_H
11 #define TRIGCONFIO_TrigDBCTPFilesLoader_H
12 
14 
16 
17 #include <map>
18 #include <vector>
19 
20 namespace coral {
21  class IQuery;
22  class AttributeList;
23 }
24 
25 namespace TrigConf {
26 
31  public:
32 
34  TrigDBCTPFilesLoader(const std::string & connection);
35 
37  virtual ~TrigDBCTPFilesLoader() override;
38 
47  bool loadHardwareFiles( unsigned int smk,
48  L1CTPFiles & ctpfiles,
49  uint8_t loadMask = 0x0F,
50  const std::string & outFileName = "") const;
51 
52  private:
53 
54  void loadCTPFiles(L1CTPFiles & ctpfiles, std::unique_ptr<coral::IQuery> query, size_t schemaVersion) const;
55 
56  void loadCTPSMX(L1CTPFiles & ctpfiles, std::unique_ptr<coral::IQuery> query, size_t schemaVersion) const;
57 
58  void loadTMC(L1CTPFiles & ctpfiles, std::unique_ptr<coral::IQuery> query, size_t schemaVersion) const;
59 
60  void loadMUCTPI(L1CTPFiles & ctpfiles, std::unique_ptr<coral::IQuery> query, size_t schemaVersion) const;
61 
62  std::vector<uint32_t> loadDBFieldIntoVector(const coral::AttributeList& row, const std::string& field, size_t size) const;
63 
64  std::string loadDBFieldIntoString(const coral::AttributeList &row, const std::string &field) const;
65 
66  std::map<size_t, QueryDefinition> m_link_queries;
67  std::map<size_t, QueryDefinition> m_ctpfiles_queries;
68  std::map<size_t, QueryDefinition> m_ctpsmx_queries;
69  std::map<size_t, QueryDefinition> m_muctpi_queries;
70  std::map<size_t, QueryDefinition> m_tmcsig_queries;
71  };
72 
73 }
74 
75 #endif
76 
query_example.row
row
Definition: query_example.py:24
TrigConf::TrigDBCTPFilesLoader::loadTMC
void loadTMC(L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const
Definition: TrigDBCTPFilesLoader.cxx:350
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
RunEBWeightsComputation.smk
smk
Definition: RunEBWeightsComputation.py:87
TrigConf::TrigDBCTPFilesLoader::m_link_queries
std::map< size_t, QueryDefinition > m_link_queries
Definition: TrigDBCTPFilesLoader.h:66
TrigConf::TrigDBCTPFilesLoader::m_muctpi_queries
std::map< size_t, QueryDefinition > m_muctpi_queries
Definition: TrigDBCTPFilesLoader.h:69
TrigConf::TrigDBLoader::schemaVersion
size_t schemaVersion(coral::ISessionProxy *session) const
access to TriggerDB schema version
Definition: TrigDBLoader.cxx:38
TrigConf::TrigDBLoader
Loader of trigger configurations from Json files.
Definition: TrigDBLoader.h:33
TrigConf::TrigDBCTPFilesLoader::TrigDBCTPFilesLoader
TrigDBCTPFilesLoader(const std::string &connection)
Constructor.
Definition: TrigDBCTPFilesLoader.cxx:8
TrigDBLoader.h
Loader class for Trigger configuration from the Trigger DB.
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
TrigConf::TrigDBCTPFilesLoader::~TrigDBCTPFilesLoader
virtual ~TrigDBCTPFilesLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
TrigConf::TrigDBCTPFilesLoader::m_tmcsig_queries
std::map< size_t, QueryDefinition > m_tmcsig_queries
Definition: TrigDBCTPFilesLoader.h:70
TrigConf::L1CTPFiles
L1 menu configuration.
Definition: L1CTPFiles.h:29
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
coral
Definition: ISecondaryEventSelector.h:19
query
Definition: query.py:1
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
DumpGeoConfig.outFileName
string outFileName
Definition: DumpGeoConfig.py:252
TrigConf::TrigDBCTPFilesLoader::loadDBFieldIntoString
std::string loadDBFieldIntoString(const coral::AttributeList &row, const std::string &field) const
Definition: TrigDBCTPFilesLoader.cxx:504
TrigConf::TrigDBCTPFilesLoader::m_ctpfiles_queries
std::map< size_t, QueryDefinition > m_ctpfiles_queries
Definition: TrigDBCTPFilesLoader.h:67
TrigConf::TrigDBCTPFilesLoader
Loader of trigger configurations from Json files.
Definition: TrigDBCTPFilesLoader.h:30
TrigConf::TrigDBCTPFilesLoader::loadCTPFiles
void loadCTPFiles(L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const
Definition: TrigDBCTPFilesLoader.cxx:188
TrigConf::TrigDBCTPFilesLoader::loadHardwareFiles
bool loadHardwareFiles(unsigned int smk, L1CTPFiles &ctpfiles, uint8_t loadMask=0x0F, const std::string &outFileName="") const
Load content from the Trigger DB into an L1CTPFiles object for a given super master key (SMK)
Definition: TrigDBCTPFilesLoader.cxx:106
TrigConf::TrigDBCTPFilesLoader::m_ctpsmx_queries
std::map< size_t, QueryDefinition > m_ctpsmx_queries
Definition: TrigDBCTPFilesLoader.h:68
TrigConf::TrigDBCTPFilesLoader::loadDBFieldIntoVector
std::vector< uint32_t > loadDBFieldIntoVector(const coral::AttributeList &row, const std::string &field, size_t size) const
Definition: TrigDBCTPFilesLoader.cxx:476
L1CTPFiles.h
TrigConf::TrigDBCTPFilesLoader::loadCTPSMX
void loadCTPSMX(L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const
Definition: TrigDBCTPFilesLoader.cxx:266
TrigConf::TrigDBCTPFilesLoader::loadMUCTPI
void loadMUCTPI(L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const
Definition: TrigDBCTPFilesLoader.cxx:290