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