ATLAS Offline Software
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 
15 public:
17 
19  RXReadOutStructure(ubit16 inputData, DataVersion vers = Atlas);
20  ~RXReadOutStructure() = default;
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; };
35  ubit16 errorCode() { return m_errorCode; };
36  ubit16 decodeFragment(ubit16 inputWord, char &field);
37 
38  bool isHeader();
39  bool isBody() { return false; };
40  bool isFooter();
41  //
42 private:
43  //
48  //
49  // some static parameter describing the structure
50  //
51  static const ubit16 s_headerNum = 3;
54  static const ubit16 s_headerVal;
55  static const ubit16 s_footerNum = 2;
58  static const ubit16 s_footerVal;
59 }; // end-of-class RXReadOutStructure
60 
61 #endif
RXReadOutStructure::status
ubit16 status()
Definition: RXReadOutStructure.h:34
RXReadOutStructure::Atlas
@ Atlas
Definition: RXReadOutStructure.h:16
RXReadOutStructure::s_headerLen
static const ubit16 s_headerLen[s_headerNum]
Definition: RXReadOutStructure.h:53
PadReadOutStructure.h
RXReadOutStructure::~RXReadOutStructure
~RXReadOutStructure()=default
RXReadOutStructure::makeSubHeader
ubit16 makeSubHeader()
Definition: RXReadOutStructure.h:24
RPCReadOut.h
RXReadOutStructure::m_dataVersion
DataVersion m_dataVersion
Definition: RXReadOutStructure.h:47
RXReadOutStructure::s_footerVal
static const ubit16 s_footerVal
Definition: RXReadOutStructure.h:58
RXReadOutStructure::makeBody
ubit16 makeBody(ubit16 *inputData)
Definition: RXReadOutStructure.h:26
RXReadOutStructure::s_headerNum
static const ubit16 s_headerNum
Definition: RXReadOutStructure.h:51
RXReadOutStructure::m_secid
ubit16 m_secid
Definition: RXReadOutStructure.h:44
RXReadOutStructure::RXReadOutStructure
RXReadOutStructure(DataVersion vers=Atlas)
Definition: RXReadOutStructure.cxx:24
RXReadOutStructure::isBody
bool isBody()
Definition: RXReadOutStructure.h:39
RXReadOutStructure::errorCode
ubit16 errorCode()
Definition: RXReadOutStructure.h:35
RXReadOutStructure::s_headerVal
static const ubit16 s_headerVal
Definition: RXReadOutStructure.h:54
RXReadOutStructure::makeFooter
ubit16 makeFooter(ubit16 errorCode)
Definition: RXReadOutStructure.cxx:55
Lvl1Def.h
RXReadOutStructure::makeHeader
ubit16 makeHeader(ubit16 *inputData)
Definition: RXReadOutStructure.cxx:47
RXReadOutStructure::setInit
void setInit()
Definition: RXReadOutStructure.cxx:39
RPCReadOut::field
char field() const
Definition: RPCReadOut.h:19
RXReadOutStructure::decodeFragment
ubit16 decodeFragment(ubit16 inputWord, char &field)
Definition: RXReadOutStructure.cxx:78
RXReadOutStructure::m_errorCode
ubit16 m_errorCode
Definition: RXReadOutStructure.h:46
RXReadOutStructure::s_headerPos
static const ubit16 s_headerPos[s_headerNum]
Definition: RXReadOutStructure.h:52
RXReadOutStructure::m_status
ubit16 m_status
Definition: RXReadOutStructure.h:45
RXReadOutStructure::s_footerNum
static const ubit16 s_footerNum
Definition: RXReadOutStructure.h:55
RXReadOutStructure::DataVersion
DataVersion
Definition: RXReadOutStructure.h:16
RXReadOutStructure
Definition: RXReadOutStructure.h:14
MatrixReadOutStructure.h
RXReadOutStructure::isFooter
bool isFooter()
Definition: RXReadOutStructure.cxx:71
RXReadOutStructure::Simulation1
@ Simulation1
Definition: RXReadOutStructure.h:16
RXReadOutStructure::RXid
ubit16 RXid()
Definition: RXReadOutStructure.h:33
RXReadOutStructure::s_footerPos
static const ubit16 s_footerPos[s_footerNum]
Definition: RXReadOutStructure.h:56
ubit16
unsigned short int ubit16
Definition: RpcByteStreamEncoder.h:20
RPCReadOut
Definition: RPCReadOut.h:13
MatrixReadOut.h
RXReadOutStructure::Simulation0
@ Simulation0
Definition: RXReadOutStructure.h:16
RXReadOutStructure::s_footerLen
static const ubit16 s_footerLen[s_footerNum]
Definition: RXReadOutStructure.h:57
RXReadOutStructure::isHeader
bool isHeader()
Definition: RXReadOutStructure.cxx:64
Atlas
Definition: ExtendedEventContext.h:21