ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_RDO.h
Go to the documentation of this file.
1
43
44#ifndef HGTD_RAWDATA_HGTD_RDO_H
45#define HGTD_RAWDATA_HGTD_RDO_H
46
48
49#include "Identifier/Identifier.h"
50
51#include <cstdint>
52
53class HGTD_RDO : public Identifiable {
54
55public:
59 HGTD_RDO() = default;
60 HGTD_RDO(const HGTD_RDO&) = default;
61 HGTD_RDO(HGTD_RDO&&) = default;
62 HGTD_RDO& operator=(const HGTD_RDO&) = default;
64
65 // Destructor:
66 virtual ~HGTD_RDO() = default;
67
79 HGTD_RDO(const Identifier rdo_id, const float toa, const unsigned int tot,
80 const unsigned short bcid, const unsigned short l1_id,
81 const unsigned short l1_a = 0);
82
83 virtual Identifier identify() const;
84
85 virtual float getTOA() const;
86 virtual unsigned int getTOT() const;
87 virtual unsigned short getBCID() const;
88 virtual unsigned short getL1ID() const;
89 virtual unsigned short getL1A() const;
90
91private:
95
98 float m_toa{};
99
102 unsigned int m_tot{};
103
106 unsigned short m_bcid{};
107
110 unsigned short m_l1_id{};
111
114 unsigned short m_l1_a{};
115};
116
117inline Identifier HGTD_RDO::identify() const { return m_rdo_id; }
118
119inline float HGTD_RDO::getTOA() const { return m_toa; }
120
121inline unsigned int HGTD_RDO::getTOT() const { return m_tot; }
122
123inline unsigned short HGTD_RDO::getBCID() const { return m_bcid; }
124
125inline unsigned short HGTD_RDO::getL1ID() const { return m_l1_id; }
126
127inline unsigned short HGTD_RDO::getL1A() const { return m_l1_a; }
128
129#endif // HGTD_RAWDATA_HGTD_RDORAWDATA_H
virtual unsigned short getBCID() const
Definition HGTD_RDO.h:123
Identifier m_rdo_id
Offline ID of the readout channel.
Definition HGTD_RDO.h:94
unsigned short m_l1_id
Level 1 accept.
Definition HGTD_RDO.h:110
HGTD_RDO(HGTD_RDO &&)=default
virtual float getTOA() const
Definition HGTD_RDO.h:119
virtual unsigned int getTOT() const
Definition HGTD_RDO.h:121
unsigned int m_tot
Time over threshold, 9 bit word.
Definition HGTD_RDO.h:102
virtual unsigned short getL1ID() const
Definition HGTD_RDO.h:125
virtual Identifier identify() const
Definition HGTD_RDO.h:117
HGTD_RDO & operator=(HGTD_RDO &&)=default
HGTD_RDO & operator=(const HGTD_RDO &)=default
HGTD_RDO(const HGTD_RDO &)=default
unsigned short m_l1_a
ATLAS LVL1.
Definition HGTD_RDO.h:114
virtual ~HGTD_RDO()=default
float m_toa
Time of arrival, 7 bit word.
Definition HGTD_RDO.h:98
HGTD_RDO()=default
Default constructor should NOT be used, needed for pool I/O.
virtual unsigned short getL1A() const
Definition HGTD_RDO.h:127
unsigned short m_bcid
Bunch crossing ID.
Definition HGTD_RDO.h:106
This class provides an abstract interface to an Identifiable object.