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