Class Reference for E1039 Core & Analysis Software
SyncObjectv1.cc
Go to the documentation of this file.
1 #include "SyncObjectv1.h"
2 
3 using namespace std;
5 
7  eventcounter(0),
8  eventnumber(-999999),
9  runnumber(-999999)
10 {
11  return;
12 }
13 
15 {
16  EventCounter(source.EventCounter());
17  EventNumber(source.EventNumber());
18  RunNumber(source.RunNumber());
19 }
20 
22 {
23  eventnumber = -999999;
24  runnumber = -999999;
25  eventcounter = 0;
26  return;
27 }
28 
29 void SyncObjectv1::identify(ostream& out) const
30 {
31  out << "identify yourself: I am an SyncObjectv1 Object" << endl;
32  out << "Event no: " << eventnumber
33  << ", Counter: " << eventcounter
34  << ", Run Number: " << runnumber
35  << endl;
36 
37  return;
38 }
39 
41 {
42  return((eventcounter) ? 1:0); // return 1 if eventcounter is not zero
43 }
44 
ClassImp(SyncObjectv1) SyncObjectv1
Definition: SyncObjectv1.cc:4
virtual void EventNumber(const int)
set Event Number
Definition: SyncObject.h:36
virtual void EventCounter(const int)
set Event Counter
Definition: SyncObject.h:33
virtual void RunNumber(const int)
set Run Number
Definition: SyncObject.h:43
void Reset()
Clear Event.
Definition: SyncObjectv1.cc:21
int isValid() const
isValid returns non zero if object contains valid data
Definition: SyncObjectv1.cc:40
int RunNumber() const
get Run Number
Definition: SyncObjectv1.h:45
int EventCounter() const
get Event Counter
Definition: SyncObjectv1.h:41
int EventNumber() const
get Event Number
Definition: SyncObjectv1.h:43
void identify(std::ostream &os=std::cout) const
Definition: SyncObjectv1.cc:29
SyncObjectv1()
ctor