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_(eventInfo.hwId_),
32  l1ATimestamp_(eventInfo.l1ATimestamp_),
33  bunchNumber_(eventInfo.bunchNumber_),
34  orbitNumber_(eventInfo.orbitNumber_),
35  eventNumber_(eventInfo.eventNumber_),
36  channelMap_(eventInfo.channelMap_),
37  l1ALatency_(eventInfo.l1ALatency_),
40  pllInfo_(eventInfo.pllInfo_) {}
41 
43  : hwId_(0),
44  l1ATimestamp_(0),
45  bunchNumber_(0),
46  orbitNumber_(0),
47  eventNumber_(0),
48  channelMap_(0),
49  l1ALatency_(0),
52  pllInfo_(0) {}
53 
54 // Comparison
56  if (hwId_ != eventInfo.hwId_ || l1ATimestamp_ != eventInfo.l1ATimestamp_ || bunchNumber_ != eventInfo.bunchNumber_ ||
57  orbitNumber_ != eventInfo.orbitNumber_ || eventNumber_ != eventInfo.eventNumber_ ||
58  channelMap_ != eventInfo.channelMap_ || l1ALatency_ != eventInfo.l1ALatency_ ||
60  pllInfo_ != eventInfo.pllInfo_)
61  return false;
62  return true;
63 }
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