ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_ALTIROC_RDO.cxx
Go to the documentation of this file.
1
10
12
13HGTD_ALTIROC_RDO::HGTD_ALTIROC_RDO(const Identifier rdo_id, const uint64_t word)
14 : Identifiable(),
15 m_rdo_id(rdo_id),
16 m_word(word) {}
17
18
20 const uint8_t crc,
21 const uint8_t toa,
22 const uint16_t tot,
23 const uint8_t l1id,
24 const uint16_t bcid)
25 : Identifiable(),
26 m_rdo_id(rdo_id)
27 {
28 auto u64 = [](auto x){return static_cast<uint64_t>(x);};
29 m_word = ( crc +
30 ((toa & 0x7F) << 8) +
31 ((tot & 0x1FF) << 15) +
32 ((l1id & 0x3F) << 24) +
33 ((u64(bcid) & u64(0x3FF)) << 30) );
34 }
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
#define x
Identifier m_rdo_id
Offline ID of the readout channel.
uint64_t m_word
ALTIROC RAW output.
HGTD_ALTIROC_RDO()=default
Default constructor should NOT be used, needed for pool I/O.
This class provides an abstract interface to an Identifiable object.