CMS 3D CMS Logo

TotemTimingDigi.cc
Go to the documentation of this file.
1 
9 
11  const uint64_t fpgaTimestamp, const uint16_t timestampA, const uint16_t timestampB,
12  const uint16_t cellInfo, const std::vector<uint8_t>& samples,
13  const TotemTimingEventInfo& totemTimingEventInfo ) :
14  hwId_( hwId ), fpgaTimestamp_( fpgaTimestamp ), timestampA_( timestampA ), timestampB_( timestampB ),
15  cellInfo_( cellInfo ), samples_( samples ), totemTimingEventInfo_( totemTimingEventInfo )
16 {}
17 
21 {}
22 
24  hwId_( 0 ), fpgaTimestamp_( 0 ), timestampA_( 0 ), timestampB_( 0 ), cellInfo_( 0 )
25 {}
26 
27 // Comparison
28 bool
30 {
31  if ( hwId_ != digi.hwId_
33  || timestampA_ != digi.timestampA_
34  || timestampB_ != digi.timestampB_
35  || cellInfo_ != digi.cellInfo_
36  || samples_ != digi.samples_
37  ) return false;
38  return true;
39 }
40 
TotemTimingEventInfo totemTimingEventInfo_
bool operator==(const TotemTimingDigi &digi) const
Digis are equal if they have all the same values, NOT checking the samples!
unsigned long long uint64_t
Definition: Time.h:15
uint64_t fpgaTimestamp_
std::vector< uint8_t > samples_