Definition at line 24 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 74 of file TotemTriggerRawToDigi.cc.
77 LogError(
"Totem") <<
"Error in TotemTriggerRawToDigi::ProcessLoneGFrame > "
78 <<
"Wrong LoneG frame size: " <<
size <<
" (shall be 20)." << endl;
84 for (
unsigned int i = 0;
i < 5;
i++)
87 for (
unsigned int i = 0;
i < 20;
i++) {
90 buf[row] |= (oBuf[
i] & 0xFFFF) << (
col * 16);
93 td.type = (
buf[0] >> 56) & 0xF;
94 td.event_num = (
buf[0] >> 32) & 0xFFFFFF;
95 td.bunch_num = (
buf[0] >> 20) & 0xFFF;
96 td.src_id = (
buf[0] >> 8) & 0xFFF;
98 td.orbit_num = (
buf[1] >> 32) & 0xFFFFFFFF;
99 td.revision_num = (
buf[1] >> 24) & 0xFF;
101 td.run_num = (
buf[2] >> 32) & 0xFFFFFFFF;
102 td.trigger_num = (
buf[2] >> 0) & 0xFFFFFFFF;
104 td.inhibited_triggers_num = (
buf[3] >> 32) & 0xFFFFFFFF;
105 td.input_status_bits = (
buf[3] >> 0) & 0xFFFFFFFF;
108 printf(
">> RawDataUnpacker::ProcessLoneGFrame > size = %li\n",
size);
110 "\ttype = %x, event number = %x, bunch number = %x, id = %x\n", td.type, td.event_num, td.bunch_num, td.src_id);
111 printf(
"\torbit number = %x, revision = %x\n", td.orbit_num, td.revision_num);
112 printf(
"\trun number = %x, trigger number = %x\n", td.run_num, td.trigger_num);
113 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 |