CMS 3D CMS Logo

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)=delete
 
 UCTDAQRawData (const UCTDAQRawData &)=delete
 

Private Attributes

const uint64_t * myDataPtr
 

Detailed Description

Definition at line 11 of file UCTDAQRawData.h.

Constructor & Destructor Documentation

UCTDAQRawData::UCTDAQRawData ( const uint64_t *  d)
inline

Definition at line 14 of file UCTDAQRawData.h.

Referenced by print().

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

Definition at line 28 of file UCTDAQRawData.h.

28 {;}
UCTDAQRawData::UCTDAQRawData ( const UCTDAQRawData )
privatedelete

Member Function Documentation

uint32_t UCTDAQRawData::amc13BlockNo ( )
inline

Definition at line 166 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

Referenced by print().

166  {
167  const uint64_t *data = amc13TrailerPtr();
168  return ((data[0] & 0x000000000FF00000) >> 20);
169  }
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 156 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

Referenced by print().

156  {
157  const uint64_t *data = amc13TrailerPtr();
158  return (data[0] & 0x0000000000000FFF);
159  }
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 171 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

171  {
172  const uint64_t *data = amc13TrailerPtr();
173  return ((data[0] & 0xFFFFFFFF00000000) >> 32);
174  }
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 161 of file UCTDAQRawData.h.

References amc13TrailerPtr(), and data.

Referenced by print().

161  {
162  const uint64_t *data = amc13TrailerPtr();
163  return ((data[0] & 0x00000000000FF000) >> 12);
164  }
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 148 of file UCTDAQRawData.h.

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

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

148  {
149  uint32_t skip = 2;
150  for(uint32_t i = 0; i < nAMCs(); i++) {
151  skip += (1 + amcSize(i));
152  }
153  return &myDataPtr[skip];
154  }
const uint64_t * myDataPtr
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:71
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
uint32_t UCTDAQRawData::amcBlkNo ( uint32_t  amc = 0)
inline

Definition at line 63 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

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

Definition at line 55 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

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

Definition at line 135 of file UCTDAQRawData.h.

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

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

135  {
136  if(amc < nAMCs()) {
137  // Number of 64-bit words to skip
138  uint32_t skip = 2 + nAMCs();
139  for(uint32_t i = 0; i < amc; i++) {
140  skip += amcSize(i);
141  }
142  return (uint32_t *) &myDataPtr[skip];
143  }
144  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch payload location for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
145  return nullptr;
146  }
const uint64_t * myDataPtr
double amc
Definition: hdecay.h:20
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:71
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
Definition: AMCSpec.h:8
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 << "; Max AMC = " << nAMCs() << std::endl;
76  return 0xDEADBEEF;
77  }
const uint64_t * myDataPtr
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
Definition: AMCSpec.h:8
uint32_t UCTDAQRawData::boardID ( uint32_t  amc = 0)
inline

Definition at line 47 of file UCTDAQRawData.h.

References amc, myDataPtr, and nAMCs().

Referenced by print().

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

Definition at line 38 of file UCTDAQRawData.h.

References myDataPtr.

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

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

Definition at line 34 of file UCTDAQRawData.h.

References myDataPtr.

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

Definition at line 176 of file UCTDAQRawData.h.

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

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

176  {
177  uint32_t skip = 2;
178  for(uint32_t i = 0; i < nAMCs(); i++) {
179  skip += (1 + amcSize(i));
180  }
181  skip++;
182  const uint64_t *data = &myDataPtr[skip];
183  if((data[0] & 0xF000000000000000) != 0xA000000000000000) {
184  edm::LogError("UCTDAQRawData") << "CDF Trailer seems to be wrong : "
185  << std::showbase << std::internal
186  << std::setfill('0') << std::setw(10)
187  << std::hex
188  << data[1]
189  << std::endl;
190  }
191  return data;
192  }
const uint64_t * myDataPtr
uint32_t amcSize(uint32_t amc=0)
Definition: UCTDAQRawData.h:71
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
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 224 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

224  {
225  const uint64_t *data = cdfTrailerPtr();
226  return ((data[0] & 0x00000000FFFF0000) >> 16);
227  }
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 79 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

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

Definition at line 194 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

194  {
195  const uint64_t *data = cdfTrailerPtr();
196  return ((data[0] & 0x0000000000000004) != 0);
197  }
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 32 of file UCTDAQRawData.h.

References myDataPtr.

32 {return myDataPtr;}
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::eventLength ( )
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] & 0x00FFFFFF00000000) >> 32);
232  }
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 209 of file UCTDAQRawData.h.

References cdfTrailerPtr(), and data.

Referenced by print().

209  {
210  const uint64_t *data = cdfTrailerPtr();
211  return ((data[0] & 0x0000000000000F00) >> 8);
212  }
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 40 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

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

Definition at line 36 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

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

Definition at line 103 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

103  {
104  if(amc < nAMCs()) {
105  return ((myDataPtr[2+amc] & 0x0800000000000000) != 0);
106  }
107  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isEnabled-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
108  return false;
109  }
const uint64_t * myDataPtr
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
Definition: AMCSpec.h:8
bool UCTDAQRawData::isLastTrailerWord ( )
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] & 0x0000000000000008) != 0);
202  }
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 95 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

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

Definition at line 111 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

111  {
112  if(amc < nAMCs()) {
113  return ((myDataPtr[2+amc] & 0x1000000000000000) != 0);
114  }
115  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isSegmented-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
116  return false;
117  }
const uint64_t * myDataPtr
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
Definition: AMCSpec.h:8
bool UCTDAQRawData::isSLinkErrorDetectedByFRL ( )
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] & 0x0000000000008000) != 0);
222  }
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 87 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

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

87  {
88  if(amc < nAMCs()) {
89  return ((myDataPtr[2+amc] & 0x0200000000000000) != 0);
90  }
91  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch isValid-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
92  return false;
93  }
const uint64_t * myDataPtr
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
Definition: AMCSpec.h:8
bool UCTDAQRawData::isWrongFEDID ( )
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] & 0x0000000000004000) != 0);
217  }
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 39 of file UCTDAQRawData.h.

References myDataPtr.

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

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

Definition at line 127 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

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

Definition at line 119 of file UCTDAQRawData.h.

References myDataPtr, and nAMCs().

Referenced by print().

119  {
120  if(amc < nAMCs()) {
121  return ((myDataPtr[2+amc] & 0x2000000000000000) != 0);
122  }
123  edm::LogError("UCTDAQRawData") << "UCTDAQRawData: Failed to fetch more-bit for AMC = " << amc << "; Max AMC = " << nAMCs() << std::endl;
124  return false;
125  }
const uint64_t * myDataPtr
uint32_t nAMCs()
Definition: UCTDAQRawData.h:44
Definition: AMCSpec.h:8
uint32_t UCTDAQRawData::nAMCs ( )
inline
const UCTDAQRawData& UCTDAQRawData::operator= ( const UCTDAQRawData i)
privatedelete

Referenced by print().

uint32_t UCTDAQRawData::orbitNumber ( )
inline

Definition at line 41 of file UCTDAQRawData.h.

References myDataPtr.

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

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

Definition at line 234 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(), operator=(), orbitNumber(), sourceID(), ttsBits(), UCTDAQRawData(), and uFOV().

Referenced by L1TCaloLayer1RawToDigi::produce().

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

Definition at line 37 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

37 {return ((myDataPtr[0] & 0x00000000000FFF00) >> 8);}
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::ttsBits ( )
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] & 0x00000000000000F0) >> 4);
207  }
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 45 of file UCTDAQRawData.h.

References myDataPtr.

Referenced by print().

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

Member Data Documentation

const uint64_t* UCTDAQRawData::myDataPtr
private