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