Oscar97Track.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef Oscar97Track_h
  2. #define Oscar97Track_h
  3. #include <TObject.h>
  4. #include <TClonesArray.h>
  5. #include <TRef.h>
  6. #include <TH1.h>
  7. #include <TBits.h>
  8. //_________________
  9. class Oscar97Track : public TObject {
  10. private:
  11. Int_t mId; // Number of the particle
  12. Int_t mPdgId; // PDG code
  13. Float_t mPx; // Px (GeV/c)
  14. Float_t mPy; // Py (GeV/c)
  15. Float_t mPz; // Pz (GeV/c)
  16. Float_t mE; // Energy (GeV/c)
  17. Float_t mMass; // Particle mass (GeV/c)
  18. Float_t mXfr; // x at freeze-out (fm)
  19. Float_t mYfr; // y at freeze-out (fm)
  20. Float_t mZfr; // z at freeze-out (fm)
  21. Float_t mTfr; // Freeze-out time (fm/c)
  22. Bool_t mIsSpec; // Is spectator if x,y,z and t < 0.0001
  23. public:
  24. Oscar97Track();
  25. Oscar97Track &operator=(const Oscar97Track &orig);
  26. ~Oscar97Track() { /* nothing */ }
  27. void SetTrack(Int_t id, Int_t pdgId,
  28. Float_t px, Float_t py, Float_t pz,
  29. Float_t energy, Float_t mass,
  30. Float_t xFr, Float_t yFr, Float_t zFr,
  31. Float_t tFr, Bool_t isSpec);
  32. Int_t GetId() const { return mId; }
  33. Int_t GetPdgId() const { return mPdgId; }
  34. Float_t GetPx() const { return mPx; }
  35. Float_t GetPy() const { return mPy; }
  36. Float_t GetPz() const { return mPz; }
  37. Float_t GetE() const { return mE; }
  38. Float_t GetEnergy() const { return mE; }
  39. Float_t GetMass() const { return mMass; }
  40. Float_t GetXfr() const { return mXfr; }
  41. Float_t GetYfr() const { return mYfr; }
  42. Float_t GetZfr() const { return mZfr; }
  43. Float_t GetTfr() const { return mTfr; }
  44. Bool_t GetIsSpec() const { return mIsSpec; }
  45. void SetId(Int_t id) { mId = id; }
  46. void SetPdgId(Int_t pdgId) { mPdgId = pdgId; }
  47. void SetPx(Float_t px) { mPx = px; }
  48. void SetPy(Float_t py) { mPy = py; }
  49. void SetPz(Float_t pz) { mPz = pz;}
  50. void SetE(Float_t energy) { mE = energy; }
  51. void SetMass(Float_t mass) { mMass = mass; }
  52. void SetXfr(Float_t xFr) { mXfr = xFr; }
  53. void SetYfr(Float_t yFr) { mYfr = yFr; }
  54. void SetZfr(Float_t zFr) { mZfr = zFr; }
  55. void SetTfr(Float_t tFr) { mTfr = tFr; }
  56. void SetIsSpec(Bool_t isSpec) { mIsSpec = isSpec; }
  57. ClassDef(Oscar97Track, 1)
  58. };
  59. #endif