ATLAS Offline Software
Loading...
Searching...
No Matches
L1Item.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_L1ITEM_H
6#define TRIGCONFDATA_L1ITEM_H
7
9
10namespace TrigConf {
11
18 class L1Item final : public DataStructure {
19 public:
20
22 L1Item();
23
27 L1Item(const ptree & data);
28
30 virtual ~L1Item() override = default;
31
32 virtual std::string className() const override;
33
35 unsigned int ctpId() const;
36
38 const std::string & definition() const;
39
41 const std::vector<std::string> & bunchgroups() const;
42
47 unsigned int complexDeadtime() const;
48
50 const std::string & monitor() const;
51
53 unsigned int partition() const;
54
58 const std::string & triggerType() const;
59
63 unsigned char triggerTypeAsUChar() const;
64
67 std::optional<bool> legacy() const;
68
74 DataStructure logic() const;
75
76 private:
77
79 virtual void update() override { load(); };
80 void load();
81
82 std::vector<std::string> m_bunchgroups{};
83
84 };
85
86}
87
88#endif
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
unsigned char triggerTypeAsUChar() const
Accessor to the item triggerType returned format is an uchar (8 bit L1 trigger type)
Definition L1Item.cxx:81
const std::string & triggerType() const
Accessor to the item triggerType returned format is a string (e.g.
Definition L1Item.cxx:69
unsigned int partition() const
Accessor to the item partition.
Definition L1Item.cxx:63
std::optional< bool > legacy() const
Accessor to the item legacy flag.
Definition L1Item.cxx:75
L1Item()
Constructor.
Definition L1Item.cxx:7
DataStructure logic() const
Accessor to the item logic.
Definition L1Item.cxx:93
unsigned int ctpId() const
Accessor to the CTP ID.
Definition L1Item.cxx:34
unsigned int complexDeadtime() const
Accessor to the complex deadtime.
Definition L1Item.cxx:51
virtual std::string className() const override
A string that is the name of the class.
Definition L1Item.cxx:17
const std::vector< std::string > & bunchgroups() const
Accessor to the list of bunchgroups.
Definition L1Item.cxx:46
const std::string & definition() const
Accessor to the item definition.
Definition L1Item.cxx:40
virtual ~L1Item() override=default
Destructor.
virtual void update() override
Update the internal data after modification of the data object.
Definition L1Item.h:79
std::vector< std::string > m_bunchgroups
Definition L1Item.h:82
const std::string & monitor() const
Accessor to the item monitoring definition.
Definition L1Item.cxx:57
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22