Class Reference for E1039 Core & Analysis Software
SyncObject.h
Go to the documentation of this file.
1 #ifndef __SYNCOBJECT_H
2 #define __SYNCOBJECT_H
3 
4 #include "PHObject.h"
5 
6 #include <iostream>
7 
9 class SyncObject: public PHObject
10 {
11  public:
12 
14  virtual ~SyncObject() {}
15 
17  virtual void Reset();
18 
22  virtual void identify(std::ostream& os = std::cout) const;
23 
24 
26  virtual int isValid() const;
27 
28  virtual SyncObject* clone() const;
29  virtual SyncObject& operator=(const SyncObject &source);
30  virtual int Different(const SyncObject *other) const;
31 
33  virtual void EventCounter(const int /*ival*/) {return;}
34 
36  virtual void EventNumber(const int /*ival*/) {return;}
37 
38 
40  virtual void SegmentNumber(const int /*ival*/) {return;}
41 
43  virtual void RunNumber(const int /*ival*/) {return;}
44 
45  protected:
47  virtual int EventNumber() const {return -9999;}
49  virtual int EventCounter() const {return -9999;}
51  virtual int RunNumber() const {return -9999;}
53  virtual int SegmentNumber() const {return -9999;}
54 
55  private: // prevent doc++ from showing ClassDef
56  ClassDef(SyncObject,1)
57 
58  friend class SyncObjectv1;
59  friend class SyncObjectv2;
60  friend class Fun4AllDstInputManager;
61  friend class DumpSyncObject;
62  friend class SegmentSelect;
63 };
64 
65 #endif
virtual ~SyncObject()
dtor
Definition: SyncObject.h:14
virtual SyncObject * clone() const
Virtual copy constructor.
virtual int isValid() const
isValid returns non zero if object contains valid data
virtual int EventNumber() const
get Event Number
Definition: SyncObject.h:47
friend class SegmentSelect
Definition: SyncObject.h:60
virtual SyncObject & operator=(const SyncObject &source)
virtual void SegmentNumber(const int)
set Segment Number
Definition: SyncObject.h:40
virtual int Different(const SyncObject *other) const
virtual void EventNumber(const int)
set Event Number
Definition: SyncObject.h:36
virtual void identify(std::ostream &os=std::cout) const
virtual int RunNumber() const
get Run Number
Definition: SyncObject.h:51
virtual int SegmentNumber() const
get Segment Number
Definition: SyncObject.h:53
friend class DumpSyncObject
Definition: SyncObject.h:59
virtual void EventCounter(const int)
set Event Counter
Definition: SyncObject.h:33
virtual int EventCounter() const
get Event Counter
Definition: SyncObject.h:49
virtual void Reset()
Clear Sync.
virtual void RunNumber(const int)
set Run Number
Definition: SyncObject.h:43