ATLAS Offline Software
ALFA_RawDataCollectionReadOut.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
9  m_dataWord(0),
10  m_wordHeader(0),
11  m_wordHeader2(0),
12  m_lvl1Id(0),
13  m_clwc(0),
14  m_ftyp(0),
15  m_ecnt_LWC(0),
16  m_ecnt_TWC(0),
17  m_ecnt_EOB(0),
18  m_ctwc(0),
19  m_BOLflag(0),
20  m_MrodNum(0),
21  m_RODinput(0),
22  m_KaptId(0)
23 { }
24 
25 
26 
28 
29 {
30  setZero();
31 
32  m_dataWord = dataWord;
33  m_word = dataWord;
34  m_wordHeader = (dataWord>>s_headerPos) & s_headerBits;
36 
37  if (is_BOB())
38  {
39  m_lvl1Id = getBits(getBitsWord(23,0));
40  }
41  else if (is_LWC())
42  {
43  m_ecnt_LWC = getBits(getBitsWord(19,16));
44  m_clwc = getBits(getBitsWord(15,0));
45  }
46  else if (is_BOL())
47  {
48  m_BOLflag = getBits(getBitsWord(23,16));
49  m_MrodNum = getBits(getBitsWord(15,4));
51  }
52  else if (is_TLP())
53  {
54  m_KaptId = getBits(getBitsWord(19,0));
55  }
56  else if (is_TWC())
57  {
58  m_ecnt_TWC = getBits(getBitsWord(23,12));
59  m_ctwc = getBits(getBitsWord(11,0));
60  }
61  else if (is_EOB())
62  {
64  }
65 
66 
67 }
68 
69 
71 {
72  m_lvl1Id = 0; // Lvl1 Id
73  m_clwc = 0; // Link word count
74  m_ftyp = 0; // flag type
75  m_KaptId = 0; // flags
76 
77  m_BOLflag= 0;
78 
79  m_ecnt_LWC = 0; // Event counter
80  m_ecnt_TWC = 0; // Event counter
81  m_ecnt_EOB = 0; // Event counter
82 
83  m_ctwc = 0; // Trailer word count
84 
85  m_MrodNum = 0; // MROD number
86  m_RODinput = 0; // ROD input
87 
88 
89 
90 }
91 
92 
ALFA_RawDataCollectionReadOut::s_headerBits2
static constexpr uint16_t s_headerBits2
Definition: ALFA_RawDataCollectionReadOut.h:67
ALFA_RawDataCollectionReadOut::s_headerPos2
static constexpr uint16_t s_headerPos2
Definition: ALFA_RawDataCollectionReadOut.h:66
ALFA_RawDataCollectionReadOut::m_RODinput
uint16_t m_RODinput
Definition: ALFA_RawDataCollectionReadOut.h:56
ALFA_RawDataCollectionReadOut::m_ftyp
uint16_t m_ftyp
Definition: ALFA_RawDataCollectionReadOut.h:45
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ALFA_RawDataCollectionReadOut::m_MrodNum
uint16_t m_MrodNum
Definition: ALFA_RawDataCollectionReadOut.h:55
ALFA_RawDataCollectionReadOut::is_TWC
bool is_TWC() const
Definition: ALFA_RawDataCollectionReadOut.h:91
ALFA_RawDataCollectionReadOut::s_headerPos
static constexpr uint16_t s_headerPos
Definition: ALFA_RawDataCollectionReadOut.h:61
ALFA_RawDataCollectionReadOut::m_ecnt_TWC
uint16_t m_ecnt_TWC
Definition: ALFA_RawDataCollectionReadOut.h:48
ALFA_RawDataCollectionReadOut::m_ecnt_EOB
uint16_t m_ecnt_EOB
Definition: ALFA_RawDataCollectionReadOut.h:49
ALFA_RawDataCollectionReadOut::setZero
void setZero()
Definition: ALFA_RawDataCollectionReadOut.cxx:70
ALFA_RawDataCollectionReadOut::is_BOL
bool is_BOL() const
Definition: ALFA_RawDataCollectionReadOut.h:89
ALFA_RawDataCollectionReadOut::s_headerBits
static constexpr uint16_t s_headerBits
Definition: ALFA_RawDataCollectionReadOut.h:62
ALFA_ReadOut::m_word
uint32_t m_word
Definition: ALFA_ReadOut.h:40
ALFA_RawDataCollectionReadOut::m_lvl1Id
uint32_t m_lvl1Id
Definition: ALFA_RawDataCollectionReadOut.h:43
ALFA_RawDataCollectionReadOut::is_LWC
bool is_LWC() const
Definition: ALFA_RawDataCollectionReadOut.h:88
ALFA_RawDataCollectionReadOut::m_KaptId
uint32_t m_KaptId
Definition: ALFA_RawDataCollectionReadOut.h:57
ALFA_RawDataCollectionReadOut::decodeWord
void decodeWord(uint32_t dataWord)
Definition: ALFA_RawDataCollectionReadOut.cxx:27
ALFA_RawDataCollectionReadOut::m_clwc
uint32_t m_clwc
Definition: ALFA_RawDataCollectionReadOut.h:44
ALFA_RawDataCollectionReadOut::m_BOLflag
uint16_t m_BOLflag
Definition: ALFA_RawDataCollectionReadOut.h:53
ALFA_RawDataCollectionReadOut::m_ctwc
uint16_t m_ctwc
Definition: ALFA_RawDataCollectionReadOut.h:51
ALFA_RawDataCollectionReadOut::ALFA_RawDataCollectionReadOut
ALFA_RawDataCollectionReadOut()
Definition: ALFA_RawDataCollectionReadOut.cxx:8
ALFA_RawDataCollectionReadOut::m_wordHeader2
uint16_t m_wordHeader2
Definition: ALFA_RawDataCollectionReadOut.h:39
ALFA_RawDataCollectionReadOut::m_wordHeader
uint16_t m_wordHeader
Definition: ALFA_RawDataCollectionReadOut.h:38
ALFA_RawDataCollectionReadOut::m_ecnt_LWC
uint16_t m_ecnt_LWC
Definition: ALFA_RawDataCollectionReadOut.h:47
ALFA_RawDataCollectionReadOut::is_EOB
bool is_EOB() const
Definition: ALFA_RawDataCollectionReadOut.h:92
ALFA_ReadOut::getBitsWord
constexpr std::pair< uint32_t, uint16_t > getBitsWord(const uint16_t bstart, const uint16_t bstop)
Definition: ALFA_ReadOut.h:21
ALFA_RawDataCollectionReadOut::is_TLP
bool is_TLP() const
Definition: ALFA_RawDataCollectionReadOut.h:90
ALFA_ReadOut::getBits
uint32_t getBits(std::pair< uint32_t, uint16_t > in)
Definition: ALFA_ReadOut.h:29
ALFA_RawDataCollectionReadOut::is_BOB
bool is_BOB() const
Definition: ALFA_RawDataCollectionReadOut.h:87
ALFA_RawDataCollectionReadOut::m_dataWord
uint32_t m_dataWord
Definition: ALFA_RawDataCollectionReadOut.h:37
ALFA_RawDataCollectionReadOut.h