Class Reference for E1039 Core & Analysis Software
PHObject.h
Go to the documentation of this file.
1 #ifndef PHOBJECT_H__
2 #define PHOBJECT_H__
3 
4 // Declaration of class PHObject
5 // Purpose: Tiny layer between TObject and output objects and
6 // enforce some standards
7 // Author: Chris Pinkenburg
8 
9 #include <TObject.h>
10 #include <iostream>
11 
12 class PHObject : public TObject
13 {
14  public:
16  PHObject();
17 
19  virtual ~PHObject() {}
21  virtual PHObject* clone() const;
22 
26  virtual void identify(std::ostream& os = std::cout) const;
27 
29  virtual void Reset();
30 
32  virtual int isValid() const;
33  virtual int isValid(const float) const;
34  virtual int isValid(const double) const;
35  virtual int isValid(const int) const;
36  virtual int isValid(const unsigned int) const;
37 
38  virtual int isImplemented(const float f) const;
39  virtual int isImplemented(const double f) const;
40  virtual int isImplemented(const int i) const;
41  virtual int isImplemented(const unsigned int i) const;
42  void SplitLevel(const int i) { split = i; }
43  int SplitLevel() const { return split; }
44  void BufferSize(const int i) { bufSize = i; }
45  int BufferSize() const { return bufSize; }
46  private:
47  int split;
48  int bufSize;
49 
50  ClassDef(PHObject, 0) // no I/O
51 };
52 
53 #endif /* PHOBJECT_H__ */
int BufferSize() const
Definition: PHObject.h:45
virtual void Reset()
Clear Event.
Definition: PHObject.cc:26
PHObject()
ctor
Definition: PHObject.cc:6
virtual int isImplemented(const float f) const
Definition: PHObject.cc:89
virtual void identify(std::ostream &os=std::cout) const
Definition: PHObject.cc:21
void SplitLevel(const int i)
Definition: PHObject.h:42
virtual ~PHObject()
dtor
Definition: PHObject.h:19
void BufferSize(const int i)
Definition: PHObject.h:44
int SplitLevel() const
Definition: PHObject.h:43
virtual PHObject * clone() const
Virtual copy constructor.
Definition: PHObject.cc:14
virtual int isValid() const
isValid returns non zero if object contains vailid data
Definition: PHObject.cc:44