MpdEmcMatch.cxx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //-----------------------------------------------------------
  2. //
  3. // Description:
  4. // Implementation of class MpdEmcMatch
  5. // see MpdEmcMatch.h for details
  6. //
  7. // Author List:
  8. // Alexander Zinchenko LHEP, JINR, Dubna - 2-June-2016
  9. //
  10. //-----------------------------------------------------------
  11. #include "MpdEmcMatch.h"
  12. #include <iostream>
  13. using namespace std;
  14. // ----- Default constructor -------------------------------------------
  15. MpdEmcMatch::MpdEmcMatch() : TObject(),
  16. fEnergy(0.0), fChi2(999.0)
  17. {
  18. fDist[0] = fDist[1] = 0.0;
  19. fInds[0] = fInds[1] = -1;
  20. }
  21. // ----- Standard constructor ------------------------------------------
  22. MpdEmcMatch::MpdEmcMatch(Int_t trackInd, Int_t recpInd, Double_t distT, Double_t distL,
  23. Double_t ener, Double_t trLeng) : TObject(),
  24. fEnergy(ener), fTrLeng(trLeng), fChi2(999.0), fChi2pi(999.0)
  25. {
  26. fDist[0] = distT;
  27. fDist[1] = distL;
  28. fInds[0] = trackInd;
  29. fInds[1] = recpInd;
  30. }
  31. // ----- Destructor ----------------------------------------------------
  32. MpdEmcMatch::~MpdEmcMatch()
  33. {
  34. }
  35. // -------------------------------------------------------------------------
  36. ClassImp(MpdEmcMatch)