2// ********************************************************************
3// * License and Disclaimer *
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. *
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. *
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// ********************************************************************
28// $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
31G4FastStep::ProposePrimaryTrackFinalTime(G4double time)
36G4FastStep:: SetPrimaryTrackFinalTime(G4double time)
38 ProposePrimaryTrackFinalTime(time);
43G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime)
45 theProperTimeChange = properTime;
48G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime)
50 ProposePrimaryTrackFinalProperTime(properTime);
56ProposePrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
58 theEnergyChange = kineticEnergy;
62SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
64 ProposePrimaryTrackFinalKineticEnergy(kineticEnergy);
69G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength)
71 ProposeTrueStepLength(pathLength);
74G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
76 ProposePrimaryTrackPathLength(pathLength);
79//-----------------------------------------
81// Creation of eventual secondaries:
83//-----------------------------------------
86G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries)
88 SetNumberOfSecondaries(nSecondaries);
92G4FastStep::GetNumberOfSecondaryTracks()
94 return GetNumberOfSecondaries();
97inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
99 return GetSecondary(i);
103//---------------------------------------
105//---------------------------------------
106inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart)
108 ProposeLocalEnergyDeposit(anEnergyPart);
110inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
112 ProposeTotalEnergyDeposited(anEnergyPart);
116inline G4double G4FastStep::GetTotalEnergyDeposited() const
118 return GetLocalEnergyDeposit();
122inline void G4FastStep::ForceSteppingHitInvocation()
124 ProposeSteppingControl(NormalCondition);
128void G4FastStep::SetMomentumChange(
133 theMomentumChange.setX(Px);
134 theMomentumChange.setY(Py);
135 theMomentumChange.setZ(Pz);
140void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
142 theMomentumChange = P;
147void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w)
152void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
154 ProposePrimaryTrackFinalEventBiasingWeight(w);