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 
45  bool loadL1Menu ( unsigned int smk,
47  const std::string & outFileName = "") const;
48 
55  bool loadHLTMenu ( unsigned int smk,
57  const std::string & outFileName = "") const;
58 
66  bool loadL1Menu ( unsigned int smk,
67  L1Menu & l1menu,
68  const std::string & outFileName = "") const;
69 
77  bool loadHLTMenu ( unsigned int smk,
78  HLTMenu & hltmenu,
79  const std::string & outFileName = "") const;
80  private:
81  std::map<size_t, QueryDefinition> m_l1queries;
82  std::map<size_t, QueryDefinition> m_hltqueries;
83  };
84 
85 }
86 
87 #endif
88 
TrigConf::TrigDBMenuLoader::m_l1queries
std::map< size_t, QueryDefinition > m_l1queries
Definition: TrigDBMenuLoader.h:81
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:123
TrigConf::TrigDBLoader
Loader of trigger configurations from Json files.
Definition: TrigDBLoader.h:33
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
DumpGeoConfig.outFileName
string outFileName
Definition: DumpGeoConfig.py:252
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:82
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.