Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SyncObjectv1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SyncObjectv1.cc
1
#include "
SyncObjectv1.h
"
2
3
SyncObjectv1::SyncObjectv1
(
const
SyncObject
&
source
)
4
{
5
EventCounter
(source.
EventCounter
());
6
EventNumber
(source.
EventNumber
());
7
RunNumber
(source.
RunNumber
());
8
SegmentNumber
(source.
SegmentNumber
());
9
}
10
11
void
SyncObjectv1::Reset
()
12
{
13
eventnumber
= 0;
14
runnumber
= 0;
15
eventcounter
= 0;
16
segmentnumber
= -999999;
17
return
;
18
}
19
20
void
SyncObjectv1::identify
(std::ostream&
out
)
const
21
{
22
out <<
"identify yourself: I am an SyncObjectv1 Object"
<< std::endl;
23
out <<
"Event no: "
<<
eventnumber
24
<<
", Counter: "
<<
eventcounter
25
<<
", Segment Number: "
<<
segmentnumber
26
<<
", Run Number: "
<<
runnumber
27
<< std::endl;
28
29
return
;
30
}
31
32
int
SyncObjectv1::isValid
()
const
33
{
34
return
((
eventcounter
) ? 1 : 0);
// return 1 if eventcounter is not zero
35
}
coresoftware
blob
master
offline
framework
ffaobjects
SyncObjectv1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration