Main Page
Namespaces
Classes
Package Documentation
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,
12
const
uint16_t timestampA,
13
const
uint16_t timestampB,
14
const
uint16_t cellInfo,
15
const
std::vector<uint8_t>&
samples
,
16
const
TotemTimingEventInfo
& totemTimingEventInfo)
17
: hwId_(hwId),
18
fpgaTimestamp_(fpgaTimestamp),
19
timestampA_(timestampA),
20
timestampB_(timestampB),
21
cellInfo_(cellInfo),
22
samples_(samples),
23
totemTimingEventInfo_(totemTimingEventInfo) {}
24
25
TotemTimingDigi::TotemTimingDigi
(
const
TotemTimingDigi
& digi)
26
:
hwId_
(digi.
hwId_
),
27
fpgaTimestamp_
(digi.
fpgaTimestamp_
),
28
timestampA_
(digi.
timestampA_
),
29
timestampB_
(digi.
timestampB_
),
30
cellInfo_
(digi.
cellInfo_
),
31
samples_
(digi.
samples_
),
32
totemTimingEventInfo_
(digi.
totemTimingEventInfo_
) {}
33
34
TotemTimingDigi::TotemTimingDigi
() :
hwId_
(0),
fpgaTimestamp_
(0),
timestampA_
(0),
timestampB_
(0),
cellInfo_
(0) {}
35
36
// Comparison
37
bool
TotemTimingDigi::operator==
(
const
TotemTimingDigi
& digi)
const
{
38
if
(
hwId_
!= digi.
hwId_
||
fpgaTimestamp_
!= digi.
fpgaTimestamp_
||
timestampA_
!= digi.
timestampA_
||
39
timestampB_
!= digi.
timestampB_
||
cellInfo_
!= digi.
cellInfo_
||
samples_
!= digi.
samples_
)
40
return
false
;
41
return
true
;
42
}
TotemTimingDigi::totemTimingEventInfo_
TotemTimingEventInfo totemTimingEventInfo_
Definition:
TotemTimingDigi.h:120
TotemTimingDigi::timestampA_
uint16_t timestampA_
Definition:
TotemTimingDigi.h:114
TotemTimingDigi.h
TotemTimingDigi::cellInfo_
uint16_t cellInfo_
Definition:
TotemTimingDigi.h:116
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:37
TotemTimingEventInfo
Definition:
TotemTimingEventInfo.h:17
TotemTimingDigi
Definition:
TotemTimingDigi.h:19
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
TotemTimingDigi::fpgaTimestamp_
uint64_t fpgaTimestamp_
Definition:
TotemTimingDigi.h:113
TotemTimingDigi::samples_
std::vector< uint8_t > samples_
Definition:
TotemTimingDigi.h:118
TotemTimingDigi::hwId_
uint8_t hwId_
Definition:
TotemTimingDigi.h:112
EgammaValidation_cff.samples
samples
Definition:
EgammaValidation_cff.py:19
TotemTimingDigi::timestampB_
uint16_t timestampB_
Definition:
TotemTimingDigi.h:115
TotemTimingDigi::TotemTimingDigi
TotemTimingDigi()
Definition:
TotemTimingDigi.cc:34
Generated for CMSSW Reference Manual by
1.8.11