Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:19:21

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
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   /// dtor
0017   ~PHG4EventHeader() override {}
0018 
0019   /// Clear Event
0020   void Reset() override
0021   {
0022     std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
0023     return;
0024   }
0025 
0026   /** identify Function from PHObject
0027       @param os Output Stream
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   /// isValid returns non zero if object contains valid data
0036   int isValid() const override
0037   {
0038     std::cout << PHWHERE << "isValid not implemented by daughter class" << std::endl;
0039     return 0;
0040   }
0041 
0042   /// get Event Number
0043   virtual int get_EvtSequence() const { return -9999; }
0044   /// set Event Number
0045   virtual void set_EvtSequence(const int /*ival*/) { 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:  // prevent doc++ from showing ClassDefOverride
0054   ClassDefOverride(PHG4EventHeader, 1)
0055 };
0056 
0057 #endif