Definition at line 23 of file TotemTriggerRawToDigi.cc.
◆ TotemTriggerRawToDigi()
◆ ~TotemTriggerRawToDigi()
TotemTriggerRawToDigi::~TotemTriggerRawToDigi |
( |
| ) |
|
|
override |
◆ ProcessLoneGFrame()
int TotemTriggerRawToDigi::ProcessLoneGFrame |
( |
uint64_t * |
oBuf, |
|
|
unsigned long |
size, |
|
|
TotemTriggerCounters & |
data |
|
) |
| |
|
private |
Process one LoneG frame.
Definition at line 73 of file TotemTriggerRawToDigi.cc.
76 LogError(
"Totem") <<
"Error in TotemTriggerRawToDigi::ProcessLoneGFrame > "
77 <<
"Wrong LoneG frame size: " <<
size <<
" (shall be 20)." << endl;
83 for (
unsigned int i = 0;
i < 5;
i++)
86 for (
unsigned int i = 0;
i < 20;
i++) {
89 buf[row] |= (oBuf[
i] & 0xFFFF) << (
col * 16);
92 td.type = (
buf[0] >> 56) & 0xF;
93 td.event_num = (
buf[0] >> 32) & 0xFFFFFF;
94 td.bunch_num = (
buf[0] >> 20) & 0xFFF;
95 td.src_id = (
buf[0] >> 8) & 0xFFF;
97 td.orbit_num = (
buf[1] >> 32) & 0xFFFFFFFF;
98 td.revision_num = (
buf[1] >> 24) & 0xFF;
100 td.run_num = (
buf[2] >> 32) & 0xFFFFFFFF;
101 td.trigger_num = (
buf[2] >> 0) & 0xFFFFFFFF;
103 td.inhibited_triggers_num = (
buf[3] >> 32) & 0xFFFFFFFF;
104 td.input_status_bits = (
buf[3] >> 0) & 0xFFFFFFFF;
107 printf(
">> RawDataUnpacker::ProcessLoneGFrame > size = %li\n",
size);
109 "\ttype = %x, event number = %x, bunch number = %x, id = %x\n", td.type, td.event_num, td.bunch_num, td.src_id);
110 printf(
"\torbit number = %x, revision = %x\n", td.orbit_num, td.revision_num);
111 printf(
"\trun number = %x, trigger number = %x\n", td.run_num, td.trigger_num);
112 printf(
"\tinhibited triggers = %x, input status bits = %x\n", td.inhibited_triggers_num, td.input_status_bits);
References visDQMUpload::buf, TotemTriggerCounters::bunch_num, cuy::col, TotemTriggerCounters::event_num, mps_fire::i, TotemTriggerCounters::inhibited_triggers_num, TotemTriggerCounters::input_status_bits, TotemTriggerCounters::orbit_num, TotemTriggerCounters::revision_num, TotemTriggerCounters::run_num, findQualityFiles::size, TotemTriggerCounters::src_id, TotemTriggerCounters::trigger_num, and TotemTriggerCounters::type.
Referenced by produce().
◆ produce()
◆ fedDataToken
◆ fedId
unsigned int TotemTriggerRawToDigi::fedId |
|
private |