ATLAS Offline Software
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 
10 namespace 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
TrigConf::DataStructure::data
const ptree & data() const
Access to the underlying data, if needed.
Definition: DataStructure.h:83
TrigConf::L1Item::complexDeadtime
unsigned int complexDeadtime() const
Accessor to the complex deadtime.
Definition: L1Item.cxx:51
TrigConf::L1Item::triggerTypeAsUChar
unsigned char triggerTypeAsUChar() const
Accessor to the item triggerType returned format is an uchar (8 bit L1 trigger type)
Definition: L1Item.cxx:81
TrigConf::L1Item::ctpId
unsigned int ctpId() const
Accessor to the CTP ID.
Definition: L1Item.cxx:34
TrigConf::L1Item::legacy
std::optional< bool > legacy() const
Accessor to the item legacy flag.
Definition: L1Item.cxx:75
TrigConf::L1Item::partition
unsigned int partition() const
Accessor to the item partition.
Definition: L1Item.cxx:63
TrigConf::L1Item::triggerType
const std::string & triggerType() const
Accessor to the item triggerType returned format is a string (e.g.
Definition: L1Item.cxx:69
TrigConf::L1Item::className
virtual std::string className() const override
A string that is the name of the class.
Definition: L1Item.cxx:17
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::L1Item::update
virtual void update() override
Update the internal data after modification of the data object.
Definition: L1Item.h:79
TrigConf::L1Item
L1 threshold configuration.
Definition: L1Item.h:18
TrigConf::L1Item::load
void load()
Definition: L1Item.cxx:22
TrigConf::L1Item::definition
const std::string & definition() const
Accessor to the item definition.
Definition: L1Item.cxx:40
TrigConf::DataStructure
Base class for Trigger configuration data and wrapper around underlying representation.
Definition: DataStructure.h:37
TrigConf::L1Item::L1Item
L1Item()
Constructor.
Definition: L1Item.cxx:7
TrigConf::L1Item::m_bunchgroups
std::vector< std::string > m_bunchgroups
Definition: L1Item.h:82
DataStructure.h
TrigConf::DataStructure::ptree
boost::property_tree::ptree ptree
Definition: DataStructure.h:40
TrigConf::L1Item::bunchgroups
const std::vector< std::string > & bunchgroups() const
Accessor to the list of bunchgroups.
Definition: L1Item.cxx:46
TrigConf::L1Item::~L1Item
virtual ~L1Item() override=default
Destructor.
TrigConf::L1Item::logic
DataStructure logic() const
Accessor to the item logic.
Definition: L1Item.cxx:93
TrigConf::L1Item::monitor
const std::string & monitor() const
Accessor to the item monitoring definition.
Definition: L1Item.cxx:57