MpdFsaHit.cxx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //--------------------------------------------------------------------------
  2. //---- MpdFsaHit ----
  3. //--------------------------------------------------------------------------
  4. #include <iostream>
  5. using namespace std;
  6. #include "MpdFsaHit.h"
  7. // ----- Default constructor -------------------------------------------
  8. MpdFsaHit::MpdFsaHit()
  9. {
  10. fFlag = 1;
  11. }
  12. // ----- Standard constructor ------------------------------------------
  13. MpdFsaHit::MpdFsaHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index, Int_t flag)
  14. : FairHit(detID, pos, dpos, index)
  15. {
  16. fFlag = flag;
  17. }
  18. // ----- Constructor without flag ------------------------------------------
  19. MpdFsaHit::MpdFsaHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index)
  20. : FairHit(detID, pos, dpos, index)
  21. {
  22. }
  23. // ----- Destructor ----------------------------------------------------
  24. MpdFsaHit::~MpdFsaHit() { }
  25. // ----- Print -----------------------------------------------------------
  26. void MpdFsaHit::Print(const Option_t* opt) const
  27. {
  28. cout << "-I- MpdFsaHit" << endl;
  29. cout << " DetectorID: " << fDetectorID << endl;
  30. cout << " Position: (" << fX
  31. << ", " << fY
  32. << ", " << fZ << ") cm"
  33. << endl;
  34. cout << " Position error: (" << fDx
  35. << ", " << fDy
  36. << ", " << fDz << ") cm"
  37. << endl;
  38. cout << " Flag: " << fFlag
  39. << endl;
  40. }
  41. // -------------------------------------------------------------------------
  42. ClassImp(MpdFsaHit)