Analysis Software
Documentation for sPHENIX simulation software
 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 
4 {
5  EventCounter(source.EventCounter());
6  EventNumber(source.EventNumber());
7  RunNumber(source.RunNumber());
9 }
10 
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 
33 {
34  return ((eventcounter) ? 1 : 0); // return 1 if eventcounter is not zero
35 }