ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12#include <map>
13
14namespace 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
91CLASS_DEF( TrigConf::HLTMenu , 24176960 , 1 )
92
93#include "AthenaKernel/CondCont.h"
95
96#endif
97#endif
98
99#endif
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Forward iterator over an iterable of type V returning an object of type T.
Definition ConstIter.h:31
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
boost::property_tree::ptree ptree
HLT menu configuration.
Definition HLTMenu.h:21
std::vector< DataStructure > streams() const
Accessor to the connected output streams.
Definition HLTMenu.cxx:65
const_iterator end() const
End of the HLT chains list.
Definition HLTMenu.cxx:57
const_iterator begin() const
Begin of the HLT chains list.
Definition HLTMenu.cxx:51
virtual std::string className() const override
A string that is the name of the class.
Definition HLTMenu.h:38
ConstIter< ptree, Chain > const_iterator
Iterator over the HLT chains.
Definition HLTMenu.h:50
HLTMenu(HLTMenu &&)=default
std::map< std::string, std::vector< std::string > > sequencers() const
Accessor to the sequencers.
Definition HLTMenu.cxx:80
void setSMK(unsigned int psk)
Definition HLTMenu.cxx:46
HLTMenu(const HLTMenu &)=default
virtual void update() override
Update the internal data after modification of the data object.
Definition HLTMenu.h:79
std::size_t size() const
Accessor to the number of HLT chains.
Definition HLTMenu.cxx:35
void printMenu(bool full=false) const
print overview of L1 Menu
Definition HLTMenu.cxx:96
HLTMenu()
Constructor.
Definition HLTMenu.cxx:10
virtual void clear() override
Clearing the configuration data.
Definition HLTMenu.cxx:29
virtual ~HLTMenu() override=default
Destructor.
unsigned int m_smk
the supermasterkey
Definition HLTMenu.h:83
unsigned int smk() const
setter and getter for the supermasterkey
Definition HLTMenu.cxx:41
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22