Geant4  10.00.p03
G4FastStep.icc
Go to the documentation of this file.
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 68056 2013-03-13 14:44:48Z gcosmo $
28 //
29 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
30 
31 inline void
32 G4FastStep::ProposePrimaryTrackFinalTime(G4double time)
33 {
34  theTimeChange = time;
35 }
36 inline void
37 G4FastStep:: SetPrimaryTrackFinalTime(G4double time)
38 {
39  ProposePrimaryTrackFinalTime(time);
40 }
41 
42 
43 inline void
44 G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime)
45 {
46  theProperTimeChange = properTime;
47 }
48 inline void
49 G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime)
50 {
51  ProposePrimaryTrackFinalProperTime(properTime);
52 }
53 
54 
55 inline void
56 G4FastStep::
57 ProposePrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
58 {
59  theEnergyChange = kineticEnergy;
60 }
61 inline void
62 G4FastStep::
63 SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
64 {
65  ProposePrimaryTrackFinalKineticEnergy(kineticEnergy);
66 }
67 
68 
69 inline void
70 G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength)
71 {
72  ProposeTrueStepLength(pathLength);
73 }
74 inline void
75 G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
76 {
77  ProposePrimaryTrackPathLength(pathLength);
78 }
79 
80 //-----------------------------------------
81 //
82 // Creation of eventual secondaries:
83 //
84 //-----------------------------------------
85 
86 inline void
87 G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries)
88 {
89  SetNumberOfSecondaries(nSecondaries);
90 }
91 
92 inline G4int
93 G4FastStep::GetNumberOfSecondaryTracks()
94 {
95  return GetNumberOfSecondaries();
96 }
97 
98 inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
99 {
100  return GetSecondary(i);
101 }
102 
103 
104 //---------------------------------------
105 //
106 //---------------------------------------
107 inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart)
108 {
109  ProposeLocalEnergyDeposit(anEnergyPart);
110 }
111 inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
112 {
113  ProposeTotalEnergyDeposited(anEnergyPart);
114 }
115 
116 
117 inline G4double G4FastStep::GetTotalEnergyDeposited() const
118 {
119  return GetLocalEnergyDeposit();
120 }
121 
122 
123 inline void G4FastStep::ForceSteppingHitInvocation()
124 {
125  ProposeSteppingControl(NormalCondition);
126 }
127 
128 inline
129 void G4FastStep::SetMomentumChange(
130  G4double Px,
131  G4double Py,
132  G4double Pz )
133 {
134  theMomentumChange.setX(Px);
135  theMomentumChange.setY(Py);
136  theMomentumChange.setZ(Pz);
137 }
138 
139 
140 inline
141 void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
142 {
143  theMomentumChange = P;
144 }
145 
146 
147 inline
148 void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w)
149 {
150  theWeightChange = w;
151 }
152 inline
153 void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
154 {
155  ProposePrimaryTrackFinalEventBiasingWeight(w);
156 }