BmdPoint.cxx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //-----------------------------------------------------------
  2. // File and Version Information:
  3. // $Id$
  4. //
  5. // Description:
  6. // Implementation of class BmdPoint
  7. // see BmdPoint.hh for details
  8. //
  9. // Environment:
  10. // Software developed for the PANDA Detector at FAIR.
  11. //
  12. // Author List:
  13. // Pedro Gonzalez TUM (original author)
  14. //
  15. //
  16. //-----------------------------------------------------------
  17. // Panda Headers ----------------------
  18. // This Class' Header ------------------
  19. #include "BmdPoint.h"
  20. // C/C++ Headers ----------------------
  21. #include <iostream>
  22. // Collaborating Class Headers --------
  23. // Class Member definitions -----------
  24. BmdPoint::BmdPoint()
  25. : FairMCPoint()
  26. {}
  27. BmdPoint::BmdPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom,
  28. Double_t tof, Double_t length, Double_t eLoss)
  29. : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
  30. {
  31. pT = mom.Pt();
  32. eta = mom.Eta();
  33. }
  34. void
  35. BmdPoint::Print(const Option_t*) const {
  36. std::cout<<"BmdPoint\n"
  37. <<" Pos("<<fX<<","<<fY<<","<<fZ<<")\n"
  38. <<" dE="<< fELoss << fTrackID
  39. <<std::endl;
  40. }
  41. ClassImp(BmdPoint)