Class Reference for E1039 Core & Analysis Software
PHG4EventHeader.h
Go to the documentation of this file.
1 #ifndef PHG4EVENTHEADER_H
2 #define PHG4EVENTHEADER_H
3 
4 #include <phool/PHObject.h>
5 #include <phool/phool.h>
6 
7 #include <cmath>
8 #include <iostream>
9 
12 {
13  public:
14 
16  virtual ~PHG4EventHeader() {}
17 
19  virtual void Reset()
20  {
21  std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
22  return;
23  }
24 
28  virtual void identify(std::ostream& os = std::cout) const
29  {
30  os << "identify yourself: virtual PHG4EventHeader Object" << std::endl;
31  return;
32  }
33 
35  virtual int isValid() const
36  {
37  std::cout << PHWHERE << "isValid not implemented by daughter class" << std::endl;
38  return 0;
39  }
40 
42  virtual int get_EvtSequence() const {return -9999;}
44  virtual void set_EvtSequence(const int /*ival*/) {return;}
45 
46  virtual float get_ImpactParameter() const {return NAN;}
47  virtual void set_ImpactParameter(const float) {return;}
48 
49  virtual float get_EventPlaneAngle() const {return NAN;}
50  virtual void set_EventPlaneAngle(const float) {return;}
51 
52 
53  private: // prevent doc++ from showing ClassDef
54  ClassDef(PHG4EventHeader,1)
55 
56 };
57 
58 #endif
59 
60 
61 
virtual void set_ImpactParameter(const float)
virtual void set_EvtSequence(const int)
set Event Number
virtual void identify(std::ostream &os=std::cout) const
virtual float get_EventPlaneAngle() const
virtual float get_ImpactParameter() const
virtual int isValid() const
isValid returns non zero if object contains valid data
virtual void Reset()
Clear Event.
virtual int get_EvtSequence() const
get Event Number
virtual ~PHG4EventHeader()
dtor
virtual void set_EventPlaneAngle(const float)
#define PHWHERE
Definition: phool.h:23