ATLAS Offline Software
L1Board.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_L1BOARD_H
6 #define TRIGCONFDATA_L1BOARD_H
7 
10 
11 #include <map>
12 #include <vector>
13 
14 namespace TrigConf {
15 
23  class L1Board final : public DataStructure {
24  public:
25 
26  enum class BoardType { CTPIN, TOPO, MUCTPI, MERGER };
27 
29  L1Board();
30 
31  L1Board(const L1Board &) = delete;
32  L1Board& operator=(const L1Board&) = delete;
33  L1Board(L1Board&&) = delete;
34 
38  L1Board(const std::string & boardName, const ptree & data);
39 
41  virtual ~L1Board() override = default;
42 
43  virtual std::string className() const override;
44 
46  std::size_t size() const;
47 
48  std::string type() const;
49 
50  BoardType boardType() const;
51 
53  bool legacy() const;
54 
56  const std::vector<std::string> & connectorNames() const;
57 
58  private:
59 
61  virtual void update() override;
62 
64  bool m_legacy;
65  std::vector<std::string> m_connectorNames;
66  };
67 
68 }
69 
70 #endif
TrigConf::DataStructure::data
const ptree & data() const
Access to the underlying data, if needed.
Definition: DataStructure.h:83
TrigConf::L1Board::boardType
BoardType boardType() const
Definition: L1Board.cxx:64
TrigConf::L1Board::legacy
bool legacy() const
Accessor to the connector type.
Definition: L1Board.cxx:86
TrigConf::L1Board::BoardType
BoardType
Definition: L1Board.h:26
TrigConf::L1Board::L1Board
L1Board()
Constructor.
Definition: L1Board.cxx:13
TrigConf::L1Board::m_connectorNames
std::vector< std::string > m_connectorNames
Definition: L1Board.h:65
TrigConf::L1Board::BoardType::MERGER
@ MERGER
TrigConf::L1Board::connectorNames
const std::vector< std::string > & connectorNames() const
Accessor to connector names.
Definition: L1Board.cxx:92
TrigConf::L1Board::update
virtual void update() override
Update the internal members.
Definition: L1Board.cxx:29
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::L1Board::className
virtual std::string className() const override
A string that is the name of the class.
Definition: L1Board.cxx:24
TrigConf::L1Board::size
std::size_t size() const
Accessor to the number of connectors.
Definition: L1Board.cxx:58
TrigConf::L1Board::BoardType::TOPO
@ TOPO
TrigConf::L1Board::operator=
L1Board & operator=(const L1Board &)=delete
TrigConf::L1Board::L1Board
L1Board(const L1Board &)=delete
ConstIter.h
TrigConf::L1Board::~L1Board
virtual ~L1Board() override=default
Destructor.
TrigConf::DataStructure
Base class for Trigger configuration data and wrapper around underlying representation.
Definition: DataStructure.h:37
TrigConf::L1Board::L1Board
L1Board(L1Board &&)=delete
TrigConf::L1Board::m_boardType
BoardType m_boardType
Definition: L1Board.h:63
TrigConf::L1Board::BoardType::CTPIN
@ CTPIN
TrigConf::L1Board::BoardType::MUCTPI
@ MUCTPI
DataStructure.h
TrigConf::DataStructure::ptree
boost::property_tree::ptree ptree
Definition: DataStructure.h:40
TrigConf::L1Board
a TriggerLine entry describes the location of a threshold multiplicity on a cable (connector)
Definition: L1Board.h:23
TrigConf::L1Board::type
std::string type() const
Definition: L1Board.cxx:70
TrigConf::L1Board::m_legacy
bool m_legacy
Definition: L1Board.h:64