ATLAS Offline Software
Loading...
Searching...
No Matches
RPCRODStructure.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_RPCRODStructure_H
6#define TrigT1RPChardware_RPCRODStructure_H
7
15
17public:
19 RPCRODStructure(ubit16 inputData);
21 void decodeSourceID(RODword sourceID);
26 //
27 // ubit16 makeHeader(ubit16 *inputData){return (*inputData)&0x0;};
28 ubit16 makeHeader(ubit16 *inputData) { return *inputData; };
29 ubit16 makeSubHeader() { return 0; };
30 // ubit16 makeBody(ubit16 *inputData) {return (*inputData)&0x0;};
31 ubit16 makeBody(ubit16 *inputData) { return *inputData; };
32 // ubit16 makeFooter(ubit16 errorCode){return errorCode&0x0;};
33 ubit16 makeFooter(ubit16 errorCode) { return errorCode; };
34 ubit16 makeFooter(ubit16 *errorCode) { return (*errorCode) & 0x0; };
35 //**************************************************//
36 // general user methods to decode ReadOut stream //
37 //**************************************************//
38 // ubit16 decodeFragment(ubit16 inputWord, char &field);
39 bool isHeader() { return false; };
40 bool isBody() { return false; };
41 bool isFooter() { return false; };
42 //
47 RODword getSourceID(ubit16 subsystem, ubit16 RODID);
49
50private:
55 //
56 // some static parameter describing the structure
57 //
58 static const RODword s_headerMarker = 0xee1234ee;
59 static const RODword s_headerSize = 8;
60 static const RODword s_formatVersion = 0x00000000;
61 // parameters needed to define SourceID
62 static const ubit16 s_sourceIDreserved = 0x00;
63 static const ubit16 s_moduleType = 0x00;
64 static const ubit16 s_subDetectorIDA = 0x65;
65 static const ubit16 s_subDetectorIDC = 0x66;
66 //
67 static const ubit16 s_emptyDataWord = 0xf000;
68 //
69 // some auxiliary parameters
70 //
71 static const RODword s_footerSize = 3;
72 //
73 void setInit();
75}; // end-of-class RPCRODStructure
76
77#endif
uint32_t RODword
Definition Lvl1Def.h:18
unsigned short int ubit16
RODword getHeaderSize()
RODword getSourceID(ubit16 subsystem, ubit16 RODID)
ubit16 makeBody(ubit16 *inputData)
ubit16 getSourceIDSubdetectorID()
ubit16 getEmptyDataWord()
ubit16 getSourceIDRODID()
static const ubit16 s_moduleType
static const ubit16 s_subDetectorIDC
static const RODword s_footerSize
static const RODword s_headerMarker
ubit16 getSourceIDModuleType()
static const ubit16 s_sourceIDreserved
static const RODword s_headerSize
ubit16 makeHeader(ubit16 *inputData)
static const ubit16 s_emptyDataWord
RODword getFormatVersion()
void decodeSourceID(RODword sourceID)
ubit16 getSourceIDReserved()
static const RODword s_formatVersion
ubit16 makeFooter(ubit16 errorCode)
RODword getHeaderMarker()
static const ubit16 s_subDetectorIDA
ubit16 getSubDetectorID(ubit16 subsystem)
RODword getFooterSize()
ubit16 makeFooter(ubit16 *errorCode)
RPCReadOut()=default