Class Reference for E1039 Core & Analysis Software
SyncObjectv2.cc
Go to the documentation of this file.
1 #include "SyncObjectv2.h"
2 #include <iostream>
3 
4 
6 
7 using namespace std;
8 
10  segmentnumber(-999999)
11 {
12  return;
13 }
14 
16 {
17  EventCounter(source.EventCounter());
18  EventNumber(source.EventNumber());
19  RunNumber(source.RunNumber());
20  SegmentNumber(source.SegmentNumber());
21 }
22 
24 {
25  segmentnumber = -999999;
27  return;
28 }
29 
30 void SyncObjectv2::identify(ostream& out) const
31 {
32  out << "identify yourself: I am an SyncObjectv2 Object" << endl;
33  out << "Event no: " << eventnumber
34  << ", Counter: " << eventcounter
35  << ", Segment Number: " << segmentnumber
36  << ", Run Number: " << runnumber
37  << endl;
38 
39  return;
40 }
41 
ClassImp(SyncObjectv2) using namespace std
virtual void SegmentNumber(const int)
set Segment Number
Definition: SyncObject.h:40
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 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 Reset()
Clear Event.
Definition: SyncObjectv2.cc:23
void identify(std::ostream &os=std::cout) const
Definition: SyncObjectv2.cc:30
int SegmentNumber() const
get Segment Number
Definition: SyncObjectv2.h:33
SyncObjectv2()
ctor
Definition: SyncObjectv2.cc:9