Main Page
Namespaces
Classes
Package Documentation
DataFormats
CTPPSDigi
src
TotemTimingEventInfo.cc
Go to the documentation of this file.
1
7
#include <
DataFormats/CTPPSDigi/interface/TotemTimingEventInfo.h
>
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
19
TotemTimingEventInfo::TotemTimingEventInfo
(
const
TotemTimingEventInfo
&
eventInfo
) :
20
hwId_
( eventInfo.
hwId_
),
l1ATimestamp_
( eventInfo.
l1ATimestamp_
),
21
bunchNumber_
( eventInfo.
bunchNumber_
),
orbitNumber_
( eventInfo.
orbitNumber_
),
eventNumber_
( eventInfo.
eventNumber_
),
22
channelMap_
( eventInfo.
channelMap_
),
l1ALatency_
( eventInfo.
l1ALatency_
),
23
numberOfSamples_
( eventInfo.
numberOfSamples_
),
offsetOfSamples_
( eventInfo.
offsetOfSamples_
),
pllInfo_
( eventInfo.
pllInfo_
)
24
{}
25
26
TotemTimingEventInfo::TotemTimingEventInfo
() :
27
hwId_
( 0 ),
l1ATimestamp_
( 0 ),
28
bunchNumber_
( 0 ),
orbitNumber_
( 0 ),
eventNumber_
( 0 ),
29
channelMap_
( 0 ),
l1ALatency_
( 0 ),
30
numberOfSamples_
( 0 ),
offsetOfSamples_
( 0 ),
pllInfo_
( 0 )
31
{}
32
33
// Comparison
34
bool
35
TotemTimingEventInfo::operator==
(
const
TotemTimingEventInfo
&
eventInfo
)
const
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
TotemTimingEventInfo::offsetOfSamples_
uint8_t offsetOfSamples_
Definition:
TotemTimingEventInfo.h:175
TotemTimingEventInfo::orbitNumber_
uint32_t orbitNumber_
Definition:
TotemTimingEventInfo.h:170
TotemTimingEventInfo::hwId_
uint8_t hwId_
Definition:
TotemTimingEventInfo.h:167
TotemTimingEventInfo::l1ATimestamp_
uint64_t l1ATimestamp_
Definition:
TotemTimingEventInfo.h:168
TotemTimingEventInfo
Definition:
TotemTimingEventInfo.h:17
TotemTimingEventInfo.h
TotemTimingEventInfo::numberOfSamples_
uint8_t numberOfSamples_
Definition:
TotemTimingEventInfo.h:174
TotemTimingEventInfo::l1ALatency_
uint16_t l1ALatency_
Definition:
TotemTimingEventInfo.h:173
TotemTimingEventInfo::eventNumber_
uint32_t eventNumber_
Definition:
TotemTimingEventInfo.h:171
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:35
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
TotemTimingEventInfo::bunchNumber_
uint16_t bunchNumber_
Definition:
TotemTimingEventInfo.h:169
TotemTimingEventInfo::channelMap_
uint16_t channelMap_
Definition:
TotemTimingEventInfo.h:172
dumpTauVariables_cfi.eventInfo
eventInfo
add run, event number and lumi section
Definition:
dumpTauVariables_cfi.py:12
numberOfSamples
Definition:
TotemSampicFrame.h:49
TotemTimingEventInfo::TotemTimingEventInfo
TotemTimingEventInfo()
Definition:
TotemTimingEventInfo.cc:26
TotemTimingEventInfo::pllInfo_
uint8_t pllInfo_
Definition:
TotemTimingEventInfo.h:176
Generated for CMSSW Reference Manual by
1.8.11