Main Page
Namespaces
Classes
Package Documentation
src
DataFormats
CTPPSDigi
src
TotemTimingDigi.cc
Go to the documentation of this file.
1
8
#include "
DataFormats/CTPPSDigi/interface/TotemTimingDigi.h
"
9
10
TotemTimingDigi::TotemTimingDigi
(
const
uint8_t hwId,
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
18
TotemTimingDigi::TotemTimingDigi
(
const
TotemTimingDigi
& digi ) :
19
hwId_
( digi.
hwId_
),
fpgaTimestamp_
( digi.
fpgaTimestamp_
),
timestampA_
( digi.
timestampA_
),
timestampB_
( digi.
timestampB_
),
20
cellInfo_
( digi.
cellInfo_
),
samples_
( digi.
samples_
),
totemTimingEventInfo_
( digi.
totemTimingEventInfo_
)
21
{}
22
23
TotemTimingDigi::TotemTimingDigi
() :
24
hwId_
( 0 ),
fpgaTimestamp_
( 0 ),
timestampA_
( 0 ),
timestampB_
( 0 ),
cellInfo_
( 0 )
25
{}
26
27
// Comparison
28
bool
29
TotemTimingDigi::operator==
(
const
TotemTimingDigi
& digi )
const
30
{
31
if
(
hwId_
!= digi.
hwId_
32
||
fpgaTimestamp_
!= digi.
fpgaTimestamp_
33
||
timestampA_
!= digi.
timestampA_
34
||
timestampB_
!= digi.
timestampB_
35
||
cellInfo_
!= digi.
cellInfo_
36
||
samples_
!= digi.
samples_
37
)
return
false
;
38
return
true
;
39
}
40
TotemTimingDigi::totemTimingEventInfo_
TotemTimingEventInfo totemTimingEventInfo_
Definition:
TotemTimingDigi.h:181
TotemTimingDigi::timestampA_
uint16_t timestampA_
Definition:
TotemTimingDigi.h:175
TotemTimingDigi.h
TotemTimingDigi::cellInfo_
uint16_t cellInfo_
Definition:
TotemTimingDigi.h:177
TotemTimingDigi::operator==
bool operator==(const TotemTimingDigi &digi) const
Digis are equal if they have all the same values, NOT checking the samples!
Definition:
TotemTimingDigi.cc:29
TotemTimingEventInfo
Definition:
TotemTimingEventInfo.h:17
TotemTimingDigi
Definition:
TotemTimingDigi.h:19
hcalTTPDigis_cfi.samples
samples
Definition:
hcalTTPDigis_cfi.py:8
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
TotemTimingDigi::fpgaTimestamp_
uint64_t fpgaTimestamp_
Definition:
TotemTimingDigi.h:174
TotemTimingDigi::samples_
std::vector< uint8_t > samples_
Definition:
TotemTimingDigi.h:179
TotemTimingDigi::hwId_
uint8_t hwId_
Definition:
TotemTimingDigi.h:173
TotemTimingDigi::timestampB_
uint16_t timestampB_
Definition:
TotemTimingDigi.h:176
TotemTimingDigi::TotemTimingDigi
TotemTimingDigi()
Definition:
TotemTimingDigi.cc:23
Generated for CMSSW Reference Manual by
1.8.11