52 fedId(conf.getParameter<unsigned int>(
"fedId"))
59 produces<TotemTriggerCounters>();
82 unsigned int sizeInWords = data.
size() / 8;
87 event.put(make_unique<TotemTriggerCounters>(totemTriggerCounters));
96 LogProblem(
"Totem") <<
"Error in TotemTriggerRawToDigi::ProcessLoneGFrame > " <<
97 "Wrong LoneG frame size: " << size <<
" (shall be 20)." << endl;
103 for (
unsigned int i = 0;
i < 5;
i++)
106 for (
unsigned int i = 0;
i < 20;
i++)
110 buf[row] |= (oBuf[
i] & 0xFFFF) << (col * 16);
113 td.
type = (buf[0] >> 56) & 0xF;
114 td.
event_num = (buf[0] >> 32) & 0xFFFFFF;
116 td.
src_id = (buf[0] >> 8) & 0xFFF;
118 td.
orbit_num = (buf[1] >> 32) & 0xFFFFFFFF;
121 td.
run_num = (buf[2] >> 32) & 0xFFFFFFFF;
128 printf(
">> RawDataUnpacker::ProcessLoneGFrame > size = %li\n", size);
129 printf(
"\ttype = %x, event number = %x, bunch number = %x, id = %x\n",
131 printf(
"\torbit number = %x, revision = %x\n",
133 printf(
"\trun number = %x, trigger number = %x\n",
135 printf(
"\tinhibited triggers = %x, input status bits = %x\n",
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
int ProcessLoneGFrame(uint64_t *oBuf, unsigned long size, TotemTriggerCounters &data)
Process one LoneG frame.
TotemTriggerRawToDigi(const edm::ParameterSet &)
size_t size() const
Lenght of the data buffer in bytes.
unsigned int input_status_bits
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
unsigned long long uint64_t
unsigned int inhibited_triggers_num
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
virtual void produce(edm::Event &, const edm::EventSetup &) override
tuple size
Write out results.
edm::EDGetTokenT< FEDRawDataCollection > fedDataToken
unsigned char revision_num