44 :
fedId(conf.getParameter<unsigned int>(
"fedId")) {
50 produces<TotemTriggerCounters>();
66 unsigned int sizeInWords = data.
size() / 8;
71 event.put(make_unique<TotemTriggerCounters>(totemTriggerCounters));
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;
95 td.
src_id = (buf[0] >> 8) & 0xFFF;
97 td.
orbit_num = (buf[1] >> 32) & 0xFFFFFFFF;
100 td.
run_num = (buf[2] >> 32) & 0xFFFFFFFF;
107 printf(
">> RawDataUnpacker::ProcessLoneGFrame > size = %li\n", size);
#define DEFINE_FWK_MODULE(type)
int ProcessLoneGFrame(uint64_t *oBuf, unsigned long size, TotemTriggerCounters &data)
Process one LoneG frame.
TotemTriggerRawToDigi(const edm::ParameterSet &)
Log< level::Error, false > LogError
size_t size() const
Lenght of the data buffer in bytes.
unsigned int input_status_bits
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
unsigned long long uint64_t
T getParameter(std::string const &) const
unsigned int inhibited_triggers_num
char data[epos_bytes_allocation]
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void produce(edm::Event &, const edm::EventSetup &) override
~TotemTriggerRawToDigi() override
tuple size
Write out results.
edm::EDGetTokenT< FEDRawDataCollection > fedDataToken
unsigned char revision_num