StFemtoV0.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * \class StFemtoV0
  3. * \brief Keeps V0 daugheter IDs
  4. *
  5. * The class keeps indices of the positive and negative
  6. * daughters from StFemtoTrack StFemtoTrack array
  7. *
  8. * \author Egor Alpatov, Grigory Nigmatkulov; e-mail: nigmatkulov@gmail.com
  9. * \date November 20, 2018
  10. */
  11. #ifndef StFemtoV0_h
  12. #define StFemtoV0_h
  13. // ROOT headers
  14. #include "TObject.h"
  15. //________________
  16. class StFemtoV0 : public TObject {
  17. public:
  18. /// Default costructor
  19. StFemtoV0();
  20. /// Copy constructor
  21. StFemtoV0(const StFemtoV0 &v0);
  22. /// Constructor that takes indices of positive and negative daughters
  23. /// in the StFemtoTrack array
  24. StFemtoV0(const Int_t& posId, const Int_t& negId)
  25. { mPosId = posId; mNegId = negId; }
  26. /// Destructor
  27. virtual ~StFemtoV0() { /* empty */ }
  28. /// Print V0 information
  29. void print();
  30. //
  31. // Setters
  32. //
  33. /// Set index of positive track in StFemtoTrack array
  34. void setPosId(const Int_t& pos) { mPosId = pos; }
  35. /// Set index of negative track in StFemtoTrack array
  36. void setNegId(const Int_t& neg) { mNegId = neg; }
  37. //
  38. // Getters
  39. //
  40. /// Return index of positive track in StFemtoTrack array
  41. Int_t posDaughterId() const { return mPosId; }
  42. /// Return index of negative track in StFemtoTrack array
  43. Int_t negDaughterId() const { return mNegId; }
  44. private:
  45. /// Index of positive track in StFemtoTrack array
  46. UShort_t mPosId;
  47. /// Index of negative track in StFemtoTrack array
  48. UShort_t mNegId;
  49. ClassDef(StFemtoV0, 1);
  50. };
  51. #endif // #define StFemtoV0_h