MpdCpcHit.cxx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //--------------------------------------------------------------------------
  2. //---- MpdCpcHit ----
  3. //--------------------------------------------------------------------------
  4. #include <iostream>
  5. using namespace std;
  6. #include "MpdCpcHit.h"
  7. // ----- Default constructor -------------------------------------------
  8. MpdCpcHit::MpdCpcHit()
  9. {
  10. fFlag = 1;
  11. }
  12. // ----- Standard constructor ------------------------------------------
  13. MpdCpcHit::MpdCpcHit(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. MpdCpcHit::MpdCpcHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index)
  20. : FairHit(detID, pos, dpos, index)
  21. {
  22. }
  23. // ----- Destructor ----------------------------------------------------
  24. MpdCpcHit::~MpdCpcHit() { }
  25. // ----- Print -----------------------------------------------------------
  26. void MpdCpcHit::Print(const Option_t* opt) const
  27. {
  28. cout << "-I- MpdCpcHit" << 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(MpdCpcHit)