#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 |
uint32_t UCTDAQRawData::amc13BXID |
( |
| ) |
|
|
inline |
uint32_t UCTDAQRawData::amc13CRC32 |
( |
| ) |
|
|
inline |
uint32_t UCTDAQRawData::amc13L1ID |
( |
| ) |
|
|
inline |
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 |
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 |
const uint64_t* UCTDAQRawData::cdfTrailerPtr |
( |
| ) |
|
|
inline |
Definition at line 177 of file UCTDAQRawData.h.
References AlCaHLTBitMon_QueryRunRegistry::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
uint32_t UCTDAQRawData::crc16 |
( |
| ) |
|
|
inline |
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 |
const uint64_t* UCTDAQRawData::dataPtr |
( |
| ) |
const |
|
inline |
uint32_t UCTDAQRawData::eventLength |
( |
| ) |
|
|
inline |
uint32_t UCTDAQRawData::eventStatus |
( |
| ) |
|
|
inline |
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 |
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 |
bool UCTDAQRawData::isValid |
( |
uint32_t |
amc = 0 | ) |
|
|
inline |
bool UCTDAQRawData::isWrongFEDID |
( |
| ) |
|
|
inline |
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.
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 |
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 |