source: trunk/source/processes/parameterisation/include/G4FastStep.icc@ 1350

Last change on this file since 1350 was 1337, checked in by garnier, 15 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 4.1 KB
RevLine 
[819]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 $
[1337]28// GEANT4 tag $Name: geant4-09-04-beta-01 $
[819]29//
30// $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
31
32inline void
33G4FastStep::ProposePrimaryTrackFinalTime(G4double time)
34{
35 theTimeChange = time;
36}
37inline void
38G4FastStep:: SetPrimaryTrackFinalTime(G4double time)
39{
40 ProposePrimaryTrackFinalTime(time);
41}
42
43
44inline void
45G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime)
46{
47 theProperTimeChange = properTime;
48}
49inline void
50G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime)
51{
52 ProposePrimaryTrackFinalProperTime(properTime);
53}
54
55
56inline void
57G4FastStep::
58SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
59{
60 theEnergyChange = kineticEnergy;
61}
62
63
64inline void
65G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength)
66{
67 ProposeTrueStepLength(pathLength);
68}
69inline void
70G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
71{
72 ProposePrimaryTrackPathLength(pathLength);
73}
74//-----------------------------------------
75//
76// Creation of eventual secondaries:
77//
78//-----------------------------------------
79
80inline void
81G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries)
82{
83 SetNumberOfSecondaries(nSecondaries);
84}
85
86inline G4int
87G4FastStep::GetNumberOfSecondaryTracks()
88{
89 return GetNumberOfSecondaries();
90}
91
92inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
93{
94 return GetSecondary(i);
95}
96
97
98//---------------------------------------
99//
100//---------------------------------------
101inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart)
102{
103 ProposeLocalEnergyDeposit(anEnergyPart);
104}
105inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
106{
107 ProposeTotalEnergyDeposited(anEnergyPart);
108}
109
110
111inline G4double G4FastStep::GetTotalEnergyDeposited() const
112{
113 return GetLocalEnergyDeposit();
114}
115
116
117inline void G4FastStep::ForceSteppingHitInvocation()
118{
119 ProposeSteppingControl(NormalCondition);
120}
121
122inline
123void 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
134inline
135void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
136{
137 theMomentumChange = P;
138}
139
140
141inline
142void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w)
143{
144 theWeightChange = w;
145}
146inline
147void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
148{
149 ProposePrimaryTrackFinalEventBiasingWeight(w);
150}
Note: See TracBrowser for help on using the repository browser.