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_),
38  numberOfSamples_(eventInfo.numberOfSamples_),
39  offsetOfSamples_(eventInfo.offsetOfSamples_),
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),
50  numberOfSamples_(0),
51  offsetOfSamples_(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_ ||
59  numberOfSamples_ != eventInfo.numberOfSamples_ || offsetOfSamples_ != eventInfo.offsetOfSamples_ ||
60  pllInfo_ != eventInfo.pllInfo_)
61  return false;
62  return true;
63 }
TotemTimingEventInfo::TotemTimingEventInfo
TotemTimingEventInfo()
Definition: TotemTimingEventInfo.cc:42
TotemTimingEventInfo::orbitNumber_
uint32_t orbitNumber_
Definition: TotemTimingEventInfo.h:106
TotemTimingEventInfo::eventNumber_
uint32_t eventNumber_
Definition: TotemTimingEventInfo.h:107
TotemTimingEventInfo::numberOfSamples_
uint8_t numberOfSamples_
Definition: TotemTimingEventInfo.h:110
TotemTimingEventInfo::l1ATimestamp_
uint64_t l1ATimestamp_
Definition: TotemTimingEventInfo.h:104
TotemTimingEventInfo.h
TotemTimingEventInfo::offsetOfSamples_
uint8_t offsetOfSamples_
Definition: TotemTimingEventInfo.h:111
TotemTimingEventInfo::pllInfo_
uint8_t pllInfo_
Definition: TotemTimingEventInfo.h:112
TotemTimingEventInfo::bunchNumber_
uint16_t bunchNumber_
Definition: TotemTimingEventInfo.h:105
TotemTimingEventInfo::hwId_
uint8_t hwId_
Definition: TotemTimingEventInfo.h:103
TotemTimingEventInfo
Definition: TotemTimingEventInfo.h:17
dumpTauVariables_cfi.eventInfo
eventInfo
add run, event number and lumi section
Definition: dumpTauVariables_cfi.py:12
TotemTimingEventInfo::l1ALatency_
uint16_t l1ALatency_
Definition: TotemTimingEventInfo.h:109
TotemTimingEventInfo::operator==
bool operator==(const TotemTimingEventInfo &eventInfo) const
Digis are equal if they have all the same values, NOT checking the samples!
Definition: TotemTimingEventInfo.cc:55
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
TotemTimingEventInfo::channelMap_
uint16_t channelMap_
Definition: TotemTimingEventInfo.h:108
numberOfSamples
Definition: TotemSampicFrame.h:53