ATLAS Offline Software
Loading...
Searching...
No Matches
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
24
25
26
28
29{
30 setZero();
31
32 m_dataWord = dataWord;
33 m_word = dataWord;
36
37 if (is_BOB())
38 {
40 }
41 else if (is_LWC())
42 {
44 m_clwc = getBits(getBitsWord(15,0));
45 }
46 else if (is_BOL())
47 {
51 }
52 else if (is_TLP())
53 {
55 }
56 else if (is_TWC())
57 {
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
uint32_t m_word
constexpr std::pair< uint32_t, uint16_t > getBitsWord(const uint16_t bstart, const uint16_t bstop)
uint32_t getBits(std::pair< uint32_t, uint16_t > in)