MpdGenTrack.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #include <TNamed.h>
  2. #include <TLorentzVector.h>
  3. #ifndef MPDGENTRACK_H
  4. #define MPDGENTRACK_H
  5. class MpdGenTrack : public TNamed {
  6. public:
  7. MpdGenTrack();
  8. ~MpdGenTrack();
  9. void SetXYZT(Double_t x, Double_t y, Double_t z, Double_t t) {
  10. fX = x;
  11. fY = y;
  12. fZ = z;
  13. fT = t;
  14. }
  15. TLorentzVector GetCoordinates() {
  16. TLorentzVector coords;
  17. coords.SetXYZT(fX, fY, fZ, fT);
  18. return coords;
  19. }
  20. void SetPxyz(Double_t px, Double_t py, Double_t pz) {
  21. fPx = px;
  22. fPy = py;
  23. fPz = pz;
  24. }
  25. TVector3 GetMomentum() {
  26. TVector3 mom;
  27. mom.SetXYZ(fPx, fPy, fPz);
  28. return mom;
  29. }
  30. void SetE(Double_t ene) {
  31. fEne = ene;
  32. }
  33. void SetImpact(Double_t imp) {
  34. fImp = imp;
  35. }
  36. void SetPdg(Int_t pdg) {
  37. fPdg = pdg;
  38. }
  39. void SetIsUsed(Bool_t flag) {
  40. isUsed = flag;
  41. }
  42. Bool_t GetIsUsed() {
  43. return isUsed;
  44. }
  45. private:
  46. Double_t fImp;
  47. Double_t fX;
  48. Double_t fY;
  49. Double_t fZ;
  50. Double_t fT;
  51. Double_t fPx;
  52. Double_t fPy;
  53. Double_t fPz;
  54. Double_t fEne;
  55. Int_t fPdg;
  56. Bool_t isUsed;
  57. ClassDef(MpdGenTrack, 1);
  58. };
  59. #endif