FairRoot/PandaRoot
PndSttHelixHit.cxx
Go to the documentation of this file.
1 // ----- PndSttHelixHit source file -----
2 // ----- -----
3 // -------------------------------------------------------------------------
4 
5 #include "PndSttHelixHit.h"
6 
7 #include <iostream>
8 #include "TMath.h"
9 #include "TVector3.h"
10 #include "PndSttHit.h"
11 
12 #include "PndDetectorList.h"
13 
14 using namespace std;
15 
18  FairHit(), fHitIndex(0), fdEdx(0), fIsochrone(0), fIsochroneError(0), fTubeID(0)
19 {
20  Clear();
21 }
22 
23 PndSttHelixHit::PndSttHelixHit(Int_t detID, Int_t tubeID, Int_t hitindex, Int_t mcindex, TVector3& pos, TVector3& dpos, Double_t isochrone, Double_t isochroneError, Double_t dedx)
24  : FairHit(detID, pos, dpos, mcindex),
25  fHitIndex(hitindex), fdEdx(dedx), fIsochrone(isochrone), fIsochroneError(isochroneError), fTubeID(tubeID)
26 {
27  SetLink(FairLink("STTHit", hitindex));
28 }
29 
30 // DELETE THIS CHECK
31 //void PndSttHelixHit::CopyHitToHelixHit(PndSttHit *aHit, Int_t hitindex)
32 //{
33 
34 //}
35 
36 
37 
40 {
41  fHitIndex = 0;
42  fdEdx = 0.;
43  fTubeID = 0;
44  fIsochrone = 0.;
45  fIsochroneError = 0.;
46  ResetLinks();
47 }
48 
49 
52 {
53 }
54 
56 {
57  // reco & center positions
58  cout << "position " << GetX() << " " << GetY() << " " << GetZ() << endl;
59 
60  // index
61  cout << "mc, hit indexes " << GetRefIndex() << " " << GetHitIndex() << endl;
62 
63  // drift
64  cout << "drift radius " << GetIsochrone() << endl;
65 
66 }
67 
68 
69 
TVector3 pos
Int_t GetHitIndex()
Double_t
Double_t GetIsochrone() const
Double_t fIsochrone
ClassImp(PndAnaContFact)
virtual ~PndSttHelixHit()
Double_t fIsochroneError