StFemtoXi.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * \class StFemtoXi
  3. * \brief The class keeps pointers to the V0 and track
  4. * in the StFemtoV0 and StFemtoTrack arrays
  5. *
  6. * The StFemtoXi holds indices of V0 and track in the
  7. * StFemtoV0 and StFemtoTrack arrays
  8. *
  9. * \author Egor Alpatov, Grigory Nigmatkulov; e-mail: nigmatkulov@gmail.com
  10. * \date November 20, 2018
  11. */
  12. #ifndef StFemtoXi_h
  13. #define StFemtoXi_h
  14. // ROOT headers
  15. #include "TObject.h"
  16. //________________
  17. class StFemtoXi : public TObject {
  18. public:
  19. /// Default costructor
  20. StFemtoXi();
  21. /// Copy constructor
  22. StFemtoXi(const StFemtoXi &xi);
  23. /// Constructor that takes indices of V0 and track
  24. StFemtoXi(const Int_t& v0Id, const Int_t& trkId)
  25. { mV0Id = v0Id; mTrackId = trkId; }
  26. /// Destructor
  27. virtual ~StFemtoXi() { /* empty */}
  28. /// Print Xi information
  29. void print();
  30. //
  31. // Setters
  32. //
  33. void setV0Id(const Int_t& v0Id) { mV0Id = v0Id; }
  34. void setTrackId(const Int_t& trackId) { mTrackId = trackId; }
  35. //
  36. // Getters
  37. //
  38. Int_t v0Id() const { return mV0Id; }
  39. Int_t trackId() const { return mTrackId; }
  40. private:
  41. /// Index of Lambda in the StFemtoV0 array
  42. UShort_t mV0Id;
  43. /// Index of bachelor in the StFemtoTrack array
  44. UShort_t mTrackId;
  45. ClassDef(StFemtoXi, 1);
  46. };
  47. #endif // #define StFemtoXi_h