CMS 3D CMS Logo

TotemTimingEventInfo.cc
Go to the documentation of this file.
1 
8 
9 TotemTimingEventInfo::TotemTimingEventInfo( const uint8_t hwId, const uint64_t l1ATimestamp,
10  const uint16_t bunchNumber, const uint32_t orbitNumber, const uint32_t eventNumber,
11  const uint16_t channelMap, const uint16_t l1ALatency,
12  const uint8_t numberOfSamples, const uint8_t offsetOfSamples, const uint8_t pllInfo ) :
13  hwId_( hwId ), l1ATimestamp_( l1ATimestamp ),
14  bunchNumber_( bunchNumber ), orbitNumber_( orbitNumber ), eventNumber_( eventNumber ),
15  channelMap_( channelMap ), l1ALatency_( l1ALatency ),
16  numberOfSamples_( numberOfSamples ), offsetOfSamples_( offsetOfSamples ), pllInfo_( pllInfo )
17 {}
18 
20  hwId_( eventInfo.hwId_ ), l1ATimestamp_( eventInfo.l1ATimestamp_ ),
21  bunchNumber_( eventInfo.bunchNumber_ ), orbitNumber_( eventInfo.orbitNumber_ ), eventNumber_( eventInfo.eventNumber_ ),
22  channelMap_( eventInfo.channelMap_ ), l1ALatency_( eventInfo.l1ALatency_ ),
24 {}
25 
27  hwId_( 0 ), l1ATimestamp_( 0 ),
28  bunchNumber_( 0 ), orbitNumber_( 0 ), eventNumber_( 0 ),
29  channelMap_( 0 ), l1ALatency_( 0 ),
31 {}
32 
33 // Comparison
34 bool
36 {
37  if ( hwId_ != eventInfo.hwId_
38  || l1ATimestamp_ != eventInfo.l1ATimestamp_
39  || bunchNumber_ != eventInfo.bunchNumber_
40  || orbitNumber_ != eventInfo.orbitNumber_
41  || eventNumber_ != eventInfo.eventNumber_
42  || channelMap_ != eventInfo.channelMap_
43  || l1ALatency_ != eventInfo.l1ALatency_
44  || numberOfSamples_ != eventInfo.numberOfSamples_
45  || offsetOfSamples_ != eventInfo.offsetOfSamples_
46  || pllInfo_ != eventInfo.pllInfo_
47  ) return false;
48  return true;
49 }
50 
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:15
eventInfo
add run, event number and lumi section