MpdEmcMatch.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //--------------------------------------------------------------------
  2. //
  3. // Description:
  4. // MPD EMC track-to-rec.point match object
  5. //
  6. //
  7. // Author List:
  8. // Alexander Zinchenko LHEP, JINR, Dubna - 2-June-2016
  9. //
  10. //--------------------------------------------------------------------
  11. #ifndef MPDEMCMATCH_H
  12. #define MPDEMCMATCH_H 1
  13. #include <TObject.h>
  14. class MpdEmcMatch : public TObject
  15. {
  16. public:
  17. /** Default constructor **/
  18. MpdEmcMatch();
  19. /** Standard constructor**/
  20. MpdEmcMatch(Int_t trackInd, Int_t recpInd, Double_t distT, Double_t distL, Double_t ener, Double_t trLeng);
  21. /** Destructor **/
  22. virtual ~MpdEmcMatch();
  23. /** Accessors **/
  24. Int_t GetTrackInd() const { return fInds[0]; }
  25. Int_t GetRecpInd() const { return fInds[1]; }
  26. Double_t GetChi2() const { return fChi2; }
  27. Double_t GetChi2pi() const { return fChi2pi; }
  28. Double_t GetEnergy() const { return fEnergy; }
  29. Double_t GetTrLeng() const { return fTrLeng; }
  30. Double_t GetDist(Int_t indx = 0) const { return fDist[indx]; }
  31. /** Modifiers **/
  32. void SetTrackInd(Int_t ind) { fInds[0] = ind; }
  33. void SetRecpInd(Int_t ind) { fInds[1] = ind; }
  34. void SetDist(Double_t dist, Int_t indx = 0) { fDist[indx] = dist; }
  35. void SetChi2(Double_t c2) { fChi2 = c2; }
  36. void SetChi2pi(Double_t c2) { fChi2pi = c2; }
  37. void SetEnergy(Double_t e) { fEnergy = e; }
  38. void SetTrLeng(Double_t leng) { fTrLeng = leng; }
  39. protected:
  40. Int_t fInds[2]; // track and rec. point indices
  41. Double32_t fDist[2]; // rec.point-to-track distance (across - along track)
  42. Double32_t fEnergy; // rec.point energy
  43. Double32_t fTrLeng; // extrap. track length in EMC
  44. Double32_t fChi2; // chi2 of match
  45. Double32_t fChi2pi; // chi2 of match for pi+-
  46. ClassDef(MpdEmcMatch, 1);
  47. };
  48. #endif