ATLAS Offline Software
Loading...
Searching...
No Matches
L1CTP.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGCONFDATA_L1CTP_H
6#define TRIGCONFDATA_L1CTP_H
7
9
10#include <map>
11
12namespace TrigConf {
13
19
21 class L1CTP final : public DataStructure {
22 public:
23
24 L1CTP() = default;
28 L1CTP(const std::string & name, const ptree & data);
29
30 L1CTP(const L1CTP &) = delete;
31 L1CTP& operator=(const L1CTP&) = delete;
32 L1CTP(L1CTP&&) = delete;
33
34 virtual ~L1CTP() override = default;
35
40 const std::string & ctpin(size_t slot, size_t conn) const;
41
42 const std::string & electrical(size_t conn) const;
43
44 const std::string & optical(size_t conn) const;
45
50 const std::map<std::string, std::pair<size_t,std::string>>& ctpMon() const { return m_ctpmon; }
51
56 const std::map<std::string, std::pair<size_t,std::string>>& ctpinMon() const { return m_ctpinMon; }
57
59 virtual void clear() override;
60
61 private:
62
64 virtual void update() override { load(); };
65 void load();
66
67 std::string m_ctpin[3][4];
68 std::string m_electrical[3];
69 std::string m_optical[12];
70
71 std::map<std::string, std::pair<size_t,std::string>> m_ctpmon;
72 std::map<std::string, std::pair<size_t,std::string>> m_ctpinMon;
73 };
74}
75
76#endif
virtual const std::string & name() const final
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
const std::map< std::string, std::pair< size_t, std::string > > & ctpMon() const
CTP monitors.
Definition L1CTP.h:50
L1CTP & operator=(const L1CTP &)=delete
virtual void clear() override
Clearing the configuration data.
Definition L1CTP.cxx:58
std::string m_electrical[3]
Definition L1CTP.h:68
std::map< std::string, std::pair< size_t, std::string > > m_ctpinMon
Definition L1CTP.h:72
std::string m_optical[12]
Definition L1CTP.h:69
std::string m_ctpin[3][4]
Definition L1CTP.h:67
std::map< std::string, std::pair< size_t, std::string > > m_ctpmon
Definition L1CTP.h:71
const std::map< std::string, std::pair< size_t, std::string > > & ctpinMon() const
CTPIN monitors.
Definition L1CTP.h:56
virtual void update() override
Update the internal data after modification of the data object.
Definition L1CTP.h:64
void load()
Definition L1CTP.cxx:14
const std::string & electrical(size_t conn) const
Definition L1CTP.cxx:77
virtual ~L1CTP() override=default
const std::string & optical(size_t conn) const
Definition L1CTP.cxx:85
const std::string & ctpin(size_t slot, size_t conn) const
name of ctpin connector
Definition L1CTP.cxx:64
L1CTP()=default
L1CTP(L1CTP &&)=delete
L1CTP(const L1CTP &)=delete
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22