Oscar97Event.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef Oscar97Event_h
  2. #define Oscar97Event_h
  3. #include <TObject.h>
  4. #include <TClonesArray.h>
  5. #include <TRef.h>
  6. #include <TH1.h>
  7. #include <TBits.h>
  8. #include "Oscar97Track.h"
  9. //_________________
  10. class Oscar97Event : public TObject {
  11. private:
  12. Int_t mEventNumber; // number of event
  13. Int_t mNTracks; // number of tracks
  14. Float_t mImpactPar; // Impact parameter (fm/c)
  15. Float_t mEventPlaneRot; // Rotation of the event plane
  16. // (fixed to 0. in UrQMD)
  17. TClonesArray *mTrack;
  18. public:
  19. Oscar97Event();
  20. Oscar97Event &operator=(const Oscar97Event &event);
  21. ~Oscar97Event();
  22. void Clear(Option_t* option= "");
  23. Oscar97Track *AddTrack(Int_t trackNum);
  24. //
  25. // Get methods
  26. //
  27. Int_t GetEventNumber() { return mEventNumber; }
  28. Int_t GetNTracks() { return mNTracks; }
  29. Float_t GetImpactPar() { return mImpactPar; }
  30. Float_t GetEventPlaneRot() { return mEventPlaneRot; }
  31. TClonesArray *GetTracks() { return mTrack; }
  32. //
  33. // Set methods
  34. //
  35. void SetEventNumber(Int_t eventNumber) { mEventNumber = eventNumber; }
  36. void SetNTracks(Int_t nTracks) { mNTracks = nTracks; }
  37. void SetImpactPar(Float_t impPar) { mImpactPar = impPar; }
  38. void SetEventPlaneRot(Float_t epr) { mEventPlaneRot = epr; }
  39. void SetTracks(TClonesArray *tracks) { mTrack = tracks; }
  40. ClassDef(Oscar97Event, 1)
  41. };
  42. #endif