]>
Commit | Line | Data |
---|---|---|
68861244 | 1 | //_________________________________________________________________________ |
2 | // TOF hit : member variables | |
3 | // fTrack : | |
4 | // fX : X coordinate of the hit in the Master Reference Frame (LAB Frame) | |
5 | // fY : Y coordinate of the hit in the Master Reference Frame (LAB Frame) | |
6 | // fZ : Z coordinate of the hit in the Master Reference Frame (LAB Frame) | |
7 | // fSector : Number of the TOF Sector which belongs the hit | |
8 | // fPlate : Number of the TOF Plate or Module which belongs the hit | |
9 | // fStrip : Number of the TOF Strip which belongs the hit | |
10 | // fPadx : Number of the pad in the strip along the x-axis - in the strip reference frame | |
11 | // - where hit is produced | |
12 | // fPadz : Number of the pad in the strip along the z-axis - in the strip reference frame | |
13 | // - where hit is produced | |
14 | // fPx : x-director cosine of the Charged Particle Momentum when hit is | |
15 | // produced - expressed in the Master Reference Frame (LAB Frame) - | |
16 | // fPy : y-director cosine of the Charged Particle Momentum when hit is | |
17 | // produced - expressed in the Master Reference Frame (LAB Frame) - | |
18 | // fPz : z-director cosine of the Charged Particle Momentum when hit is | |
19 | // produced - expressed in the Master Reference Frame (LAB Frame) - | |
20 | // fPmom : Modulus of the Charged Particle Momentum when hit is produced | |
21 | // fTof : Time of Flight i.e. the time between the charged particle is produced and this | |
22 | // particle produce the hit on the TOF sensible volume (pad) | |
23 | // fDx : Distance of the hit from the pad edge along x-axis | |
24 | // fDy : y coordinate of the hit in the pad refernce frame | |
25 | // fDz : Distance of the hit from the pad edge along z-axis | |
26 | // fIncA : Incidence Angle between the Normal to the sensible volume where hit | |
27 | // is produced (pad) and the Momentum Direction of the Charged Particle which | |
28 | // produces the hit | |
29 | // fEdep : Energy released by charged particle on the sensible TOF volume where hit is | |
30 | // produced | |
31 | // For more detailed informations about the meaning of the TOF-hit member | |
32 | // variable look at | |
33 | // http://www.bo.infn.it/alice/alice-doc/TOFWEB/variables-hits.html | |
34 | // | |
35 | // Getters, setters and member functions defined here | |
36 | // | |
37 | //*-- Authors: F. Pierella, A. Seganti, D. Vicinanza | |
38 | ||
39 | ||
40 | ||
41 | /************************************************************************** | |
42 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
43 | * * | |
44 | * Author: The ALICE Off-line Project. * | |
45 | * Contributors are mentioned in the code where appropriate. * | |
46 | * * | |
47 | * Permission to use, copy, modify and distribute this software and its * | |
48 | * documentation strictly for non-commercial purposes is hereby granted * | |
49 | * without fee, provided that the above copyright notice appears in all * | |
50 | * copies and that both the copyright notice and this permission notice * | |
51 | * appear in the supporting documentation. The authors make no claims * | |
52 | * about the suitability of this software for any purpose. It is * | |
53 | * provided "as is" without express or implied warranty. * | |
54 | **************************************************************************/ | |
55 | ||
56 | #include "AliTOFhit.h" | |
57 | ||
58 | ClassImp(AliTOFhit) | |
59 | ||
655e379f | 60 | //____________________________________________________________________________ |
61 | AliTOFhit::AliTOFhit(): | |
62 | AliHit(), | |
63 | fSector(-1), | |
64 | fPlate(-1), | |
65 | fStrip(-1), | |
66 | fPadx(-1), | |
67 | fPadz(-1), | |
68 | fPx(0), | |
69 | fPy(0), | |
70 | fPz(0), | |
71 | fPmom(0), | |
72 | fTof(0), | |
73 | fDx(0), | |
74 | fDy(0), | |
75 | fDz(0), | |
76 | fIncA(0), | |
77 | fEdep(0) | |
78 | { | |
79 | } | |
80 | ||
68861244 | 81 | //____________________________________________________________________________ |
82 | AliTOFhit::AliTOFhit(const AliTOFhit & hit) | |
655e379f | 83 | : AliHit(hit), |
84 | fSector(-1), | |
85 | fPlate(-1), | |
86 | fStrip(-1), | |
87 | fPadx(-1), | |
88 | fPadz(-1), | |
89 | fPx(0), | |
90 | fPy(0), | |
91 | fPz(0), | |
92 | fPmom(0), | |
93 | fTof(0), | |
94 | fDx(0), | |
95 | fDy(0), | |
96 | fDz(0), | |
97 | fIncA(0), | |
98 | fEdep(0) | |
68861244 | 99 | { |
100 | // | |
101 | // copy ctor for AliTOFhit object | |
102 | // | |
103 | fTrack = hit.fTrack; | |
104 | fX = hit.fX; | |
105 | fY = hit.fY; | |
106 | fZ = hit.fZ; | |
107 | fSector = hit.fSector; | |
108 | fPlate = hit.fPlate; | |
109 | fStrip = hit.fStrip; | |
110 | fPadx = hit.fPadx; | |
111 | fPadz = hit.fPadz; | |
112 | fPx = hit.fPx; | |
113 | fPy = hit.fPy; | |
114 | fPz = hit.fPz; | |
115 | fPmom = hit.fPmom; | |
116 | fTof = hit.fTof; | |
117 | fDx = hit.fDx; | |
118 | fDy = hit.fDy; | |
119 | fDz = hit.fDz; | |
120 | fIncA = hit.fIncA; | |
121 | fEdep = hit.fEdep; | |
122 | ||
123 | } | |
124 | ||
125 | //______________________________________________________________________________ | |
126 | AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t *vol, | |
127 | Float_t *hits) | |
655e379f | 128 | :AliHit(shunt, track), |
129 | fSector(-1), | |
130 | fPlate(-1), | |
131 | fStrip(-1), | |
132 | fPadx(-1), | |
133 | fPadz(-1), | |
134 | fPx(0), | |
135 | fPy(0), | |
136 | fPz(0), | |
137 | fPmom(0), | |
138 | fTof(0), | |
139 | fDx(0), | |
140 | fDy(0), | |
141 | fDz(0), | |
142 | fIncA(0), | |
143 | fEdep(0) | |
68861244 | 144 | { |
145 | // | |
146 | // Constructor of hit object | |
147 | // | |
148 | // | |
149 | // Hit Volume | |
150 | // | |
151 | fSector= vol[0]; | |
152 | fPlate = vol[1]; | |
153 | fStrip = vol[2]; | |
154 | fPadx = vol[3]; | |
155 | fPadz = vol[4]; | |
156 | // | |
157 | //Position of the hit | |
158 | fX = hits[0]; | |
159 | fY = hits[1]; | |
160 | fZ = hits[2]; | |
161 | // | |
162 | // Momentum components of the particle in the ALICE frame when hit is produced | |
163 | fPx = hits[3]; | |
164 | fPy = hits[4]; | |
165 | fPz = hits[5]; | |
166 | fPmom= hits[6]; | |
167 | // | |
168 | // Time Of Flight for the particle that produces hit | |
169 | fTof = hits[7]; //TOF[s] | |
170 | // | |
171 | // Other Data | |
172 | fDx = hits[8]; //Distance from the edge along x axis | |
173 | fDy = hits[9]; //Y cohordinate of the hit | |
174 | fDz = hits[10]; //Distance from the edge along z axis | |
175 | fIncA= hits[11]; //Incidence angle | |
176 | fEdep= hits[12]; //Energy loss in TOF pad | |
177 | } | |
178 |