ATLAS Offline Software
HLTMenu.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGCONFDATA_HLTMENU_H
6 #define TRIGCONFDATA_HLTMENU_H
7 
10 #include "TrigConfData/HLTChain.h"
11 
12 #include <map>
13 
14 namespace TrigConf {
15 
21  class HLTMenu final : public DataStructure {
22  public:
23 
25  HLTMenu();
26 
30  HLTMenu(const ptree & data);
31  HLTMenu(const HLTMenu&) = default;
32  HLTMenu(HLTMenu&&) = default;
33 
35  virtual ~HLTMenu() override = default;
36 
37  // class name
38  virtual std::string className() const override {
39  return "HLTMenu";
40  }
41 
43  std::size_t size() const;
44 
46  unsigned int smk() const;
47  void setSMK(unsigned int psk);
48 
51 
56  const_iterator begin() const;
57 
62  const_iterator end() const;
63 
65  std::vector<DataStructure> streams() const;
66 
68  std::map<std::string, std::vector<std::string>> sequencers() const;
69 
71  void printMenu(bool full = false) const;
72 
74  virtual void clear() override;
75 
76  private:
77 
79  virtual void update() override { load(); };
80  void load();
81 
83  unsigned int m_smk {0};
84  };
85 }
86 
87 #ifndef TRIGCONF_STANDALONE
88 #ifndef XAOD_STANDALONE
89 
90 #include "AthenaKernel/CLASS_DEF.h"
91 CLASS_DEF( TrigConf::HLTMenu , 24176960 , 1 )
92 
93 #include "AthenaKernel/CondCont.h"
95 
96 #endif
97 #endif
98 
99 #endif
TrigConf::DataStructure::data
const ptree & data() const
Access to the underlying data, if needed.
Definition: DataStructure.h:83
TrigConf::HLTMenu::HLTMenu
HLTMenu(HLTMenu &&)=default
TrigConf::HLTMenu::printMenu
void printMenu(bool full=false) const
print overview of L1 Menu
Definition: HLTMenu.cxx:96
TrigConf::HLTMenu::~HLTMenu
virtual ~HLTMenu() override=default
Destructor.
TrigConf::HLTMenu
HLT menu configuration.
Definition: HLTMenu.h:21
TrigConf::HLTMenu::smk
unsigned int smk() const
setter and getter for the supermasterkey
Definition: HLTMenu.cxx:41
HLTChain.h
TrigConf::HLTMenu::setSMK
void setSMK(unsigned int psk)
Definition: HLTMenu.cxx:46
CONDCONT_DEF
CONDCONT_DEF(TrigConf::HLTMenu, 155284098)
TrigConf::HLTMenu::load
void load()
Definition: HLTMenu.cxx:20
TrigConf::HLTMenu::className
virtual std::string className() const override
A string that is the name of the class.
Definition: HLTMenu.h:38
TrigConf::HLTMenu::m_smk
unsigned int m_smk
the supermasterkey
Definition: HLTMenu.h:83
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::HLTMenu::streams
std::vector< DataStructure > streams() const
Accessor to the connected output streams.
Definition: HLTMenu.cxx:65
TrigConf::HLTMenu::update
virtual void update() override
Update the internal data after modification of the data object.
Definition: HLTMenu.h:79
TrigConf::HLTMenu::begin
const_iterator begin() const
Begin of the HLT chains list.
Definition: HLTMenu.cxx:51
TrigConf::HLTMenu::clear
virtual void clear() override
Clearing the configuration data.
Definition: HLTMenu.cxx:29
TrigConf::HLTMenu::size
std::size_t size() const
Accessor to the number of HLT chains.
Definition: HLTMenu.cxx:35
TrigConf::ConstIter
Forward iterator over an iterable of type V returning an object of type T.
Definition: ConstIter.h:32
TrigConf::HLTMenu::HLTMenu
HLTMenu()
Constructor.
Definition: HLTMenu.cxx:10
ConstIter.h
TrigConf::DataStructure
Base class for Trigger configuration data and wrapper around underlying representation.
Definition: DataStructure.h:37
find_data.full
full
Definition: find_data.py:27
TrigConf::HLTMenu::sequencers
std::map< std::string, std::vector< std::string > > sequencers() const
Accessor to the sequencers.
Definition: HLTMenu.cxx:80
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigConf::HLTMenu::HLTMenu
HLTMenu(const HLTMenu &)=default
DataStructure.h
TrigConf::DataStructure::ptree
boost::property_tree::ptree ptree
Definition: DataStructure.h:40
CLASS_DEF.h
macros to associate a CLID to a type
TrigConf::HLTMenu::end
const_iterator end() const
End of the HLT chains list.
Definition: HLTMenu.cxx:57