Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 // 28 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 29 30 inline void G4FastStep::ProposePrimaryTrackFin 31 { 32 theTimeChange = time; 33 } 34 inline void G4FastStep::SetPrimaryTrackFinalTi 35 { 36 ProposePrimaryTrackFinalTime(time); 37 } 38 39 inline void G4FastStep::ProposePrimaryTrackFin 40 { 41 theProperTimeChange = properTime; 42 } 43 inline void G4FastStep::SetPrimaryTrackFinalPr 44 { 45 ProposePrimaryTrackFinalProperTime(properTim 46 } 47 48 inline void G4FastStep::ProposePrimaryTrackFin 49 { 50 theEnergyChange = kineticEnergy; 51 } 52 inline void G4FastStep::SetPrimaryTrackFinalKi 53 { 54 ProposePrimaryTrackFinalKineticEnergy(kineti 55 } 56 57 inline void G4FastStep::ProposePrimaryTrackPat 58 { 59 ProposeTrueStepLength(pathLength); 60 } 61 inline void G4FastStep::SetPrimaryTrackPathLen 62 { 63 ProposePrimaryTrackPathLength(pathLength); 64 } 65 66 //----------------------------------------- 67 // 68 // Creation of eventual secondaries: 69 // 70 //----------------------------------------- 71 72 inline void G4FastStep::SetNumberOfSecondaryTr 73 { 74 SetNumberOfSecondaries(nSecondaries); 75 } 76 77 inline G4int G4FastStep::GetNumberOfSecondaryT 78 { 79 return GetNumberOfSecondaries(); 80 } 81 82 inline G4Track* G4FastStep::GetSecondaryTrack( 83 { 84 return GetSecondary(i); 85 } 86 87 //--------------------------------------- 88 // 89 //--------------------------------------- 90 inline void G4FastStep::ProposeTotalEnergyDepo 91 { 92 ProposeLocalEnergyDeposit(anEnergyPart); 93 } 94 inline void G4FastStep::SetTotalEnergyDeposite 95 { 96 ProposeTotalEnergyDeposited(anEnergyPart); 97 } 98 99 inline G4double G4FastStep::GetTotalEnergyDepo 100 { 101 return GetLocalEnergyDeposit(); 102 } 103 104 inline void G4FastStep::ForceSteppingHitInvoca 105 { 106 ProposeSteppingControl(NormalCondition); 107 } 108 109 inline void G4FastStep::SetMomentumChange(G4do 110 { 111 theMomentumChange.setX(Px); 112 theMomentumChange.setY(Py); 113 theMomentumChange.setZ(Pz); 114 } 115 116 inline void G4FastStep::SetMomentumChange(cons 117 { 118 theMomentumChange = P; 119 } 120 121 inline void G4FastStep::ProposePrimaryTrackFin 122 { 123 theWeightChange = w; 124 } 125 inline void G4FastStep::SetPrimaryTrackFinalEv 126 { 127 ProposePrimaryTrackFinalEventBiasingWeight(w 128 } 129