00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $ 00030 00031 inline void 00032 G4FastStep::ProposePrimaryTrackFinalTime(G4double time) 00033 { 00034 theTimeChange = time; 00035 } 00036 inline void 00037 G4FastStep:: SetPrimaryTrackFinalTime(G4double time) 00038 { 00039 ProposePrimaryTrackFinalTime(time); 00040 } 00041 00042 00043 inline void 00044 G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime) 00045 { 00046 theProperTimeChange = properTime; 00047 } 00048 inline void 00049 G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime) 00050 { 00051 ProposePrimaryTrackFinalProperTime(properTime); 00052 } 00053 00054 00055 inline void 00056 G4FastStep:: 00057 ProposePrimaryTrackFinalKineticEnergy(G4double kineticEnergy) 00058 { 00059 theEnergyChange = kineticEnergy; 00060 } 00061 inline void 00062 G4FastStep:: 00063 SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy) 00064 { 00065 ProposePrimaryTrackFinalKineticEnergy(kineticEnergy); 00066 } 00067 00068 00069 inline void 00070 G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength) 00071 { 00072 ProposeTrueStepLength(pathLength); 00073 } 00074 inline void 00075 G4FastStep::SetPrimaryTrackPathLength(G4double pathLength) 00076 { 00077 ProposePrimaryTrackPathLength(pathLength); 00078 } 00079 00080 //----------------------------------------- 00081 // 00082 // Creation of eventual secondaries: 00083 // 00084 //----------------------------------------- 00085 00086 inline void 00087 G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries) 00088 { 00089 SetNumberOfSecondaries(nSecondaries); 00090 } 00091 00092 inline G4int 00093 G4FastStep::GetNumberOfSecondaryTracks() 00094 { 00095 return GetNumberOfSecondaries(); 00096 } 00097 00098 inline G4Track* G4FastStep::GetSecondaryTrack(G4int i) 00099 { 00100 return GetSecondary(i); 00101 } 00102 00103 00104 //--------------------------------------- 00105 // 00106 //--------------------------------------- 00107 inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart) 00108 { 00109 ProposeLocalEnergyDeposit(anEnergyPart); 00110 } 00111 inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart) 00112 { 00113 ProposeTotalEnergyDeposited(anEnergyPart); 00114 } 00115 00116 00117 inline G4double G4FastStep::GetTotalEnergyDeposited() const 00118 { 00119 return GetLocalEnergyDeposit(); 00120 } 00121 00122 00123 inline void G4FastStep::ForceSteppingHitInvocation() 00124 { 00125 ProposeSteppingControl(NormalCondition); 00126 } 00127 00128 inline 00129 void G4FastStep::SetMomentumChange( 00130 G4double Px, 00131 G4double Py, 00132 G4double Pz ) 00133 { 00134 theMomentumChange.setX(Px); 00135 theMomentumChange.setY(Py); 00136 theMomentumChange.setZ(Pz); 00137 } 00138 00139 00140 inline 00141 void G4FastStep::SetMomentumChange(const G4ThreeVector& P) 00142 { 00143 theMomentumChange = P; 00144 } 00145 00146 00147 inline 00148 void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w) 00149 { 00150 theWeightChange = w; 00151 } 00152 inline 00153 void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w) 00154 { 00155 ProposePrimaryTrackFinalEventBiasingWeight(w); 00156 }