FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
pnddata
SttData
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
17
PndSttHelixHit::PndSttHelixHit
():
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
39
void
PndSttHelixHit::Clear
()
40
{
41
fHitIndex
= 0;
42
fdEdx
= 0.;
43
fTubeID
= 0;
44
fIsochrone
= 0.;
45
fIsochroneError
= 0.;
46
ResetLinks();
47
}
48
49
51
PndSttHelixHit::~PndSttHelixHit
()
52
{
53
}
54
55
void
PndSttHelixHit::Print
()
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
70
ClassImp
(
PndSttHelixHit
)
pos
TVector3 pos
Definition:
GammaSpectraAnalysis.C:43
PndSttHelixHit::GetHitIndex
Int_t GetHitIndex()
Definition:
PndSttHelixHit.h:54
PndSttHelixHit::Clear
void Clear()
Definition:
PndSttHelixHit.cxx:39
PndSttHelixHit::PndSttHelixHit
PndSttHelixHit()
Definition:
PndSttHelixHit.cxx:17
PndSttHelixHit::Print
void Print()
Definition:
PndSttHelixHit.cxx:55
PndDetectorList.h
PndSttHelixHit.h
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndSttHelixHit::GetIsochrone
Double_t GetIsochrone() const
Definition:
PndSttHelixHit.h:57
PndSttHelixHit::fdEdx
Double_t fdEdx
Definition:
PndSttHelixHit.h:78
PndSttHit.h
PndSttHelixHit::fIsochrone
Double_t fIsochrone
Definition:
PndSttHelixHit.h:81
PndSttHelixHit
Definition:
PndSttHelixHit.h:15
PndSttHelixHit::fHitIndex
Int_t fHitIndex
Definition:
PndSttHelixHit.h:75
ClassImp
ClassImp(PndAnaContFact)
PndSttHelixHit::~PndSttHelixHit
virtual ~PndSttHelixHit()
Definition:
PndSttHelixHit.cxx:51
PndSttHelixHit::fIsochroneError
Double_t fIsochroneError
Definition:
PndSttHelixHit.h:81
PndSttHelixHit::fTubeID
Int_t fTubeID
Definition:
PndSttHelixHit.h:84
Generated on Wed Apr 3 2019 10:02:57 for FairRoot/PandaRoot by
1.8.5