ATLAS Offline Software
TrigDBMenuLoader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef TRIGCONFIO_TRIGDBMENULOADER_H
13 #define TRIGCONFIO_TRIGDBMENULOADER_H
14 
16 
17 #include "boost/property_tree/ptree.hpp"
18 
19 #include "TrigConfData/L1Menu.h"
20 #include "TrigConfData/HLTMenu.h"
21 
22 
23 namespace TrigConf {
24 
25  class QueryDefinition;
26 
31  public:
32 
34  TrigDBMenuLoader(const std::string & connection);
35 
37  virtual ~TrigDBMenuLoader() override;
38 
46  bool loadL1Menu ( unsigned int smk,
48  const std::string & outFileName = "") const;
49 
57  bool loadHLTMenu ( unsigned int smk,
59  const std::string & outFileName = "") const;
60 
68  bool loadL1Menu ( unsigned int smk,
69  L1Menu & l1menu,
70  const std::string & outFileName = "") const;
71 
79  bool loadHLTMenu ( unsigned int smk,
80  HLTMenu & hltmenu,
81  const std::string & outFileName = "") const;
82  private:
83  std::map<size_t, QueryDefinition> m_l1queries;
84  std::map<size_t, QueryDefinition> m_hltqueries;
85  };
86 
87 }
88 
89 #endif
90 
TrigConf::TrigDBMenuLoader::m_l1queries
std::map< size_t, QueryDefinition > m_l1queries
Definition: TrigDBMenuLoader.h:83
TrigConf::HLTMenu
HLT menu configuration.
Definition: HLTMenu.h:21
RunEBWeightsComputation.smk
smk
Definition: RunEBWeightsComputation.py:87
TrigConf::TrigDBMenuLoader::loadHLTMenu
bool loadHLTMenu(unsigned int smk, boost::property_tree::ptree &hltmenu, const std::string &outFileName="") const
Load HLT menu content from the Trigger DB into two ptrees for a given SuperMasterKey (SMK)
Definition: TrigDBMenuLoader.cxx:106
TrigConf::TrigDBLoader
Loader of trigger configurations from the Trigger database.
Definition: TrigDBLoader.h:39
TrigConf::TrigDBMenuLoader::TrigDBMenuLoader
TrigDBMenuLoader(const std::string &connection)
Constructor.
Definition: TrigDBMenuLoader.cxx:6
TrigDBLoader.h
Loader class for Trigger configuration from the Trigger DB.
TrigConf::L1Menu
L1 menu configuration.
Definition: L1Menu.h:28
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::TrigDBMenuLoader::loadL1Menu
bool loadL1Menu(unsigned int smk, boost::property_tree::ptree &l1menu, const std::string &outFileName="") const
Load L1 menu content from the Trigger DB into a ptree for a given SuperMasterKey (SMK)
Definition: TrigDBMenuLoader.cxx:93
ptree
boost::property_tree::ptree ptree
Definition: JsonFileLoader.cxx:16
TrigConf::TrigDBMenuLoader::m_hltqueries
std::map< size_t, QueryDefinition > m_hltqueries
Definition: TrigDBMenuLoader.h:84
dumpNswErrorDb.outFileName
string outFileName
Definition: dumpNswErrorDb.py:131
python.XMLReader.l1menu
l1menu
Definition: XMLReader.py:73
HLTMenu.h
L1Menu.h
TrigConf::TrigDBMenuLoader
Loader of trigger menu configurations from the database.
Definition: TrigDBMenuLoader.h:30
TrigConf::TrigDBMenuLoader::~TrigDBMenuLoader
virtual ~TrigDBMenuLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.