CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
UCTDAQRawData Class Reference

#include <UCTDAQRawData.h>

Public Member Functions

uint32_t amc13BlockNo ()
 
uint32_t amc13BXID ()
 
uint32_t amc13CRC32 ()
 
uint32_t amc13L1ID ()
 
const uint64_t * amc13TrailerPtr ()
 
uint32_t amcBlkNo (uint32_t amc=0)
 
uint32_t amcNo (uint32_t amc=0)
 
const uint32_t * amcPayload (uint32_t amc)
 
uint32_t amcSize (uint32_t amc=0)
 
uint32_t boardID (uint32_t amc=0)
 
uint32_t BXID ()
 
const uint64_t * cdfHeader () const
 
const uint64_t * cdfTrailerPtr ()
 
uint32_t crc16 ()
 
bool crcError (uint32_t amc=0)
 
bool crcModified ()
 
const uint64_t * dataPtr () const
 
uint32_t eventLength ()
 
uint32_t eventStatus ()
 
uint32_t eventType ()
 
uint32_t FOV ()
 
bool isEnabled (uint32_t amc=0)
 
bool isLastTrailerWord ()
 
bool isPresent (uint32_t amc=0)
 
bool isSegmented (uint32_t amc=0)
 
bool isSLinkErrorDetectedByFRL ()
 
bool isValid (uint32_t amc=0)
 
bool isWrongFEDID ()
 
uint32_t L1ID ()
 
bool lengthError (uint32_t amc=0)
 
bool more (uint32_t amc=0)
 
uint32_t nAMCs ()
 
uint32_t orbitNumber ()
 
void print ()
 
uint32_t sourceID ()
 
uint32_t ttsBits ()
 
 UCTDAQRawData (const uint64_t *d)
 
uint32_t uFOV ()
 
virtual ~UCTDAQRawData ()
 

Private Member Functions

const UCTDAQRawDataoperator= (const UCTDAQRawData &i)
 
 UCTDAQRawData (const UCTDAQRawData &)
 

Private Attributes

const uint64_t * myDataPtr
 

Detailed Description

Definition at line 12 of file UCTDAQRawData.h.

Constructor & Destructor Documentation

UCTDAQRawData::UCTDAQRawData ( const uint64_t *  d)
inline

Definition at line 15 of file UCTDAQRawData.h.

15  : myDataPtr(d) {
16  if(d != 0) {
17  if((d[0] & 0x5000000000000000) != 0x5000000000000000) {
18  LogError("UCTDAQRawData") << "CDF Header does not seem to be correct"
19  << std::showbase << std::internal
20  << std::setfill('0') << std::setw(10)
21  << std::hex
22  << d[0]
23  << "; but continuing!"
24  << std::endl;
25  }
26  }
27  }
const uint64_t * myDataPtr
tuple d
Definition: ztail.py:151
virtual UCTDAQRawData::~UCTDAQRawData ( )
inlinevirtual

Definition at line 29 of file UCTDAQRawData.h.

29 {;}
UCTDAQRawData::UCTDAQRawData ( const UCTDAQRawData )
private

Member Function Documentation

uint32_t UCTDAQRawData::amc13BlockNo ( )
inline

Definition at line 167 of file UCTDAQRawData.h.

References data.

167  {
168  const uint64_t *data = amc13TrailerPtr();
169  return ((data[0] & 0x000000000FF00000) >> 20);
170  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::amc13BXID ( )
inline

Definition at line 157 of file UCTDAQRawData.h.

References data.

157  {
158  const uint64_t *data = amc13TrailerPtr();
159  return (data[0] & 0x0000000000000FFF);
160  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::amc13CRC32 ( )
inline

Definition at line 172 of file UCTDAQRawData.h.

References data.

172  {
173  const uint64_t *data = amc13TrailerPtr();
174  return ((data[0] & 0xFFFFFFFF00000000) >> 32);
175  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::amc13L1ID ( )
inline

Definition at line 162 of file UCTDAQRawData.h.

References data.

162  {
163  const uint64_t *data = amc13TrailerPtr();
164  return ((data[0] & 0x00000000000FF000) >> 12);
165  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
const uint64_t* UCTDAQRawData::amc13TrailerPtr ( )
inline

Definition at line 149 of file UCTDAQRawData.h.

References i, and createPayload::skip.

149  {
150  uint32_t skip = 2;
151  for(uint32_t i = 0; i < nAMCs(); i++) {
152  skip += (1 + amcSize(i));
153  }
154  return &myDataPtr[skip];
155  }
int i
Definition: DBlmapReader.cc:9
const uint64_t * myDataPtr
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:72
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t UCTDAQRawData::amcBlkNo ( uint32_t  amc = 0)
inline

Definition at line 64 of file UCTDAQRawData.h.

References amc.

64  {
65  if(amc < nAMCs()) {
66  return ((myDataPtr[2+amc] & 0x000000000FF00000) >> 20);
67  }
68  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch amc block no for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
69  return 0xDEADBEEF;
70  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t UCTDAQRawData::amcNo ( uint32_t  amc = 0)
inline

Definition at line 56 of file UCTDAQRawData.h.

References amc.

56  {
57  if(amc < nAMCs()) {
58  return ((myDataPtr[2+amc] & 0x00000000000F0000) >> 16);
59  }
60  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch amc no for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
61  return 0xDEADBEEF;
62  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
const uint32_t* UCTDAQRawData::amcPayload ( uint32_t  amc)
inline

Definition at line 136 of file UCTDAQRawData.h.

References amc, i, and createPayload::skip.

Referenced by L1TCaloLayer1RawToDigi::produce().

136  {
137  if(amc < nAMCs()) {
138  // Number of 64-bit words to skip
139  uint32_t skip = 2 + nAMCs();
140  for(uint32_t i = 0; i < amc; i++) {
141  skip += amcSize(i);
142  }
143  return (uint32_t *) &myDataPtr[skip];
144  }
145  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch payload location for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
146  return 0x0;
147  }
int i
Definition: DBlmapReader.cc:9
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:72
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t UCTDAQRawData::amcSize ( uint32_t  amc = 0)
inline

Definition at line 72 of file UCTDAQRawData.h.

References amc.

72  {
73  if(amc < nAMCs()) {
74  return ((myDataPtr[2+amc] & 0x00FFFFFF00000000) >> 32);
75  }
76  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch amc size for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
77  return 0xDEADBEEF;
78  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t UCTDAQRawData::boardID ( uint32_t  amc = 0)
inline

Definition at line 48 of file UCTDAQRawData.h.

References amc.

48  {
49  if(amc < nAMCs()) {
50  return myDataPtr[2+amc] & 0x000000000000FFFF;
51  }
52  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch board ID for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
53  return 0xDEADBEEF;
54  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t UCTDAQRawData::BXID ( )
inline

Definition at line 39 of file UCTDAQRawData.h.

39 {return ((myDataPtr[0] & 0x00000000FFF00000) >> 20);}
const uint64_t * myDataPtr
const uint64_t* UCTDAQRawData::cdfHeader ( ) const
inline

Definition at line 35 of file UCTDAQRawData.h.

35 {return &myDataPtr[0];}
const uint64_t * myDataPtr
const uint64_t* UCTDAQRawData::cdfTrailerPtr ( )
inline

Definition at line 177 of file UCTDAQRawData.h.

References data, i, and createPayload::skip.

177  {
178  uint32_t skip = 2;
179  for(uint32_t i = 0; i < nAMCs(); i++) {
180  skip += (1 + amcSize(i));
181  }
182  skip++;
183  const uint64_t *data = &myDataPtr[skip];
184  if((data[0] & 0xF000000000000000) != 0xA000000000000000) {
185  LogError("UCTDAQRawData") << "CDF Trailer seems to be wrong : "
186  << std::showbase << std::internal
187  << std::setfill('0') << std::setw(10)
188  << std::hex
189  << data[1]
190  << std::endl;
191  }
192  return data;
193  }
int i
Definition: DBlmapReader.cc:9
const uint64_t * myDataPtr
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:72
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::crc16 ( )
inline

Definition at line 225 of file UCTDAQRawData.h.

References data.

225  {
226  const uint64_t *data = cdfTrailerPtr();
227  return ((data[0] & 0x00000000FFFF0000) >> 16);
228  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
bool UCTDAQRawData::crcError ( uint32_t  amc = 0)
inline

Definition at line 80 of file UCTDAQRawData.h.

References amc.

80  {
81  if(amc < nAMCs()) {
82  return ((myDataPtr[2+amc] & 0x0100000000000000) != 0);
83  }
84  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch crcError-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
85  return false;
86  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
bool UCTDAQRawData::crcModified ( )
inline

Definition at line 195 of file UCTDAQRawData.h.

References data.

195  {
196  const uint64_t *data = cdfTrailerPtr();
197  return ((data[0] & 0x0000000000000004) == 1);
198  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
const uint64_t* UCTDAQRawData::dataPtr ( ) const
inline

Definition at line 33 of file UCTDAQRawData.h.

33 {return myDataPtr;}
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::eventLength ( )
inline

Definition at line 230 of file UCTDAQRawData.h.

References data.

230  {
231  const uint64_t *data = cdfTrailerPtr();
232  return ((data[0] & 0x00FFFFFF00000000) >> 32);
233  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::eventStatus ( )
inline

Definition at line 210 of file UCTDAQRawData.h.

References data.

210  {
211  const uint64_t *data = cdfTrailerPtr();
212  return ((data[0] & 0x0000000000000F00) >> 8);
213  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::eventType ( )
inline

Definition at line 41 of file UCTDAQRawData.h.

41 {return ((myDataPtr[0] & 0x0F00000000000000) >> 56);}
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::FOV ( )
inline

Definition at line 37 of file UCTDAQRawData.h.

37 {return ((myDataPtr[0] & 0x00000000000000F0) >> 4);}
const uint64_t * myDataPtr
bool UCTDAQRawData::isEnabled ( uint32_t  amc = 0)
inline

Definition at line 104 of file UCTDAQRawData.h.

References amc.

104  {
105  if(amc < nAMCs()) {
106  return ((myDataPtr[2+amc] & 0x0800000000000000) != 0);
107  }
108  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isEnabled-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
109  return false;
110  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
bool UCTDAQRawData::isLastTrailerWord ( )
inline

Definition at line 200 of file UCTDAQRawData.h.

References data.

200  {
201  const uint64_t *data = cdfTrailerPtr();
202  return ((data[0] & 0x0000000000000008) == 1);
203  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
bool UCTDAQRawData::isPresent ( uint32_t  amc = 0)
inline

Definition at line 96 of file UCTDAQRawData.h.

References amc.

96  {
97  if(amc < nAMCs()) {
98  return ((myDataPtr[2+amc] & 0x0400000000000000) != 0);
99  }
100  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isPresent-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
101  return false;
102  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
bool UCTDAQRawData::isSegmented ( uint32_t  amc = 0)
inline

Definition at line 112 of file UCTDAQRawData.h.

References amc.

112  {
113  if(amc < nAMCs()) {
114  return ((myDataPtr[2+amc] & 0x1000000000000000) != 0);
115  }
116  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isSegmented-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
117  return false;
118  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
bool UCTDAQRawData::isSLinkErrorDetectedByFRL ( )
inline

Definition at line 220 of file UCTDAQRawData.h.

References data.

220  {
221  const uint64_t *data = cdfTrailerPtr();
222  return ((data[0] & 0x0000000000008000) == 1);
223  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
bool UCTDAQRawData::isValid ( uint32_t  amc = 0)
inline

Definition at line 88 of file UCTDAQRawData.h.

References amc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

88  {
89  if(amc < nAMCs()) {
90  return ((myDataPtr[2+amc] & 0x0200000000000000) != 0);
91  }
92  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isValid-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
93  return false;
94  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
bool UCTDAQRawData::isWrongFEDID ( )
inline

Definition at line 215 of file UCTDAQRawData.h.

References data.

215  {
216  const uint64_t *data = cdfTrailerPtr();
217  return ((data[0] & 0x0000000000004000) == 1);
218  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::L1ID ( )
inline

Definition at line 40 of file UCTDAQRawData.h.

40 {return ((myDataPtr[0] & 0x00FFFFFF00000000) >> 32);}
const uint64_t * myDataPtr
bool UCTDAQRawData::lengthError ( uint32_t  amc = 0)
inline

Definition at line 128 of file UCTDAQRawData.h.

References amc.

128  {
129  if(amc < nAMCs()) {
130  return ((myDataPtr[2+amc] & 0x4000000000000000) != 0);
131  }
132  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch length error bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
133  return false;
134  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
bool UCTDAQRawData::more ( uint32_t  amc = 0)
inline

Definition at line 120 of file UCTDAQRawData.h.

References amc.

120  {
121  if(amc < nAMCs()) {
122  return ((myDataPtr[2+amc] & 0x2000000000000000) != 0);
123  }
124  LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch more-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
125  return false;
126  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t UCTDAQRawData::nAMCs ( )
inline

Definition at line 45 of file UCTDAQRawData.h.

Referenced by L1TCaloLayer1RawToDigi::produce().

45 {return ((myDataPtr[1] & 0x00F0000000000000) >> 52);}
const uint64_t * myDataPtr
const UCTDAQRawData& UCTDAQRawData::operator= ( const UCTDAQRawData i)
private
uint32_t UCTDAQRawData::orbitNumber ( )
inline

Definition at line 42 of file UCTDAQRawData.h.

42  {
43  return ((myDataPtr[1] & 0x0000000FFFFFFFF0) >> 4);
44  }
const uint64_t * myDataPtr
void UCTDAQRawData::print ( void  )
inline

Definition at line 235 of file UCTDAQRawData.h.

References TauDecayModes::dec, stage2BMTFBufferRaw_cfi::eventType, i, and LogDebug.

Referenced by L1TCaloLayer1RawToDigi::produce().

235  {
236  using namespace std;
237  LogDebug("UCTDAQRawData") << "Common cDAQ/AMC13 Data Header:" << endl;
238  LogDebug("UCTDAQRawData") << "Framework Version = " << internal << setfill('0') << setw(3) << hex << FOV() << endl;
239  LogDebug("UCTDAQRawData") << "sourceID......... = " << dec << sourceID() << endl;
240  LogDebug("UCTDAQRawData") << "BXID............. = " << dec << BXID() << endl;
241  LogDebug("UCTDAQRawData") << "L1ID............. = " << internal << setfill('0') << setw(8) << hex << L1ID() << endl;
242  LogDebug("UCTDAQRawData") << "eventType........ = " << internal << setfill('0') << setw(3) << hex << eventType() << endl;
243  LogDebug("UCTDAQRawData") << "orbitNo.......... = " << dec << orbitNumber() << endl;
244  LogDebug("UCTDAQRawData") << "uFOV............. = " << internal << setfill('0') << setw(8) << hex << uFOV() << endl;
245  LogDebug("UCTDAQRawData") << "# of CTP7s....... = " << dec << nAMCs() << endl;
246  LogDebug("UCTDAQRawData") << "Phi SlotNo BlockNo Size CRC? Valid? Present? Enabled? Segmented? More? LengthError?" << endl;
247  for(uint32_t i = 0; i < nAMCs(); i++) {
248  LogDebug("UCTDAQRawData") << dec << setfill(' ') << setw(3) << boardID(i) << " "
249  << dec << setfill(' ') << setw(6) << amcNo(i) << " "
250  << dec << setfill(' ') << setw(7) << amcBlkNo(i) << " "
251  << dec << setfill(' ') << setw(8) << amcSize(i) << " "
252  << " " << crcError(i) << " "
253  << " " << isValid(i) << " "
254  << " " << isPresent(i) << " "
255  << " " << isEnabled(i) << " "
256  << " " << isSegmented(i) << " "
257  << " " << more(i) << " "
258  << " " << lengthError(i) << endl;
259  }
260  LogDebug("UCTDAQRawData") << "AMC13 Trailer:" << endl;
261  LogDebug("UCTDAQRawData") << "AMC13 BXID....... = " << dec << amc13BXID() << endl;
262  LogDebug("UCTDAQRawData") << "AMC13 L1ID....... = " << dec << amc13L1ID() << endl;
263  LogDebug("UCTDAQRawData") << "AMC13 BlockNo.... = " << dec << amc13BlockNo() << endl;
264  LogDebug("UCTDAQRawData") << "AMC13 CRC32...... = " << internal << setfill('0') << setw(10) << hex << amc13BXID() << endl;
265  LogDebug("UCTDAQRawData") << "Common DAQ Trailer:" << endl;
266  LogDebug("UCTDAQRawData") << "CRC Modified?.... = " << crcModified() << endl;
267  LogDebug("UCTDAQRawData") << "Last Trailer Word?= " << isLastTrailerWord() << endl;
268  LogDebug("UCTDAQRawData") << "ttsBits.......... = " << internal << setfill('0') << setw(3) << hex << ttsBits() << endl;
269  LogDebug("UCTDAQRawData") << "Event Status..... = " << internal << setfill('0') << setw(3) << hex << eventStatus() << endl;
270  LogDebug("UCTDAQRawData") << "Wrong FED ID?.... = " << isWrongFEDID() << endl;
271  LogDebug("UCTDAQRawData") << "SLink Error?..... = " << isSLinkErrorDetectedByFRL() << endl;
272  LogDebug("UCTDAQRawData") << "CRC 16........... = " << internal << setfill('0') << setw(6) << hex << crc16() << endl;
273  LogDebug("UCTDAQRawData") << "Event Length..... = " << dec << eventLength() << endl;
274  }
#define LogDebug(id)
uint32_t sourceID()
Definition: UCTDAQRawData.h:38
uint32_t amc13BlockNo()
int i
Definition: DBlmapReader.cc:9
uint32_t eventType()
Definition: UCTDAQRawData.h:41
uint32_t BXID()
Definition: UCTDAQRawData.h:39
bool isPresent(uint32_t amc=0)
Definition: UCTDAQRawData.h:96
uint32_t amc13L1ID()
bool crcError(uint32_t amc=0)
Definition: UCTDAQRawData.h:80
uint32_t eventStatus()
uint32_t L1ID()
Definition: UCTDAQRawData.h:40
uint32_t boardID(uint32_t amc=0)
Definition: UCTDAQRawData.h:48
bool isEnabled(uint32_t amc=0)
bool isLastTrailerWord()
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:72
bool isSegmented(uint32_t amc=0)
uint32_t amcBlkNo(uint32_t amc=0)
Definition: UCTDAQRawData.h:64
uint32_t nAMCs()
Definition: UCTDAQRawData.h:45
uint32_t amc13BXID()
bool isSLinkErrorDetectedByFRL()
bool lengthError(uint32_t amc=0)
bool isWrongFEDID()
uint32_t amcNo(uint32_t amc=0)
Definition: UCTDAQRawData.h:56
uint32_t uFOV()
Definition: UCTDAQRawData.h:46
uint32_t FOV()
Definition: UCTDAQRawData.h:37
uint32_t orbitNumber()
Definition: UCTDAQRawData.h:42
bool crcModified()
uint32_t eventLength()
bool isValid(uint32_t amc=0)
Definition: UCTDAQRawData.h:88
bool more(uint32_t amc=0)
uint32_t crc16()
uint32_t ttsBits()
uint32_t UCTDAQRawData::sourceID ( )
inline

Definition at line 38 of file UCTDAQRawData.h.

38 {return ((myDataPtr[0] & 0x00000000000FFF00) >> 8);}
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::ttsBits ( )
inline

Definition at line 205 of file UCTDAQRawData.h.

References data.

205  {
206  const uint64_t *data = cdfTrailerPtr();
207  return ((data[0] & 0x00000000000000F0) >> 4);
208  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:15
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint32_t UCTDAQRawData::uFOV ( )
inline

Definition at line 46 of file UCTDAQRawData.h.

46 {return ((myDataPtr[1] & 0xF000000000000000) >> 60);}
const uint64_t * myDataPtr

Member Data Documentation

const uint64_t* UCTDAQRawData::myDataPtr
private

Definition at line 285 of file UCTDAQRawData.h.