1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4FastStep.icc,v 1.5 2006/06/29 21:09:16 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
29 | // |
---|
30 | // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $ |
---|
31 | |
---|
32 | inline void |
---|
33 | G4FastStep::ProposePrimaryTrackFinalTime(G4double time) |
---|
34 | { |
---|
35 | theTimeChange = time; |
---|
36 | } |
---|
37 | inline void |
---|
38 | G4FastStep:: SetPrimaryTrackFinalTime(G4double time) |
---|
39 | { |
---|
40 | ProposePrimaryTrackFinalTime(time); |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | inline void |
---|
45 | G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime) |
---|
46 | { |
---|
47 | theProperTimeChange = properTime; |
---|
48 | } |
---|
49 | inline void |
---|
50 | G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime) |
---|
51 | { |
---|
52 | ProposePrimaryTrackFinalProperTime(properTime); |
---|
53 | } |
---|
54 | |
---|
55 | |
---|
56 | inline void |
---|
57 | G4FastStep:: |
---|
58 | SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy) |
---|
59 | { |
---|
60 | theEnergyChange = kineticEnergy; |
---|
61 | } |
---|
62 | |
---|
63 | |
---|
64 | inline void |
---|
65 | G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength) |
---|
66 | { |
---|
67 | ProposeTrueStepLength(pathLength); |
---|
68 | } |
---|
69 | inline void |
---|
70 | G4FastStep::SetPrimaryTrackPathLength(G4double pathLength) |
---|
71 | { |
---|
72 | ProposePrimaryTrackPathLength(pathLength); |
---|
73 | } |
---|
74 | //----------------------------------------- |
---|
75 | // |
---|
76 | // Creation of eventual secondaries: |
---|
77 | // |
---|
78 | //----------------------------------------- |
---|
79 | |
---|
80 | inline void |
---|
81 | G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries) |
---|
82 | { |
---|
83 | SetNumberOfSecondaries(nSecondaries); |
---|
84 | } |
---|
85 | |
---|
86 | inline G4int |
---|
87 | G4FastStep::GetNumberOfSecondaryTracks() |
---|
88 | { |
---|
89 | return GetNumberOfSecondaries(); |
---|
90 | } |
---|
91 | |
---|
92 | inline G4Track* G4FastStep::GetSecondaryTrack(G4int i) |
---|
93 | { |
---|
94 | return GetSecondary(i); |
---|
95 | } |
---|
96 | |
---|
97 | |
---|
98 | //--------------------------------------- |
---|
99 | // |
---|
100 | //--------------------------------------- |
---|
101 | inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart) |
---|
102 | { |
---|
103 | ProposeLocalEnergyDeposit(anEnergyPart); |
---|
104 | } |
---|
105 | inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart) |
---|
106 | { |
---|
107 | ProposeTotalEnergyDeposited(anEnergyPart); |
---|
108 | } |
---|
109 | |
---|
110 | |
---|
111 | inline G4double G4FastStep::GetTotalEnergyDeposited() const |
---|
112 | { |
---|
113 | return GetLocalEnergyDeposit(); |
---|
114 | } |
---|
115 | |
---|
116 | |
---|
117 | inline void G4FastStep::ForceSteppingHitInvocation() |
---|
118 | { |
---|
119 | ProposeSteppingControl(NormalCondition); |
---|
120 | } |
---|
121 | |
---|
122 | inline |
---|
123 | void G4FastStep::SetMomentumChange( |
---|
124 | G4double Px, |
---|
125 | G4double Py, |
---|
126 | G4double Pz ) |
---|
127 | { |
---|
128 | theMomentumChange.setX(Px); |
---|
129 | theMomentumChange.setY(Py); |
---|
130 | theMomentumChange.setZ(Pz); |
---|
131 | } |
---|
132 | |
---|
133 | |
---|
134 | inline |
---|
135 | void G4FastStep::SetMomentumChange(const G4ThreeVector& P) |
---|
136 | { |
---|
137 | theMomentumChange = P; |
---|
138 | } |
---|
139 | |
---|
140 | |
---|
141 | inline |
---|
142 | void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w) |
---|
143 | { |
---|
144 | theWeightChange = w; |
---|
145 | } |
---|
146 | inline |
---|
147 | void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w) |
---|
148 | { |
---|
149 | ProposePrimaryTrackFinalEventBiasingWeight(w); |
---|
150 | } |
---|