ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ALFA_RawDataCollectionReadOut Class Reference

#include <ALFA_RawDataCollectionReadOut.h>

Inheritance diagram for ALFA_RawDataCollectionReadOut:
Collaboration diagram for ALFA_RawDataCollectionReadOut:

Public Member Functions

 ALFA_RawDataCollectionReadOut ()
 
void decodeWord (uint32_t dataWord)
 
bool is_BOB () const
 
bool is_LWC () const
 
bool is_BOL () const
 
bool is_TLP () const
 
bool is_TWC () const
 
bool is_EOB () const
 
uint32_t lvl1Id () const
 
uint32_t clwc () const
 
uint16_t BOLflag () const
 
uint16_t ftyp () const
 
uint16_t ecnt_LWC () const
 
uint16_t ecnt_TWC () const
 
uint16_t ecnt_EOB () const
 
uint16_t ctwc () const
 
uint16_t MrodNum () const
 
uint16_t RODinput () const
 
uint16_t KaptId () const
 

Protected Member Functions

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)
 
uint32_t setBits (uint16_t nData, uint16_t *inputData, uint16_t *inputPos)
 
uint32_t setBits (uint16_t nData, uint32_t *inputData, uint16_t *inputPos)
 

Protected Attributes

uint32_t m_word
 

Private Member Functions

void setZero ()
 

Private Attributes

uint32_t m_dataWord
 
uint16_t m_wordHeader
 
uint16_t m_wordHeader2
 
uint32_t m_lvl1Id
 
uint32_t m_clwc
 
uint16_t m_ftyp
 
uint16_t m_ecnt_LWC
 
uint16_t m_ecnt_TWC
 
uint16_t m_ecnt_EOB
 
uint16_t m_ctwc
 
uint16_t m_BOLflag
 
uint16_t m_MrodNum
 
uint16_t m_RODinput
 
uint32_t m_KaptId
 

Static Private Attributes

static constexpr uint16_t s_headerPos = 24
 
static constexpr uint16_t s_headerBits = 0xff
 
static constexpr uint16_t s_headerPos2 = 20
 
static constexpr uint16_t s_headerBits2 = 0xfff
 
static constexpr uint16_t s_BOBvalue = 0x80
 
static constexpr uint16_t s_LWCvalue = 0x810
 
static constexpr uint16_t s_BOLvalue = 0x18
 
static constexpr uint16_t s_TLPvalue = 0x890
 
static constexpr uint16_t s_TWCvalue = 0x8a
 
static constexpr uint16_t s_EOBvalue = 0xf0
 

Detailed Description

Definition at line 31 of file ALFA_RawDataCollectionReadOut.h.

Constructor & Destructor Documentation

◆ ALFA_RawDataCollectionReadOut()

ALFA_RawDataCollectionReadOut::ALFA_RawDataCollectionReadOut ( )

Definition at line 8 of file ALFA_RawDataCollectionReadOut.cxx.

8  :
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 { }

Member Function Documentation

◆ BOLflag()

uint16_t ALFA_RawDataCollectionReadOut::BOLflag ( ) const
inline

Definition at line 97 of file ALFA_RawDataCollectionReadOut.h.

97 {return m_BOLflag;}

◆ clwc()

uint32_t ALFA_RawDataCollectionReadOut::clwc ( ) const
inline

Definition at line 96 of file ALFA_RawDataCollectionReadOut.h.

96 {return m_clwc;}

◆ ctwc()

uint16_t ALFA_RawDataCollectionReadOut::ctwc ( ) const
inline

Definition at line 103 of file ALFA_RawDataCollectionReadOut.h.

103 {return m_ctwc;}

◆ decodeWord()

void ALFA_RawDataCollectionReadOut::decodeWord ( uint32_t  dataWord)

Definition at line 27 of file ALFA_RawDataCollectionReadOut.cxx.

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 }

◆ ecnt_EOB()

uint16_t ALFA_RawDataCollectionReadOut::ecnt_EOB ( ) const
inline

Definition at line 102 of file ALFA_RawDataCollectionReadOut.h.

102 {return m_ecnt_EOB;}

◆ ecnt_LWC()

uint16_t ALFA_RawDataCollectionReadOut::ecnt_LWC ( ) const
inline

Definition at line 100 of file ALFA_RawDataCollectionReadOut.h.

100 {return m_ecnt_LWC;}

◆ ecnt_TWC()

uint16_t ALFA_RawDataCollectionReadOut::ecnt_TWC ( ) const
inline

Definition at line 101 of file ALFA_RawDataCollectionReadOut.h.

101 {return m_ecnt_TWC;}

◆ ftyp()

uint16_t ALFA_RawDataCollectionReadOut::ftyp ( ) const
inline

Definition at line 98 of file ALFA_RawDataCollectionReadOut.h.

98 {return m_ftyp;}

◆ getBits()

uint32_t ALFA_ReadOut::getBits ( std::pair< uint32_t, uint16_t >  in)
inlineprotectedinherited

Definition at line 29 of file ALFA_ReadOut.h.

29  {
30  return (m_word >> in.second) & (in.first|1);
31  }

◆ getBitsWord()

constexpr std::pair<uint32_t, uint16_t> ALFA_ReadOut::getBitsWord ( const uint16_t  bstart,
const uint16_t  bstop 
)
inlineconstexprprotectedinherited

Definition at line 21 of file ALFA_ReadOut.h.

21  {
22  uint32_t word = 0;
23  for (uint16_t i = bstop; i<bstart ; i++ )
24  word = ((word | 1)<<1);
25  return std::make_pair(word, bstop);
26  }

◆ is_BOB()

bool ALFA_RawDataCollectionReadOut::is_BOB ( ) const
inline

Definition at line 87 of file ALFA_RawDataCollectionReadOut.h.

87 {return m_wordHeader == s_BOBvalue;};

◆ is_BOL()

bool ALFA_RawDataCollectionReadOut::is_BOL ( ) const
inline

Definition at line 89 of file ALFA_RawDataCollectionReadOut.h.

89 {return m_wordHeader == s_BOLvalue;};

◆ is_EOB()

bool ALFA_RawDataCollectionReadOut::is_EOB ( ) const
inline

Definition at line 92 of file ALFA_RawDataCollectionReadOut.h.

92 {return m_wordHeader == s_EOBvalue;};

◆ is_LWC()

bool ALFA_RawDataCollectionReadOut::is_LWC ( ) const
inline

Definition at line 88 of file ALFA_RawDataCollectionReadOut.h.

88 {return m_wordHeader2 == s_LWCvalue;};

◆ is_TLP()

bool ALFA_RawDataCollectionReadOut::is_TLP ( ) const
inline

Definition at line 90 of file ALFA_RawDataCollectionReadOut.h.

90 {return m_wordHeader2 == s_TLPvalue;};

◆ is_TWC()

bool ALFA_RawDataCollectionReadOut::is_TWC ( ) const
inline

Definition at line 91 of file ALFA_RawDataCollectionReadOut.h.

91 {return m_wordHeader == s_TWCvalue;};

◆ KaptId()

uint16_t ALFA_RawDataCollectionReadOut::KaptId ( ) const
inline

Definition at line 106 of file ALFA_RawDataCollectionReadOut.h.

106 {return m_KaptId;}

◆ lvl1Id()

uint32_t ALFA_RawDataCollectionReadOut::lvl1Id ( ) const
inline

Definition at line 95 of file ALFA_RawDataCollectionReadOut.h.

95 {return m_lvl1Id;}

◆ MrodNum()

uint16_t ALFA_RawDataCollectionReadOut::MrodNum ( ) const
inline

Definition at line 104 of file ALFA_RawDataCollectionReadOut.h.

104 {return m_MrodNum;}

◆ RODinput()

uint16_t ALFA_RawDataCollectionReadOut::RODinput ( ) const
inline

Definition at line 105 of file ALFA_RawDataCollectionReadOut.h.

105 {return m_RODinput;}

◆ setBits() [1/2]

uint32_t ALFA_ReadOut::setBits ( uint16_t  nData,
uint16_t *  inputData,
uint16_t *  inputPos 
)
protectedinherited

◆ setBits() [2/2]

uint32_t ALFA_ReadOut::setBits ( uint16_t  nData,
uint32_t *  inputData,
uint16_t *  inputPos 
)
protectedinherited

◆ setZero()

void ALFA_RawDataCollectionReadOut::setZero ( )
private

Definition at line 70 of file ALFA_RawDataCollectionReadOut.cxx.

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 }

Member Data Documentation

◆ m_BOLflag

uint16_t ALFA_RawDataCollectionReadOut::m_BOLflag
private

Definition at line 53 of file ALFA_RawDataCollectionReadOut.h.

◆ m_clwc

uint32_t ALFA_RawDataCollectionReadOut::m_clwc
private

Definition at line 44 of file ALFA_RawDataCollectionReadOut.h.

◆ m_ctwc

uint16_t ALFA_RawDataCollectionReadOut::m_ctwc
private

Definition at line 51 of file ALFA_RawDataCollectionReadOut.h.

◆ m_dataWord

uint32_t ALFA_RawDataCollectionReadOut::m_dataWord
private

Definition at line 37 of file ALFA_RawDataCollectionReadOut.h.

◆ m_ecnt_EOB

uint16_t ALFA_RawDataCollectionReadOut::m_ecnt_EOB
private

Definition at line 49 of file ALFA_RawDataCollectionReadOut.h.

◆ m_ecnt_LWC

uint16_t ALFA_RawDataCollectionReadOut::m_ecnt_LWC
private

Definition at line 47 of file ALFA_RawDataCollectionReadOut.h.

◆ m_ecnt_TWC

uint16_t ALFA_RawDataCollectionReadOut::m_ecnt_TWC
private

Definition at line 48 of file ALFA_RawDataCollectionReadOut.h.

◆ m_ftyp

uint16_t ALFA_RawDataCollectionReadOut::m_ftyp
private

Definition at line 45 of file ALFA_RawDataCollectionReadOut.h.

◆ m_KaptId

uint32_t ALFA_RawDataCollectionReadOut::m_KaptId
private

Definition at line 57 of file ALFA_RawDataCollectionReadOut.h.

◆ m_lvl1Id

uint32_t ALFA_RawDataCollectionReadOut::m_lvl1Id
private

Definition at line 43 of file ALFA_RawDataCollectionReadOut.h.

◆ m_MrodNum

uint16_t ALFA_RawDataCollectionReadOut::m_MrodNum
private

Definition at line 55 of file ALFA_RawDataCollectionReadOut.h.

◆ m_RODinput

uint16_t ALFA_RawDataCollectionReadOut::m_RODinput
private

Definition at line 56 of file ALFA_RawDataCollectionReadOut.h.

◆ m_word

uint32_t ALFA_ReadOut::m_word
protectedinherited

Definition at line 40 of file ALFA_ReadOut.h.

◆ m_wordHeader

uint16_t ALFA_RawDataCollectionReadOut::m_wordHeader
private

Definition at line 38 of file ALFA_RawDataCollectionReadOut.h.

◆ m_wordHeader2

uint16_t ALFA_RawDataCollectionReadOut::m_wordHeader2
private

Definition at line 39 of file ALFA_RawDataCollectionReadOut.h.

◆ s_BOBvalue

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_BOBvalue = 0x80
staticconstexprprivate

Definition at line 70 of file ALFA_RawDataCollectionReadOut.h.

◆ s_BOLvalue

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_BOLvalue = 0x18
staticconstexprprivate

Definition at line 74 of file ALFA_RawDataCollectionReadOut.h.

◆ s_EOBvalue

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_EOBvalue = 0xf0
staticconstexprprivate

Definition at line 80 of file ALFA_RawDataCollectionReadOut.h.

◆ s_headerBits

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_headerBits = 0xff
staticconstexprprivate

Definition at line 62 of file ALFA_RawDataCollectionReadOut.h.

◆ s_headerBits2

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_headerBits2 = 0xfff
staticconstexprprivate

Definition at line 67 of file ALFA_RawDataCollectionReadOut.h.

◆ s_headerPos

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_headerPos = 24
staticconstexprprivate

Definition at line 61 of file ALFA_RawDataCollectionReadOut.h.

◆ s_headerPos2

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_headerPos2 = 20
staticconstexprprivate

Definition at line 66 of file ALFA_RawDataCollectionReadOut.h.

◆ s_LWCvalue

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_LWCvalue = 0x810
staticconstexprprivate

Definition at line 72 of file ALFA_RawDataCollectionReadOut.h.

◆ s_TLPvalue

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_TLPvalue = 0x890
staticconstexprprivate

Definition at line 76 of file ALFA_RawDataCollectionReadOut.h.

◆ s_TWCvalue

constexpr uint16_t ALFA_RawDataCollectionReadOut::s_TWCvalue = 0x8a
staticconstexprprivate

Definition at line 78 of file ALFA_RawDataCollectionReadOut.h.


The documentation for this class was generated from the following files:
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::s_EOBvalue
static constexpr uint16_t s_EOBvalue
Definition: ALFA_RawDataCollectionReadOut.h:80
ALFA_RawDataCollectionReadOut::m_MrodNum
uint16_t m_MrodNum
Definition: ALFA_RawDataCollectionReadOut.h:55
ALFA_RawDataCollectionReadOut::s_BOLvalue
static constexpr uint16_t s_BOLvalue
Definition: ALFA_RawDataCollectionReadOut.h:74
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::s_TWCvalue
static constexpr uint16_t s_TWCvalue
Definition: ALFA_RawDataCollectionReadOut.h:78
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
lumiFormat.i
int i
Definition: lumiFormat.py:85
ALFA_RawDataCollectionReadOut::s_LWCvalue
static constexpr uint16_t s_LWCvalue
Definition: ALFA_RawDataCollectionReadOut.h:72
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::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_RawDataCollectionReadOut::s_BOBvalue
static constexpr uint16_t s_BOBvalue
Definition: ALFA_RawDataCollectionReadOut.h:70
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::s_TLPvalue
static constexpr uint16_t s_TLPvalue
Definition: ALFA_RawDataCollectionReadOut.h:76
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