ATLAS Offline Software
Loading...
Searching...
No Matches
RXReadOutStructure.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigT1RPChardware_RXReadOutStructure_H
6#define TrigT1RPChardware_RXReadOutStructure_H
7
13
15public:
19 RXReadOutStructure(ubit16 inputData, DataVersion vers = Atlas);
21 void setInit();
22 //
23 ubit16 makeHeader(ubit16 *inputData);
24 ubit16 makeSubHeader() { return 0; };
25 // ubit16 makeBody(ubit16 *inputData) {return (*inputData)&0x0;};
26 ubit16 makeBody(ubit16 *inputData) { return *inputData; };
29
30 //**************************************************//
31 // general user methods to decode ReadOut stream //
32 //**************************************************//
33 ubit16 RXid() { return m_secid; };
34 ubit16 status() { return m_status; };
36 ubit16 decodeFragment(ubit16 inputWord, char &field);
37
38 bool isHeader();
39 bool isBody() { return false; };
40 bool isFooter();
41 //
42private:
43 //
48 //
49 // some static parameter describing the structure
50 //
51 static const ubit16 s_headerNum = 3;
52 static const ubit16 s_headerPos[s_headerNum];
53 static const ubit16 s_headerLen[s_headerNum];
54 static const ubit16 s_headerVal;
55 static const ubit16 s_footerNum = 2;
56 static const ubit16 s_footerPos[s_footerNum];
57 static const ubit16 s_footerLen[s_footerNum];
58 static const ubit16 s_footerVal;
59}; // end-of-class RXReadOutStructure
60
61#endif
unsigned short int ubit16
RPCReadOut()=default
char field() const
Definition RPCReadOut.h:19
static const ubit16 s_footerLen[s_footerNum]
ubit16 makeHeader(ubit16 *inputData)
ubit16 makeFooter(ubit16 errorCode)
static const ubit16 s_headerNum
ubit16 decodeFragment(ubit16 inputWord, char &field)
~RXReadOutStructure()=default
static const ubit16 s_footerNum
static const ubit16 s_footerPos[s_footerNum]
static const ubit16 s_headerLen[s_headerNum]
static const ubit16 s_footerVal
static const ubit16 s_headerPos[s_headerNum]
RXReadOutStructure(DataVersion vers=Atlas)
static const ubit16 s_headerVal
ubit16 makeBody(ubit16 *inputData)