Class Reference for E1039 Core & Analysis Software
SyncObjectv2.h
Go to the documentation of this file.
1 #ifndef SYNCOBJECTv2_H
2 #define SYNCOBJECTv2_H
3 
4 #include "SyncObjectv1.h"
5 #include <iostream>
6 
8 {
9  public:
10 
12  SyncObjectv2();
13  SyncObjectv2(const SyncObject&);
14 
15  SyncObjectv2 *clone() const {return new SyncObjectv2(*this);}
17  virtual ~SyncObjectv2() {}
18 
20  void Reset();
21 
25  void identify(std::ostream& os = std::cout) const;
26 
28  void SegmentNumber(const int ival) {segmentnumber = ival;}
29 
30  protected:
31 
33  int SegmentNumber() const {return segmentnumber;}
34 
35  int segmentnumber; // segment number
36 
37  private: // prevent doc++ from showing ClassDef
38  ClassDef(SyncObjectv2,1)
39 };
40 
41 #endif
void Reset()
Clear Event.
Definition: SyncObjectv2.cc:23
void SegmentNumber(const int ival)
set Segment Number
Definition: SyncObjectv2.h:28
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
SyncObjectv2 * clone() const
Virtual copy constructor.
Definition: SyncObjectv2.h:15
virtual ~SyncObjectv2()
dtor
Definition: SyncObjectv2.h:17