CbmSttHit.cxx 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /** CbmStsMapsHit
  2. *@author Michael Deveaux <m.deveaux@gsi.de>
  3. **Acknowledgements to M. Al-Turany, D. Bertini, G. Gaycken
  4. **Version beta 0.1 (02.02.2005)
  5. **/
  6. #include "CbmSttHit.h"
  7. #include <iostream>
  8. #include "TMath.h"
  9. /** Default constructor **/
  10. CbmSttHit::CbmSttHit()
  11. {
  12. Clear();
  13. }
  14. /** Standard constructor **/
  15. CbmSttHit::CbmSttHit(Int_t detID, TVector3& pos, TVector3& dpos,
  16. Int_t index, Int_t flag, Double_t isochrone,
  17. Double_t isochroneError, TVector3 wireDir)
  18. : FairHit(detID, pos, dpos, index)
  19. {
  20. fIsochrone = isochrone;
  21. fIsochroneError = isochroneError;
  22. fRadial = sqrt(pos.X() * pos.X() + pos.Y() * pos.Y());
  23. fWireDirection = wireDir;
  24. fAssigned = kFALSE;
  25. // stt1
  26. fXint = fX;
  27. fYint = fY;
  28. fZint = fZ;
  29. }
  30. CbmSttHit::CbmSttHit(Int_t detID, TVector3& pos, TVector3& dpos, Int_t index)
  31. : FairHit(detID, pos, dpos, index)
  32. {
  33. Clear();
  34. }
  35. //CbmSttHit::CbmSttHit(Int_t trackID,Int_t eventID,Double_t p, Double_t rr, Double_t rt,TString nam,TVector3 center,TVector3 tubemax,TVector3 tubemin) {
  36. CbmSttHit::CbmSttHit(Int_t detID, TVector3& pos, TVector3& dpos, Int_t index, Int_t trackID, Double_t p, Double_t rr, Double_t rt, Double_t isochroneError, TVector3 wireDir)
  37. : FairHit(detID, pos, dpos, index){
  38. fPulse = p;
  39. fRsim = rr;
  40. fRtrue = rt;
  41. // fFlag = 1; // ??
  42. // fnam = nam;
  43. fTrackID = trackID;
  44. // fEventID = eventID; // ??
  45. // tube_c = center; // ??
  46. // tube_max = tubemax; // ??
  47. // tube_min = tubemin; // ??
  48. // stt2
  49. fIsochrone = rr; // isochrone = simulated radius <----
  50. fIsochroneError = isochroneError;
  51. fRadial = sqrt(pos.X() * pos.X() + pos.Y() * pos.Y());
  52. fWireDirection = wireDir;
  53. fAssigned = kFALSE;
  54. fXint = fX;
  55. fYint = fY;
  56. fZint = fZ;
  57. }
  58. /** Public method Clear **/
  59. void CbmSttHit::Clear()
  60. {
  61. fIsochrone = 0.;
  62. fIsochroneError = 0.;
  63. fRadial = 0.;
  64. fWireDirection.SetXYZ(0., 0., 0.);
  65. fAssigned = kFALSE;
  66. }
  67. /** Destructor **/
  68. CbmSttHit::~CbmSttHit()
  69. {
  70. }
  71. ClassImp(CbmSttHit)