CMS 3D CMS Logo

TotemTimingEventInfo.cc
Go to the documentation of this file.
1 
8 
10  const uint64_t l1ATimestamp,
11  const uint16_t bunchNumber,
12  const uint32_t orbitNumber,
13  const uint32_t eventNumber,
14  const uint16_t channelMap,
15  const uint16_t l1ALatency,
16  const uint8_t numberOfSamples,
17  const uint8_t offsetOfSamples,
18  const uint8_t pllInfo)
19  : hwId_(hwId),
20  l1ATimestamp_(l1ATimestamp),
21  bunchNumber_(bunchNumber),
22  orbitNumber_(orbitNumber),
23  eventNumber_(eventNumber),
24  channelMap_(channelMap),
25  l1ALatency_(l1ALatency),
26  numberOfSamples_(numberOfSamples),
27  offsetOfSamples_(offsetOfSamples),
28  pllInfo_(pllInfo) {}
29 
31  : hwId_(0),
32  l1ATimestamp_(0),
33  bunchNumber_(0),
34  orbitNumber_(0),
35  eventNumber_(0),
36  channelMap_(0),
37  l1ALatency_(0),
38  numberOfSamples_(0),
39  offsetOfSamples_(0),
40  pllInfo_(0) {}
41 
42 // Comparison
44  if (hwId_ != eventInfo.hwId_ || l1ATimestamp_ != eventInfo.l1ATimestamp_ || bunchNumber_ != eventInfo.bunchNumber_ ||
45  orbitNumber_ != eventInfo.orbitNumber_ || eventNumber_ != eventInfo.eventNumber_ ||
46  channelMap_ != eventInfo.channelMap_ || l1ALatency_ != eventInfo.l1ALatency_ ||
47  numberOfSamples_ != eventInfo.numberOfSamples_ || offsetOfSamples_ != eventInfo.offsetOfSamples_ ||
48  pllInfo_ != eventInfo.pllInfo_)
49  return false;
50  return true;
51 }
bool operator==(const TotemTimingEventInfo &eventInfo) const
Digis are equal if they have all the same values, NOT checking the samples!
unsigned long long uint64_t
Definition: Time.h:13
eventInfo
add run, event number and lumi section