ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoConfig
L1TopoConfig
L1TopoConfigGlobal.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef __TopoCore__L1TopoConfigGlobal__
6
#define __TopoCore__L1TopoConfigGlobal__
7
8
#include <vector>
9
#include <string>
10
11
namespace
TXC
{
12
13
struct
TopoConfigElement
{
14
TopoConfigElement
() =
default
;
15
TopoConfigElement
(
const
std::string &
name
,
const
std::string &
value
) :
name
(
name
),
value
(
value
) {}
16
std::string
name
{
""
};
17
std::string
value
{
""
};
18
};
19
20
class
L1TopoConfigGlobal
{
21
public
:
22
23
// default constructor
24
L1TopoConfigGlobal
() =
default
;
25
26
//move constructor to allow faster vector filling
27
L1TopoConfigGlobal
(
L1TopoConfigGlobal
&&) noexcept = default;
28
L1TopoConfigGlobal
& operator=(
L1TopoConfigGlobal
&& ) noexcept = default;
29
30
// destructor
31
virtual ~
L1TopoConfigGlobal
();
32
33
// get all TopoConfig elements
34
const
std
::
vector
<
TopoConfigElement
> &
getTopoConfigs
()
const
{
return
m_topoConfigElements
; }
35
36
// setters
37
void
addTopoConfigElement
(
const
std::string & name,
const
std::string & value);
38
void
addTopoConfigElement
(
const
TopoConfigElement
& config);
39
40
private
:
41
42
// TopoConfig elements stored here
43
std::vector<TopoConfigElement>
m_topoConfigElements
;
44
};
45
46
std::ostream &
operator<<
(std::ostream &,
const
L1TopoConfigGlobal
&);
47
48
}
// end of namespace TXC
49
50
#endif
TXC::L1TopoConfigGlobal
Definition
L1TopoConfigGlobal.h:20
TXC::L1TopoConfigGlobal::L1TopoConfigGlobal
L1TopoConfigGlobal()=default
TXC::L1TopoConfigGlobal::m_topoConfigElements
std::vector< TopoConfigElement > m_topoConfigElements
Definition
L1TopoConfigGlobal.h:43
TXC::L1TopoConfigGlobal::L1TopoConfigGlobal
L1TopoConfigGlobal(L1TopoConfigGlobal &&) noexcept=default
TXC::L1TopoConfigGlobal::getTopoConfigs
const std::vector< TopoConfigElement > & getTopoConfigs() const
Definition
L1TopoConfigGlobal.h:34
TXC::L1TopoConfigGlobal::addTopoConfigElement
void addTopoConfigElement(const std::string &name, const std::string &value)
Definition
L1TopoConfigGlobal.cxx:15
vector
Definition
MultiHisto.h:13
const
TXC
Definition
Run2toRun3ConvertersL1.h:5
TXC::operator<<
std::ostream & operator<<(std::ostream &, const TXC::L1TopoConfigAlg &)
Definition
L1TopoConfigAlg.cxx:123
std
STL namespace.
TXC::TopoConfigElement
Definition
L1TopoConfigGlobal.h:13
TXC::TopoConfigElement::TopoConfigElement
TopoConfigElement(const std::string &name, const std::string &value)
Definition
L1TopoConfigGlobal.h:15
TXC::TopoConfigElement::TopoConfigElement
TopoConfigElement()=default
TXC::TopoConfigElement::name
std::string name
Definition
L1TopoConfigGlobal.h:16
TXC::TopoConfigElement::value
std::string value
Definition
L1TopoConfigGlobal.h:17
Generated on
for ATLAS Offline Software by
1.17.0