]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: run | |
3 | ||
4 | #include "TG4StepManager.h" | |
5 | ||
6 | // methods for step management | |
7 | // ------------------------------------------------ | |
8 | ||
0072928b | 9 | //_____________________________________________________________________________ |
2817d3e2 | 10 | inline void TGeant4::StopTrack() |
11 | { | |
12 | fStepManager->StopTrack(); | |
13 | } | |
14 | ||
0072928b | 15 | //_____________________________________________________________________________ |
2817d3e2 | 16 | inline void TGeant4::StopEvent() |
17 | { | |
18 | fStepManager->StopEvent(); | |
19 | } | |
20 | ||
0072928b | 21 | //_____________________________________________________________________________ |
2817d3e2 | 22 | inline void TGeant4::SetMaxStep(Float_t step) |
23 | { | |
24 | fStepManager->SetMaxStep(step); | |
25 | } | |
26 | ||
0072928b | 27 | //_____________________________________________________________________________ |
2817d3e2 | 28 | inline void TGeant4::SetMaxNStep(Int_t number) |
29 | { | |
30 | fStepManager->SetMaxNStep(number); | |
31 | } | |
32 | ||
0072928b | 33 | //_____________________________________________________________________________ |
2817d3e2 | 34 | inline void TGeant4::SetUserDecay(Int_t number) |
35 | { | |
36 | fStepManager->SetUserDecay(number); | |
37 | } | |
38 | ||
0072928b | 39 | //_____________________________________________________________________________ |
2817d3e2 | 40 | inline Int_t TGeant4::CurrentVolID(Int_t& copyNo) const |
41 | { | |
42 | return fStepManager->CurrentVolID(copyNo); | |
43 | } | |
44 | ||
0072928b | 45 | //_____________________________________________________________________________ |
2817d3e2 | 46 | inline Int_t TGeant4::CurrentVolOffID(Int_t off, Int_t& copyNo) const |
47 | { | |
48 | return fStepManager->CurrentVolOffID(off, copyNo); | |
49 | } | |
50 | ||
0072928b | 51 | //_____________________________________________________________________________ |
2817d3e2 | 52 | inline const char* TGeant4::CurrentVolName() const |
53 | { | |
54 | return fStepManager->CurrentVolName(); | |
55 | } | |
56 | ||
0072928b | 57 | //_____________________________________________________________________________ |
2817d3e2 | 58 | inline const char* TGeant4::CurrentVolOffName(Int_t off) const |
59 | { | |
60 | return fStepManager->CurrentVolOffName(off); | |
61 | } | |
62 | ||
0072928b | 63 | //_____________________________________________________________________________ |
2817d3e2 | 64 | inline Int_t TGeant4::CurrentMaterial(Float_t &a, Float_t &z, |
65 | Float_t &dens, Float_t &radl, Float_t &absl) const | |
66 | { | |
67 | return fStepManager->CurrentMaterial(a, z, dens, radl, absl); | |
68 | } | |
69 | ||
0072928b | 70 | //_____________________________________________________________________________ |
2817d3e2 | 71 | inline void TGeant4::Gmtod(Float_t* xm, Float_t* xd, Int_t iflag) |
72 | { | |
73 | fStepManager->Gmtod(xm, xd, iflag); | |
74 | } | |
75 | ||
0072928b | 76 | //_____________________________________________________________________________ |
2817d3e2 | 77 | inline void TGeant4::Gdtom(Float_t* xd, Float_t* xm, Int_t iflag) |
78 | { | |
79 | fStepManager->Gdtom(xd, xm, iflag); | |
80 | } | |
81 | ||
0072928b | 82 | //_____________________________________________________________________________ |
2817d3e2 | 83 | inline Float_t TGeant4::MaxStep() const |
84 | { | |
85 | return fStepManager->MaxStep(); | |
86 | } | |
87 | ||
0072928b | 88 | //_____________________________________________________________________________ |
2817d3e2 | 89 | inline Int_t TGeant4::GetMaxNStep() const |
90 | { | |
91 | return fStepManager->GetMaxNStep(); | |
92 | } | |
93 | ||
0072928b | 94 | //_____________________________________________________________________________ |
2817d3e2 | 95 | inline Int_t TGeant4::GetMedium() const |
96 | { | |
97 | return fStepManager->GetMedium(); | |
98 | } | |
99 | ||
0072928b | 100 | //_____________________________________________________________________________ |
2817d3e2 | 101 | inline void TGeant4::TrackPosition(TLorentzVector& position) const |
102 | { | |
103 | fStepManager->TrackPosition(position); | |
104 | } | |
105 | ||
0072928b | 106 | //_____________________________________________________________________________ |
2817d3e2 | 107 | inline void TGeant4::TrackMomentum(TLorentzVector& momentum) const |
108 | { | |
109 | fStepManager->TrackMomentum(momentum); | |
110 | } | |
111 | ||
0072928b | 112 | //_____________________________________________________________________________ |
2817d3e2 | 113 | inline void TGeant4::TrackVertexPosition(TLorentzVector& position) const |
114 | { | |
115 | fStepManager->TrackVertexPosition(position); | |
116 | } | |
117 | ||
0072928b | 118 | //_____________________________________________________________________________ |
2817d3e2 | 119 | inline void TGeant4::TrackVertexMomentum(TLorentzVector& momentum) const |
120 | { | |
121 | fStepManager->TrackVertexMomentum(momentum); | |
122 | } | |
123 | ||
0072928b | 124 | //_____________________________________________________________________________ |
2817d3e2 | 125 | inline Float_t TGeant4::TrackStep() const |
126 | { | |
127 | return fStepManager->TrackStep(); | |
128 | } | |
129 | ||
0072928b | 130 | //_____________________________________________________________________________ |
2817d3e2 | 131 | inline Float_t TGeant4::TrackLength() const |
132 | { | |
133 | return fStepManager->TrackLength(); | |
134 | } | |
135 | ||
0072928b | 136 | //_____________________________________________________________________________ |
2817d3e2 | 137 | inline Float_t TGeant4::TrackTime() const |
138 | { | |
139 | return fStepManager->TrackTime(); | |
140 | } | |
141 | ||
0072928b | 142 | //_____________________________________________________________________________ |
2817d3e2 | 143 | inline Float_t TGeant4::Edep() const |
144 | { | |
145 | return fStepManager->Edep(); | |
146 | } | |
147 | ||
0072928b | 148 | //_____________________________________________________________________________ |
2817d3e2 | 149 | inline Int_t TGeant4::TrackPid() const |
150 | { | |
151 | return fStepManager->TrackPid(); | |
152 | } | |
153 | ||
0072928b | 154 | //_____________________________________________________________________________ |
2817d3e2 | 155 | inline Float_t TGeant4::TrackCharge() const |
156 | { | |
157 | return fStepManager->TrackCharge(); | |
158 | } | |
159 | ||
0072928b | 160 | //_____________________________________________________________________________ |
2817d3e2 | 161 | inline Float_t TGeant4::TrackMass() const |
162 | { | |
163 | return fStepManager->TrackMass(); | |
164 | } | |
165 | ||
0072928b | 166 | //_____________________________________________________________________________ |
2817d3e2 | 167 | inline Float_t TGeant4::Etot() const |
168 | { | |
169 | return fStepManager->Etot(); | |
170 | } | |
171 | ||
0072928b | 172 | //_____________________________________________________________________________ |
2817d3e2 | 173 | inline Bool_t TGeant4::IsTrackInside() const |
174 | { | |
175 | return fStepManager->IsTrackInside(); | |
176 | } | |
177 | ||
0072928b | 178 | //_____________________________________________________________________________ |
2817d3e2 | 179 | inline Bool_t TGeant4::IsTrackEntering() const |
180 | { | |
181 | return fStepManager->IsTrackEntering(); | |
182 | } | |
183 | ||
0072928b | 184 | //_____________________________________________________________________________ |
2817d3e2 | 185 | inline Bool_t TGeant4::IsTrackExiting() const |
186 | { | |
187 | return fStepManager->IsTrackExiting(); | |
188 | } | |
189 | ||
0072928b | 190 | //_____________________________________________________________________________ |
2817d3e2 | 191 | inline Bool_t TGeant4::IsTrackOut() const |
192 | { | |
193 | return fStepManager->IsTrackOut(); | |
194 | } | |
195 | ||
0072928b | 196 | //_____________________________________________________________________________ |
2817d3e2 | 197 | inline Bool_t TGeant4::IsTrackDisappeared() const |
198 | { | |
199 | return fStepManager->IsTrackDisappeared(); | |
200 | } | |
201 | ||
0072928b | 202 | //_____________________________________________________________________________ |
2817d3e2 | 203 | inline Bool_t TGeant4::IsTrackStop() const |
204 | { | |
205 | return fStepManager->IsTrackStop(); | |
206 | } | |
207 | ||
0072928b | 208 | //_____________________________________________________________________________ |
2817d3e2 | 209 | inline Bool_t TGeant4::IsTrackAlive() const |
210 | { | |
211 | return fStepManager->IsTrackAlive(); | |
212 | } | |
213 | ||
0072928b | 214 | //_____________________________________________________________________________ |
2817d3e2 | 215 | inline Bool_t TGeant4::IsNewTrack() const |
216 | { | |
217 | return fStepManager->IsNewTrack(); | |
218 | } | |
219 | ||
0072928b | 220 | //_____________________________________________________________________________ |
2817d3e2 | 221 | inline Int_t TGeant4::NSecondaries() const |
222 | { | |
223 | return fStepManager->NSecondaries(); | |
224 | } | |
225 | ||
0072928b | 226 | //_____________________________________________________________________________ |
2817d3e2 | 227 | inline void TGeant4::GetSecondary(Int_t isec, Int_t& particleId, |
228 | TLorentzVector& position, TLorentzVector& momentum) | |
229 | { | |
230 | fStepManager->GetSecondary(isec, particleId, position, momentum); | |
231 | } | |
232 | ||
0072928b | 233 | //_____________________________________________________________________________ |
3320b37e | 234 | inline AliMCProcess TGeant4::ProdProcess(Int_t isec) const |
2817d3e2 | 235 | { |
3320b37e | 236 | return fStepManager->ProdProcess(isec); |
237 | } | |
238 | ||
0072928b | 239 | //_____________________________________________________________________________ |
3320b37e | 240 | inline Int_t TGeant4::StepProcesses(TArrayI &proc) const |
241 | { | |
242 | return fStepManager->StepProcesses(proc); | |
2817d3e2 | 243 | } |