File indexing completed on 2025-08-06 08:19:21
0001
0002
0003 #ifndef G4MAIN_PHG4EVENTHEADER_H
0004 #define G4MAIN_PHG4EVENTHEADER_H
0005
0006 #include <phool/PHObject.h>
0007 #include <phool/phool.h>
0008
0009 #include <cmath>
0010 #include <iostream>
0011
0012
0013 class PHG4EventHeader : public PHObject
0014 {
0015 public:
0016
0017 ~PHG4EventHeader() override {}
0018
0019
0020 void Reset() override
0021 {
0022 std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
0023 return;
0024 }
0025
0026
0027
0028
0029 void identify(std::ostream& os = std::cout) const override
0030 {
0031 os << "identify yourself: virtual PHG4EventHeader Object" << std::endl;
0032 return;
0033 }
0034
0035
0036 int isValid() const override
0037 {
0038 std::cout << PHWHERE << "isValid not implemented by daughter class" << std::endl;
0039 return 0;
0040 }
0041
0042
0043 virtual int get_EvtSequence() const { return -9999; }
0044
0045 virtual void set_EvtSequence(const int ) { return; }
0046
0047 virtual float get_ImpactParameter() const { return NAN; }
0048 virtual void set_ImpactParameter(const float) { return; }
0049
0050 virtual float get_EventPlaneAngle() const { return NAN; }
0051 virtual void set_EventPlaneAngle(const float) { return; }
0052
0053 private:
0054 ClassDefOverride(PHG4EventHeader, 1)
0055 };
0056
0057 #endif