#include <UCTDAQRawData.h>
Definition at line 12 of file UCTDAQRawData.h.
UCTDAQRawData::UCTDAQRawData |
( |
const uint64_t * |
d | ) |
|
|
inline |
Definition at line 15 of file UCTDAQRawData.h.
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)
23 <<
"; but continuing!"
const uint64_t * myDataPtr
virtual UCTDAQRawData::~UCTDAQRawData |
( |
| ) |
|
|
inlinevirtual |
uint32_t UCTDAQRawData::amc13BlockNo |
( |
| ) |
|
|
inline |
Definition at line 167 of file UCTDAQRawData.h.
References data.
169 return ((data[0] & 0x000000000FF00000) >> 20);
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::amc13BXID |
( |
| ) |
|
|
inline |
Definition at line 157 of file UCTDAQRawData.h.
References data.
159 return (data[0] & 0x0000000000000FFF);
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::amc13CRC32 |
( |
| ) |
|
|
inline |
Definition at line 172 of file UCTDAQRawData.h.
References data.
174 return ((data[0] & 0xFFFFFFFF00000000) >> 32);
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::amc13L1ID |
( |
| ) |
|
|
inline |
Definition at line 162 of file UCTDAQRawData.h.
References data.
164 return ((data[0] & 0x00000000000FF000) >> 12);
const uint64_t * amc13TrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
const uint64_t* UCTDAQRawData::amc13TrailerPtr |
( |
| ) |
|
|
inline |
uint32_t UCTDAQRawData::amcBlkNo |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 64 of file UCTDAQRawData.h.
References amc.
68 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch amc block no for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::amcNo |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 56 of file UCTDAQRawData.h.
References amc.
60 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch amc no for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
const uint32_t* UCTDAQRawData::amcPayload |
( |
uint32_t |
amc | ) |
|
|
inline |
uint32_t UCTDAQRawData::amcSize |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 72 of file UCTDAQRawData.h.
References amc.
76 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch amc size for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::boardID |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 48 of file UCTDAQRawData.h.
References amc.
52 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch board ID for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::BXID |
( |
| ) |
|
|
inline |
const uint64_t* UCTDAQRawData::cdfHeader |
( |
| ) |
const |
|
inline |
const uint64_t* UCTDAQRawData::cdfTrailerPtr |
( |
| ) |
|
|
inline |
Definition at line 177 of file UCTDAQRawData.h.
References data, i, and createPayload::skip.
179 for(uint32_t
i = 0;
i <
nAMCs();
i++) {
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)
const uint64_t * myDataPtr
uint32_t amcSize(uint32_t amc=0)
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::crc16 |
( |
| ) |
|
|
inline |
Definition at line 225 of file UCTDAQRawData.h.
References data.
227 return ((data[0] & 0x00000000FFFF0000) >> 16);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
bool UCTDAQRawData::crcError |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 80 of file UCTDAQRawData.h.
References amc.
84 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch crcError-bit for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
bool UCTDAQRawData::crcModified |
( |
| ) |
|
|
inline |
Definition at line 195 of file UCTDAQRawData.h.
References data.
197 return ((data[0] & 0x0000000000000004) == 1);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
const uint64_t* UCTDAQRawData::dataPtr |
( |
| ) |
const |
|
inline |
uint32_t UCTDAQRawData::eventLength |
( |
| ) |
|
|
inline |
Definition at line 230 of file UCTDAQRawData.h.
References data.
232 return ((data[0] & 0x00FFFFFF00000000) >> 32);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::eventStatus |
( |
| ) |
|
|
inline |
Definition at line 210 of file UCTDAQRawData.h.
References data.
212 return ((data[0] & 0x0000000000000F00) >> 8);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
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 |
bool UCTDAQRawData::isEnabled |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 104 of file UCTDAQRawData.h.
References amc.
108 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch isEnabled-bit for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
bool UCTDAQRawData::isLastTrailerWord |
( |
| ) |
|
|
inline |
Definition at line 200 of file UCTDAQRawData.h.
References data.
202 return ((data[0] & 0x0000000000000008) == 1);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
bool UCTDAQRawData::isPresent |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 96 of file UCTDAQRawData.h.
References amc.
100 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch isPresent-bit for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
bool UCTDAQRawData::isSegmented |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 112 of file UCTDAQRawData.h.
References amc.
116 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch isSegmented-bit for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
bool UCTDAQRawData::isSLinkErrorDetectedByFRL |
( |
| ) |
|
|
inline |
Definition at line 220 of file UCTDAQRawData.h.
References data.
222 return ((data[0] & 0x0000000000008000) == 1);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
bool UCTDAQRawData::isValid |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
bool UCTDAQRawData::isWrongFEDID |
( |
| ) |
|
|
inline |
Definition at line 215 of file UCTDAQRawData.h.
References data.
217 return ((data[0] & 0x0000000000004000) == 1);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::L1ID |
( |
| ) |
|
|
inline |
bool UCTDAQRawData::lengthError |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 128 of file UCTDAQRawData.h.
References amc.
132 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch length error bit for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
bool UCTDAQRawData::more |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
Definition at line 120 of file UCTDAQRawData.h.
References amc.
124 LogError(
"UCTDAQRawData") <<
"UCTDAQRawData: Failed to fetch more-bit for AMC = " <<
amc <<
"; Max AMC = " <<
nAMCs() << std::endl;
const uint64_t * myDataPtr
uint32_t UCTDAQRawData::nAMCs |
( |
| ) |
|
|
inline |
uint32_t UCTDAQRawData::orbitNumber |
( |
| ) |
|
|
inline |
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().
237 LogDebug(
"UCTDAQRawData") <<
"Common cDAQ/AMC13 Data Header:" << endl;
238 LogDebug(
"UCTDAQRawData") <<
"Framework Version = " <<
internal << setfill(
'0') << setw(3) << hex <<
FOV() << 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;
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++) {
249 <<
dec << setfill(
' ') << setw(6) <<
amcNo(
i) <<
" "
251 <<
dec << setfill(
' ') << setw(8) <<
amcSize(
i) <<
" "
257 <<
" " <<
more(
i) <<
" "
260 LogDebug(
"UCTDAQRawData") <<
"AMC13 Trailer:" << endl;
264 LogDebug(
"UCTDAQRawData") <<
"AMC13 CRC32...... = " <<
internal << setfill(
'0') << setw(10) << hex <<
amc13BXID() << endl;
265 LogDebug(
"UCTDAQRawData") <<
"Common DAQ Trailer:" << 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;
272 LogDebug(
"UCTDAQRawData") <<
"CRC 16........... = " <<
internal << setfill(
'0') << setw(6) << hex <<
crc16() << endl;
bool isPresent(uint32_t amc=0)
bool crcError(uint32_t amc=0)
uint32_t boardID(uint32_t amc=0)
bool isEnabled(uint32_t amc=0)
uint32_t amcSize(uint32_t amc=0)
bool isSegmented(uint32_t amc=0)
uint32_t amcBlkNo(uint32_t amc=0)
bool isSLinkErrorDetectedByFRL()
bool lengthError(uint32_t amc=0)
uint32_t amcNo(uint32_t amc=0)
bool isValid(uint32_t amc=0)
bool more(uint32_t amc=0)
uint32_t UCTDAQRawData::sourceID |
( |
| ) |
|
|
inline |
uint32_t UCTDAQRawData::ttsBits |
( |
| ) |
|
|
inline |
Definition at line 205 of file UCTDAQRawData.h.
References data.
207 return ((data[0] & 0x00000000000000F0) >> 4);
const uint64_t * cdfTrailerPtr()
unsigned long long uint64_t
char data[epos_bytes_allocation]
uint32_t UCTDAQRawData::uFOV |
( |
| ) |
|
|
inline |
Definition at line 46 of file UCTDAQRawData.h.
46 {
return ((
myDataPtr[1] & 0xF000000000000000) >> 60);}
const uint64_t * myDataPtr
const uint64_t* UCTDAQRawData::myDataPtr |
|
private |