Oscar97Track.cxx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #include "Oscar97Track.h"
  2. ClassImp(Oscar97Track)
  3. //________________
  4. Oscar97Track::Oscar97Track() :
  5. mId(0), mPdgId(0), mPx(0.), mPy(0.), mPz(0.), mE(0.),
  6. mMass(0.), mXfr(0.), mYfr(0.), mZfr(0.), mTfr(0.),
  7. mIsSpec(0.)
  8. { }
  9. //________________
  10. Oscar97Track &Oscar97Track::operator=(const Oscar97Track &orig) {
  11. if (this != &orig) {
  12. mId = orig.mId;
  13. mPdgId = orig.mPdgId;
  14. mPx = orig.mPx;
  15. mPy = orig.mPy;
  16. mPz = orig.mPz;
  17. mE = orig.mE;
  18. mMass = orig.mMass;
  19. mXfr = orig.mXfr;
  20. mYfr = orig.mYfr;
  21. mZfr = orig.mZfr;
  22. mTfr = orig.mTfr;
  23. mIsSpec = orig.mIsSpec;
  24. }
  25. return *this;
  26. }
  27. //________________
  28. void Oscar97Track::SetTrack(Int_t id, Int_t pdgId,
  29. Float_t px, Float_t py, Float_t pz,
  30. Float_t energy, Float_t mass,
  31. Float_t xFr, Float_t yFr, Float_t zFr,
  32. Float_t tFr, Bool_t isSpec) {
  33. mId = id;
  34. mPdgId = pdgId;
  35. mPx = px;
  36. mPy = py;
  37. mPz = pz;
  38. mE = energy;
  39. mMass = mass;
  40. mXfr = xFr;
  41. mYfr = yFr;
  42. mZfr = zFr;
  43. mTfr = tFr;
  44. mIsSpec = isSpec;
  45. }