9 #include "AliITSgeom.h"
11 #include "AliITShit.h"
16 ////////////////////////////////////////////////////////////////////////
18 // Written by Rene Brun, Federico Carminati, and Roberto Barbera
21 // Modified and documented by Bjorn S. Nilsen
24 // AliITShit is the hit class for the ITS. Hits are the information
25 // that comes from a Monte Carlo at each step as a particle mass through
26 // sensitive detector elements as particles are transported through a
31 <img src="figures/AliITShit_Class_Diagram.gif">
34 <font size=+2 color=red>
35 <p>This show the relasionships between the ITS hit class and the rest of Aliroot.
40 //_____________________________________________________________________________
41 AliITShit::AliITShit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
45 // The creator of the AliITShit class. The variables shunt and
46 // track are passed to the creator of the AliHit class. See the AliHit
47 // class for a full description. the integer array *vol contains, in order,
48 // fLayer = vol[0], fDet = vol[1], fLadder = vol[2], fStatus = vol[3].
49 // The array *hits contains, in order, fX = hits[0], fY = hits[1],
50 // fZ = hits[2], fPx = hits[3], fPy = hits[4], fPz = hits[5],
51 // fDestep = hits[6], and fTof = hits[7].
53 fLayer = vol[0]; // Layer number
54 fLadder = vol[2]; // Ladder number
55 fDet = vol[1]; // Detector number
56 fStatus = vol[3]; // Track status flags
57 fX = hits[0]; // Track X position
58 fY = hits[1]; // Track Y position
59 fZ = hits[2]; // Track Z position
60 fPx = hits[3]; // Track X Momentum
61 fPy = hits[4]; // Track Y Momentum
62 fPz = hits[5]; // Track Z Momentum
63 fDestep = hits[6]; // Track dE/dx for this step
64 fTof = hits[7]; // Track Time of Flight for this step
67 void AliITShit::GetPositionL(Float_t &x,Float_t &y,Float_t &z){
68 AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
74 gm->GtoL(fLayer,fLadder,fDet,g,l);
81 void AliITShit::GetPositionL(Float_t &x,Float_t &y,Float_t &z,Float_t &tof){
82 AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
88 gm->GtoL(fLayer,fLadder,fDet,g,l);
96 Float_t AliITShit::GetXL(){
97 AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
103 gm->GtoL(fLayer,fLadder,fDet,g,l);
107 Float_t AliITShit::GetYL(){
108 AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
114 gm->GtoL(fLayer,fLadder,fDet,g,l);
118 Float_t AliITShit::GetZL(){
119 AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
125 gm->GtoL(fLayer,fLadder,fDet,g,l);
129 void AliITShit::GetMomentumL(Float_t &px,Float_t &py,Float_t &pz){
130 AliITSgeom *gm = ((AliITS*)gAlice->GetDetector("ITS"))->GetITSgeom();
136 gm->GtoLMomentum(fLayer,fLadder,fDet,g,l);