CMS 3D CMS Logo

List of all members | Public 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 ()
 
const UCTDAQRawDataoperator= (const UCTDAQRawData &i)=delete
 
uint32_t orbitNumber ()
 
void print ()
 
uint32_t sourceID ()
 
uint32_t ttsBits ()
 
 UCTDAQRawData (const uint64_t *d)
 
 UCTDAQRawData (const UCTDAQRawData &)=delete
 
uint32_t uFOV ()
 
virtual ~UCTDAQRawData ()
 

Private Attributes

const uint64_t * myDataPtr
 

Detailed Description

Definition at line 11 of file UCTDAQRawData.h.

Constructor & Destructor Documentation

◆ UCTDAQRawData() [1/2]

UCTDAQRawData::UCTDAQRawData ( const uint64_t *  d)
inline

Definition at line 13 of file UCTDAQRawData.h.

References ztail::d.

13  : myDataPtr(d) {
14  if (d != nullptr) {
15  if ((d[0] & 0x5000000000000000) != 0x5000000000000000) {
16  edm::LogError("UCTDAQRawData") << "CDF Header does not seem to be correct" << std::showbase << std::internal
17  << std::setfill('0') << std::setw(10) << std::hex << d[0] << "; but continuing!"
18  << std::endl;
19  }
20  }
21  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
d
Definition: ztail.py:151

◆ UCTDAQRawData() [2/2]

UCTDAQRawData::UCTDAQRawData ( const UCTDAQRawData )
delete

◆ ~UCTDAQRawData()

virtual UCTDAQRawData::~UCTDAQRawData ( )
inlinevirtual

Definition at line 27 of file UCTDAQRawData.h.

27 { ; }

Member Function Documentation

◆ amc13BlockNo()

uint32_t UCTDAQRawData::amc13BlockNo ( )
inline

Definition at line 175 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

Referenced by print().

175  {
176  const uint64_t *data = amc13TrailerPtr();
177  return ((data[0] & 0x000000000FF00000) >> 20);
178  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ amc13BXID()

uint32_t UCTDAQRawData::amc13BXID ( )
inline

Definition at line 165 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

Referenced by print().

165  {
166  const uint64_t *data = amc13TrailerPtr();
167  return (data[0] & 0x0000000000000FFF);
168  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ amc13CRC32()

uint32_t UCTDAQRawData::amc13CRC32 ( )
inline

Definition at line 180 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

180  {
181  const uint64_t *data = amc13TrailerPtr();
182  return ((data[0] & 0xFFFFFFFF00000000) >> 32);
183  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ amc13L1ID()

uint32_t UCTDAQRawData::amc13L1ID ( )
inline

Definition at line 170 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

Referenced by print().

170  {
171  const uint64_t *data = amc13TrailerPtr();
172  return ((data[0] & 0x00000000000FF000) >> 12);
173  }
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ amc13TrailerPtr()

const uint64_t* UCTDAQRawData::amc13TrailerPtr ( )
inline

Definition at line 157 of file UCTDAQRawData.h.

References amcSize(), mps_fire::i, myDataPtr, nAMCs(), and optionsL1T::skip.

Referenced by amc13BlockNo(), amc13BXID(), amc13CRC32(), and amc13L1ID().

157  {
158  uint32_t skip = 2;
159  for (uint32_t i = 0; i < nAMCs(); i++) {
160  skip += (1 + amcSize(i));
161  }
162  return &myDataPtr[skip];
163  }
const uint64_t * myDataPtr
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:71
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41

◆ amcBlkNo()

uint32_t UCTDAQRawData::amcBlkNo ( uint32_t  amc = 0)
inline

Definition at line 62 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

62  {
63  if (amc < nAMCs()) {
64  return ((myDataPtr[2 + amc] & 0x000000000FF00000) >> 20);
65  }
66  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch amc block no for AMC = " << amc
67  << "; Max AMC = " << nAMCs() << std::endl;
68  return 0xDEADBEEF;
69  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ amcNo()

uint32_t UCTDAQRawData::amcNo ( uint32_t  amc = 0)
inline

Definition at line 53 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

53  {
54  if (amc < nAMCs()) {
55  return ((myDataPtr[2 + amc] & 0x00000000000F0000) >> 16);
56  }
57  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch amc no for AMC = " << amc
58  << "; Max AMC = " << nAMCs() << std::endl;
59  return 0xDEADBEEF;
60  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ amcPayload()

const uint32_t* UCTDAQRawData::amcPayload ( uint32_t  amc)
inline

Definition at line 143 of file UCTDAQRawData.h.

References amc, amcSize(), mps_fire::i, myDataPtr, nAMCs(), and optionsL1T::skip.

Referenced by L1TStage2CaloLayer1::dqmAnalyze(), and L1TCaloLayer1RawToDigi::produce().

143  {
144  if (amc < nAMCs()) {
145  // Number of 64-bit words to skip
146  uint32_t skip = 2 + nAMCs();
147  for (uint32_t i = 0; i < amc; i++) {
148  skip += amcSize(i);
149  }
150  return (uint32_t *)&myDataPtr[skip];
151  }
152  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch payload location for AMC = " << amc
153  << "; Max AMC = " << nAMCs() << std::endl;
154  return nullptr;
155  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
double amc
Definition: hdecay.h:20
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:71
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ amcSize()

uint32_t UCTDAQRawData::amcSize ( uint32_t  amc = 0)
inline

Definition at line 71 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by amc13TrailerPtr(), amcPayload(), cdfTrailerPtr(), and print().

71  {
72  if (amc < nAMCs()) {
73  return ((myDataPtr[2 + amc] & 0x00FFFFFF00000000) >> 32);
74  }
75  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch amc size for AMC = " << amc
76  << "; Max AMC = " << nAMCs() << std::endl;
77  return 0xDEADBEEF;
78  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ boardID()

uint32_t UCTDAQRawData::boardID ( uint32_t  amc = 0)
inline

Definition at line 44 of file UCTDAQRawData.h.

References amc, myDataPtr, and nAMCs().

Referenced by print().

44  {
45  if (amc < nAMCs()) {
46  return myDataPtr[2 + amc] & 0x000000000000FFFF;
47  }
48  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch board ID for AMC = " << amc
49  << "; Max AMC = " << nAMCs() << std::endl;
50  return 0xDEADBEEF;
51  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
double amc
Definition: hdecay.h:20
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ BXID()

uint32_t UCTDAQRawData::BXID ( )
inline

Definition at line 37 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by L1TStage2CaloLayer1::dqmAnalyze(), and print().

37 { return ((myDataPtr[0] & 0x00000000FFF00000) >> 20); }
const uint64_t * myDataPtr

◆ cdfHeader()

const uint64_t* UCTDAQRawData::cdfHeader ( ) const
inline

Definition at line 33 of file UCTDAQRawData.h.

References myDataPtr.

33 { return &myDataPtr[0]; }
const uint64_t * myDataPtr

◆ cdfTrailerPtr()

const uint64_t* UCTDAQRawData::cdfTrailerPtr ( )
inline

Definition at line 185 of file UCTDAQRawData.h.

References amcSize(), data, mps_fire::i, myDataPtr, nAMCs(), and optionsL1T::skip.

Referenced by crc16(), crcModified(), eventLength(), eventStatus(), isLastTrailerWord(), isSLinkErrorDetectedByFRL(), isWrongFEDID(), and ttsBits().

185  {
186  uint32_t skip = 2;
187  for (uint32_t i = 0; i < nAMCs(); i++) {
188  skip += (1 + amcSize(i));
189  }
190  skip++;
191  const uint64_t *data = &myDataPtr[skip];
192  if ((data[0] & 0xF000000000000000) != 0xA000000000000000) {
193  edm::LogError("UCTDAQRawData") << "CDF Trailer seems to be wrong : " << std::showbase << std::internal
194  << std::setfill('0') << std::setw(10) << std::hex << data[1] << std::endl;
195  }
196  return data;
197  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:71
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ crc16()

uint32_t UCTDAQRawData::crc16 ( )
inline

Definition at line 229 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

229  {
230  const uint64_t *data = cdfTrailerPtr();
231  return ((data[0] & 0x00000000FFFF0000) >> 16);
232  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ crcError()

bool UCTDAQRawData::crcError ( uint32_t  amc = 0)
inline

Definition at line 80 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

80  {
81  if (amc < nAMCs()) {
82  return ((myDataPtr[2 + amc] & 0x0100000000000000) != 0);
83  }
84  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch crcError-bit for AMC = " << amc
85  << "; Max AMC = " << nAMCs() << std::endl;
86  return false;
87  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ crcModified()

bool UCTDAQRawData::crcModified ( )
inline

Definition at line 199 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

199  {
200  const uint64_t *data = cdfTrailerPtr();
201  return ((data[0] & 0x0000000000000004) != 0);
202  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ dataPtr()

const uint64_t* UCTDAQRawData::dataPtr ( ) const
inline

Definition at line 31 of file UCTDAQRawData.h.

References myDataPtr.

31 { return myDataPtr; }
const uint64_t * myDataPtr

◆ eventLength()

uint32_t UCTDAQRawData::eventLength ( )
inline

Definition at line 234 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

234  {
235  const uint64_t *data = cdfTrailerPtr();
236  return ((data[0] & 0x00FFFFFF00000000) >> 32);
237  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ eventStatus()

uint32_t UCTDAQRawData::eventStatus ( )
inline

Definition at line 214 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

214  {
215  const uint64_t *data = cdfTrailerPtr();
216  return ((data[0] & 0x0000000000000F00) >> 8);
217  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ eventType()

uint32_t UCTDAQRawData::eventType ( )
inline

Definition at line 39 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

39 { return ((myDataPtr[0] & 0x0F00000000000000) >> 56); }
const uint64_t * myDataPtr

◆ FOV()

uint32_t UCTDAQRawData::FOV ( )
inline

Definition at line 35 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

35 { return ((myDataPtr[0] & 0x00000000000000F0) >> 4); }
const uint64_t * myDataPtr

◆ isEnabled()

bool UCTDAQRawData::isEnabled ( uint32_t  amc = 0)
inline

Definition at line 107 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

107  {
108  if (amc < nAMCs()) {
109  return ((myDataPtr[2 + amc] & 0x0800000000000000) != 0);
110  }
111  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isEnabled-bit for AMC = " << amc
112  << "; Max AMC = " << nAMCs() << std::endl;
113  return false;
114  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ isLastTrailerWord()

bool UCTDAQRawData::isLastTrailerWord ( )
inline

Definition at line 204 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

204  {
205  const uint64_t *data = cdfTrailerPtr();
206  return ((data[0] & 0x0000000000000008) != 0);
207  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ isPresent()

bool UCTDAQRawData::isPresent ( uint32_t  amc = 0)
inline

Definition at line 98 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

98  {
99  if (amc < nAMCs()) {
100  return ((myDataPtr[2 + amc] & 0x0400000000000000) != 0);
101  }
102  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isPresent-bit for AMC = " << amc
103  << "; Max AMC = " << nAMCs() << std::endl;
104  return false;
105  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ isSegmented()

bool UCTDAQRawData::isSegmented ( uint32_t  amc = 0)
inline

Definition at line 116 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

116  {
117  if (amc < nAMCs()) {
118  return ((myDataPtr[2 + amc] & 0x1000000000000000) != 0);
119  }
120  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isSegmented-bit for AMC = " << amc
121  << "; Max AMC = " << nAMCs() << std::endl;
122  return false;
123  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ isSLinkErrorDetectedByFRL()

bool UCTDAQRawData::isSLinkErrorDetectedByFRL ( )
inline

Definition at line 224 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

224  {
225  const uint64_t *data = cdfTrailerPtr();
226  return ((data[0] & 0x0000000000008000) != 0);
227  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ isValid()

bool UCTDAQRawData::isValid ( uint32_t  amc = 0)
inline

Definition at line 89 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by ntupleDataFormat._Object::_checkIsValid(), print(), and core.AutoHandle.AutoHandle::ReallyLoad().

89  {
90  if (amc < nAMCs()) {
91  return ((myDataPtr[2 + amc] & 0x0200000000000000) != 0);
92  }
93  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isValid-bit for AMC = " << amc
94  << "; Max AMC = " << nAMCs() << std::endl;
95  return false;
96  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ isWrongFEDID()

bool UCTDAQRawData::isWrongFEDID ( )
inline

Definition at line 219 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

219  {
220  const uint64_t *data = cdfTrailerPtr();
221  return ((data[0] & 0x0000000000004000) != 0);
222  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ L1ID()

uint32_t UCTDAQRawData::L1ID ( )
inline

Definition at line 38 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by L1TStage2CaloLayer1::dqmAnalyze(), and print().

38 { return ((myDataPtr[0] & 0x00FFFFFF00000000) >> 32); }
const uint64_t * myDataPtr

◆ lengthError()

bool UCTDAQRawData::lengthError ( uint32_t  amc = 0)
inline

Definition at line 134 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

134  {
135  if (amc < nAMCs()) {
136  return ((myDataPtr[2 + amc] & 0x4000000000000000) != 0);
137  }
138  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch length error bit for AMC = " << amc
139  << "; Max AMC = " << nAMCs() << std::endl;
140  return false;
141  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ more()

bool UCTDAQRawData::more ( uint32_t  amc = 0)
inline

Definition at line 125 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

125  {
126  if (amc < nAMCs()) {
127  return ((myDataPtr[2 + amc] & 0x2000000000000000) != 0);
128  }
129  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch more-bit for AMC = " << amc
130  << "; Max AMC = " << nAMCs() << std::endl;
131  return false;
132  }
const uint64_t * myDataPtr
Log< level::Error, false > LogError
uint32_t nAMCs()
Definition: UCTDAQRawData.h:41
Definition: AMCSpec.h:8

◆ nAMCs()

uint32_t UCTDAQRawData::nAMCs ( )
inline

◆ operator=()

const UCTDAQRawData& UCTDAQRawData::operator= ( const UCTDAQRawData i)
delete

◆ orbitNumber()

uint32_t UCTDAQRawData::orbitNumber ( )
inline

Definition at line 40 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by L1TStage2CaloLayer1::dqmAnalyze(), and print().

40 { return ((myDataPtr[1] & 0x0000000FFFFFFFF0) >> 4); }
const uint64_t * myDataPtr

◆ print()

void UCTDAQRawData::print ( void  )
inline

Definition at line 239 of file UCTDAQRawData.h.

References amc13BlockNo(), amc13BXID(), amc13L1ID(), amcBlkNo(), amcNo(), amcSize(), boardID(), BXID(), crc16(), crcError(), crcModified(), TauDecayModes::dec, eventLength(), eventStatus(), eventType(), FOV(), mps_fire::i, isEnabled(), isLastTrailerWord(), isPresent(), isSegmented(), isSLinkErrorDetectedByFRL(), isValid(), isWrongFEDID(), L1ID(), lengthError(), LogDebug, more(), nAMCs(), orbitNumber(), sourceID(), ttsBits(), and uFOV().

Referenced by L1TCaloLayer1RawToDigi::produce().

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

◆ sourceID()

uint32_t UCTDAQRawData::sourceID ( )
inline

Definition at line 36 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

36 { return ((myDataPtr[0] & 0x00000000000FFF00) >> 8); }
const uint64_t * myDataPtr

◆ ttsBits()

uint32_t UCTDAQRawData::ttsBits ( )
inline

Definition at line 209 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

209  {
210  const uint64_t *data = cdfTrailerPtr();
211  return ((data[0] & 0x00000000000000F0) >> 4);
212  }
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
Definition: Time.h:13
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ uFOV()

uint32_t UCTDAQRawData::uFOV ( )
inline

Definition at line 42 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

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

Member Data Documentation

◆ myDataPtr

const uint64_t* UCTDAQRawData::myDataPtr
private