ATLAS Offline Software
Loading...
Searching...
No Matches
L1TopoMenu.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef L1TOPOMENU_HPP
6#define L1TOPOMENU_HPP
7
8#include <vector>
9#include <map>
10#include <string>
11
13
17
18namespace TrigConf {
19 class L1TopoConfig;
20 class L1TopoMenuLoader;
21}
22
23namespace TXC {
24
25 class L1TopoMenu {
26
27 public:
28
29 // default constructor
30 L1TopoMenu();
31
32 // constructor
33 L1TopoMenu(const std::string & name, const std::string & version);
34
35 // assignment constructor
36 L1TopoMenu(L1TopoMenu&& o) noexcept = default;
37
38 L1TopoMenu(const L1TopoMenu&) = delete;
39
40 // destructor
42
43 //L1TopoMenu & operator=(const L1TopoMenu& rhs);
44
45 // get menu attributes
46 const std::string & getName() const {return m_name; }
47 const std::string & getVersion() const {return m_version; }
48 const unsigned int& getSMK() const {return m_smk; }
49
50
51 // accessors
52 const L1TopoConfigAlg & algorithm(const std::string& name) const;
53 const std::vector<TXC::L1TopoConfigAlg> & getL1TopoConfigAlgs() const { return m_algos; }
56
57
61 void setName(const std::string & name) { m_name = name; }
62 void setVersion(const std::string & version) {m_version = version; }
63 void setSMK(const unsigned int& smk) {m_smk = smk; }
64
67
69 void addL1TopoXMLOutput(const TXC::OutputListElement & output) { m_outputlist.addOutputListElement(output); }
70
72 void addL1TopoConfigGlobal(const TXC::TopoConfigElement &topoconfig) { m_topoconfig.addTopoConfigElement(topoconfig); }
74
76 void print() const;
77
78 L1TopoMenu& operator=(L1TopoMenu&& o) noexcept = default;
79
80 private:
81
82 L1TopoMenu& operator=(const L1TopoMenu&) = delete;
83
86
88
89 std::string m_name{""};
90 std::string m_version{""};
91 unsigned int m_smk{0};
92
93 // vectors of menu objects
94 std::vector<TXC::L1TopoConfigAlg> m_algos;
97
98 };
99
100}
101
102#endif
void setName(const std::string &name)
setter methods
Definition L1TopoMenu.h:61
const unsigned int & getSMK() const
Definition L1TopoMenu.h:48
friend class TrigConf::L1TopoConfig
Definition L1TopoMenu.h:84
const L1TopoConfigOutputList & getL1TopoConfigOutputList() const
Definition L1TopoMenu.h:55
void setVersion(const std::string &version)
Definition L1TopoMenu.h:62
void addL1TopoXMLOutput(const TXC::OutputListElement &output)
add output
Definition L1TopoMenu.h:69
L1TopoMenu & operator=(const L1TopoMenu &)=delete
unsigned int m_smk
Definition L1TopoMenu.h:91
const std::string & getVersion() const
Definition L1TopoMenu.h:47
TCS::StatusCode setTriggerList()
L1TopoMenu(L1TopoMenu &&o) noexcept=default
std::string m_name
Definition L1TopoMenu.h:89
const std::vector< TXC::L1TopoConfigAlg > & getL1TopoConfigAlgs() const
Definition L1TopoMenu.h:53
void addAlgorithm(TXC::L1TopoConfigAlg &&alg)
add algorithm
L1TopoMenu & operator=(L1TopoMenu &&o) noexcept=default
void addL1TopoConfigGlobal(const TXC::TopoConfigElement &topoconfig)
add config
Definition L1TopoMenu.h:72
const std::string & getName() const
Definition L1TopoMenu.h:46
void print() const
print menu
TXC::L1TopoConfigOutputList m_outputlist
Definition L1TopoMenu.h:96
std::string m_version
Definition L1TopoMenu.h:90
TXC::L1TopoConfigGlobal m_topoconfig
Definition L1TopoMenu.h:95
L1TopoMenu(const L1TopoMenu &)=delete
void setSMK(const unsigned int &smk)
Definition L1TopoMenu.h:63
std::vector< TXC::L1TopoConfigAlg > m_algos
Definition L1TopoMenu.h:94
const L1TopoConfigGlobal & getL1TopoConfigGlobal() const
Definition L1TopoMenu.h:54
TriggerDB loader of the HLT menu.
std::string algorithm
Definition hcg.cxx:85
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22