ATLAS Offline Software
HGTD_RDO.h
Go to the documentation of this file.
1 
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 
53 class HGTD_RDO : public Identifiable {
54 
55 public:
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;
63  HGTD_RDO& operator=(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 
91 private:
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 
117 inline Identifier HGTD_RDO::identify() const { return m_rdo_id; }
118 
119 inline float HGTD_RDO::getTOA() const { return m_toa; }
120 
121 inline unsigned int HGTD_RDO::getTOT() const { return m_tot; }
122 
123 inline unsigned short HGTD_RDO::getBCID() const { return m_bcid; }
124 
125 inline unsigned short HGTD_RDO::getL1ID() const { return m_l1_id; }
126 
127 inline unsigned short HGTD_RDO::getL1A() const { return m_l1_a; }
128 
129 #endif // HGTD_RAWDATA_HGTD_RDORAWDATA_H
HGTD_RDO::getL1A
virtual unsigned short getL1A() const
Definition: HGTD_RDO.h:127
HGTD_RDO::identify
virtual Identifier identify() const
Definition: HGTD_RDO.h:117
HGTD_RDO::getBCID
virtual unsigned short getBCID() const
Definition: HGTD_RDO.h:123
HGTD_RDO::m_bcid
unsigned short m_bcid
Bunch crossing ID.
Definition: HGTD_RDO.h:106
HGTD_RDO::m_tot
unsigned int m_tot
Time over threshold, 9 bit word.
Definition: HGTD_RDO.h:102
HGTD_RDO::operator=
HGTD_RDO & operator=(const HGTD_RDO &)=default
HGTD_RDO::m_l1_a
unsigned short m_l1_a
ATLAS LVL1.
Definition: HGTD_RDO.h:114
HGTD_RDO
Definition: HGTD_RDO.h:53
Identifiable.h
HGTD_RDO::getTOA
virtual float getTOA() const
Definition: HGTD_RDO.h:119
HGTD_RDO::m_toa
float m_toa
Time of arrival, 7 bit word.
Definition: HGTD_RDO.h:98
HGTD_RDO::m_l1_id
unsigned short m_l1_id
Level 1 accept.
Definition: HGTD_RDO.h:110
HGTD_RDO::HGTD_RDO
HGTD_RDO(HGTD_RDO &&)=default
HGTD_RDO::operator=
HGTD_RDO & operator=(HGTD_RDO &&)=default
HGTD_RDO::HGTD_RDO
HGTD_RDO(const HGTD_RDO &)=default
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
HGTD_RDO::HGTD_RDO
HGTD_RDO()=default
Default constructor should NOT be used, needed for pool I/O.
HGTD_RDO::getTOT
virtual unsigned int getTOT() const
Definition: HGTD_RDO.h:121
HGTD_RDO::~HGTD_RDO
virtual ~HGTD_RDO()=default
Identifiable
This class provides an abstract interface to an Identifiable object.
Definition: Identifiable.h:27
HGTD_RDO::getL1ID
virtual unsigned short getL1ID() const
Definition: HGTD_RDO.h:125
HGTD_RDO::m_rdo_id
Identifier m_rdo_id
Offline ID of the readout channel.
Definition: HGTD_RDO.h:94
Identifier
Definition: IdentifierFieldParser.cxx:14