ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_RawEvent
HGTD_RawData
HGTD_RawData
HGTD_ALTIROC_RDO.h
Go to the documentation of this file.
1
10
11
#ifndef HGTD_RAWDATA_HGTD_ALTIROC_RDO_H
12
#define HGTD_RAWDATA_HGTD_ALTIROC_RDO_H
13
14
#include "
Identifier/Identifiable.h
"
15
16
#include "Identifier/Identifier.h"
17
18
#include <cstdint>
19
20
class
HGTD_ALTIROC_RDO
:
public
Identifiable
{
21
22
public
:
26
HGTD_ALTIROC_RDO
() =
default
;
27
HGTD_ALTIROC_RDO
(
const
HGTD_ALTIROC_RDO
&) =
default
;
28
HGTD_ALTIROC_RDO
(
HGTD_ALTIROC_RDO
&&) =
default
;
29
HGTD_ALTIROC_RDO
&
operator=
(
const
HGTD_ALTIROC_RDO
&) =
default
;
30
HGTD_ALTIROC_RDO
&
operator=
(
HGTD_ALTIROC_RDO
&&) =
default
;
31
32
// Destructor:
33
virtual
~HGTD_ALTIROC_RDO
() =
default
;
34
41
HGTD_ALTIROC_RDO
(
const
Identifier
rdo_id,
const
uint64_t word);
42
43
HGTD_ALTIROC_RDO
(
const
Identifier
rdo_id,
44
const
uint8_t crc,
45
const
uint8_t toa,
46
const
uint16_t tot,
47
const
uint8_t l1id,
48
const
uint16_t bcid);
49
50
virtual
Identifier
identify
()
const
;
51
virtual
uint16_t
getToT
()
const
;
52
virtual
uint8_t
getToA
()
const
;
53
virtual
uint16_t
getBCID
()
const
;
54
virtual
uint8_t
getL1ID
()
const
;
55
virtual
uint8_t
getCRC
()
const
;
56
virtual
uint64_t
getWord
()
const
;
57
58
private
:
61
Identifier
m_rdo_id
;
62
65
uint64_t
m_word
{};
66
};
67
68
inline
Identifier
HGTD_ALTIROC_RDO::identify
()
const
{
return
m_rdo_id
; }
69
70
// decode BCID information (10 bits)
71
inline
uint16_t
HGTD_ALTIROC_RDO::getBCID
()
const
{
return
((
m_word
>>30) & 0x3FF); }
72
73
// decode L1ID information (6 bits)
74
inline
uint8_t
HGTD_ALTIROC_RDO::getL1ID
()
const
{
return
((
m_word
>>24) & 0x3F); }
75
76
// decode TOT information (9 bits)
77
inline
uint16_t
HGTD_ALTIROC_RDO::getToT
()
const
{
return
((
m_word
>>15) & 0x1FF); }
78
79
// decode TOA information (7 bits)
80
inline
uint8_t
HGTD_ALTIROC_RDO::getToA
()
const
{
return
((
m_word
>>8) & 0x7F); }
81
82
// decode CRC information (8 bits)
83
inline
uint8_t
HGTD_ALTIROC_RDO::getCRC
()
const
{
return
((
m_word
) & 0xFF); }
84
85
// Return raw altiroc word
86
inline
uint64_t
HGTD_ALTIROC_RDO::getWord
()
const
{
return
m_word
; }
87
88
#endif
// HGTD_RAWDATA_HGTD_ALTIROC_RDO_H
Identifiable.h
HGTD_ALTIROC_RDO::m_rdo_id
Identifier m_rdo_id
Offline ID of the readout channel.
Definition
HGTD_ALTIROC_RDO.h:61
HGTD_ALTIROC_RDO::getCRC
virtual uint8_t getCRC() const
Definition
HGTD_ALTIROC_RDO.h:83
HGTD_ALTIROC_RDO::getToA
virtual uint8_t getToA() const
Definition
HGTD_ALTIROC_RDO.h:80
HGTD_ALTIROC_RDO::operator=
HGTD_ALTIROC_RDO & operator=(HGTD_ALTIROC_RDO &&)=default
HGTD_ALTIROC_RDO::m_word
uint64_t m_word
ALTIROC RAW output.
Definition
HGTD_ALTIROC_RDO.h:65
HGTD_ALTIROC_RDO::getWord
virtual uint64_t getWord() const
Definition
HGTD_ALTIROC_RDO.h:86
HGTD_ALTIROC_RDO::HGTD_ALTIROC_RDO
HGTD_ALTIROC_RDO(HGTD_ALTIROC_RDO &&)=default
HGTD_ALTIROC_RDO::operator=
HGTD_ALTIROC_RDO & operator=(const HGTD_ALTIROC_RDO &)=default
HGTD_ALTIROC_RDO::getToT
virtual uint16_t getToT() const
Definition
HGTD_ALTIROC_RDO.h:77
HGTD_ALTIROC_RDO::~HGTD_ALTIROC_RDO
virtual ~HGTD_ALTIROC_RDO()=default
HGTD_ALTIROC_RDO::getL1ID
virtual uint8_t getL1ID() const
Definition
HGTD_ALTIROC_RDO.h:74
HGTD_ALTIROC_RDO::getBCID
virtual uint16_t getBCID() const
Definition
HGTD_ALTIROC_RDO.h:71
HGTD_ALTIROC_RDO::HGTD_ALTIROC_RDO
HGTD_ALTIROC_RDO(const HGTD_ALTIROC_RDO &)=default
HGTD_ALTIROC_RDO::identify
virtual Identifier identify() const
Definition
HGTD_ALTIROC_RDO.h:68
HGTD_ALTIROC_RDO::HGTD_ALTIROC_RDO
HGTD_ALTIROC_RDO()=default
Default constructor should NOT be used, needed for pool I/O.
Identifiable
This class provides an abstract interface to an Identifiable object.
Definition
Identifiable.h:27
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0