ATLAS Offline Software
Loading...
Searching...
No Matches
SectorLogicReadOutStructure.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_SectorLogicReadOutStructure_H
6#define TrigT1RPChardware_SectorLogicReadOutStructure_H
7
10
12public:
16
17 void setInit();
18 //
19 ubit16 makeHeader(ubit16 *inputData);
20 ubit16 makeSubHeader() { return 0; };
21 ubit16 makeBody(ubit16 *inputData) { return (*inputData) & 0x0; };
22 ubit16 makeFooter(ubit16 errorCode) { return errorCode & 0x0; };
23 ubit16 makeFooter(ubit16 *errorCode);
24
25 //**************************************************//
26 // general user methods to decode ReadOut stream //
27 //**************************************************//
28 ubit16 decodeFragment(ubit16 inputWord, char &field);
29 //
30 bool isHeader();
31 bool isBody();
32 bool isFooter();
33 //
34private:
35 //
36 // header
38 // footer
40 //
41 // internal objects;
42 //
43 //
44 // some static parameter describing the structure
45 //
46
47 static constexpr ubit16 s_headerNum = 2;
48 static constexpr std::array<ubit16, s_headerNum> s_headerPos{12, 0};
49 static constexpr std::array<ubit16, s_headerNum> s_headerLen{4, 12};
50 static constexpr ubit16 s_headerVal = 0x000d;
51
52 static constexpr ubit16 s_footerNum = 2;
53 static constexpr std::array<ubit16, s_footerNum> s_footerPos{12, 0};
54 static constexpr std::array<ubit16, s_footerNum> s_footerLen{4, 12};
55 static constexpr ubit16 s_footerVal = 0x000f;
56 //
57};
58
59#endif
unsigned short int ubit16
RPCReadOut()=default
char field() const
Definition RPCReadOut.h:19
static constexpr std::array< ubit16, s_headerNum > s_headerLen
static constexpr std::array< ubit16, s_footerNum > s_footerLen
static constexpr std::array< ubit16, s_headerNum > s_headerPos
~SectorLogicReadOutStructure()=default
static constexpr std::array< ubit16, s_footerNum > s_footerPos
ubit16 decodeFragment(ubit16 inputWord, char &field)