TpcFoundCluster.cxx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //-----------------------------------------------------------
  2. // File and Version Information:
  3. // $Id$
  4. //
  5. // Description:
  6. // Implementation of class TpcFoundCluster
  7. //
  8. //
  9. // Environment:
  10. // Software developed for the MPD at NICA.
  11. //
  12. // Author List:
  13. // Salmin Roman (original author)
  14. //
  15. //
  16. //-----------------------------------------------------------
  17. #include "TpcFoundCluster.h"
  18. #include "TpcPadPlane.h"
  19. ClassImp(TpcFoundCluster);
  20. TpcFoundCluster::TpcFoundCluster():
  21. _localPos(0,0, 0), _sectorID(-1)
  22. {}
  23. TpcFoundCluster::TpcFoundCluster(const TVector3 &pos, Int_t sectorID, UInt_t peak, Double_t valey, Double_t charge, UInt_t MCTrackID):
  24. _localPos(pos), _sectorID(sectorID), _peak(peak), _meanValey(valey),_charge(charge), _MCTrackID(MCTrackID) //charge added by Sergey Merts
  25. {
  26. }
  27. TpcFoundCluster::~TpcFoundCluster()
  28. {}
  29. TVector3 TpcFoundCluster::globalPos() const
  30. {
  31. const TpcPadPlane* padPlane = TpcPadPlane::Instance();
  32. return padPlane->fromSectorReferenceFrame(_localPos, _sectorID);
  33. }