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 // $Id: G4FastStep.icc,v 1.5 2006/06/29 21:09:16 gunter Exp $ >> 28 // GEANT4 tag $Name: geant4-08-01-patch-01 $ 27 // 29 // 28 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 30 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $ 29 31 30 inline void G4FastStep::ProposePrimaryTrackFin << 32 inline void >> 33 G4FastStep::ProposePrimaryTrackFinalTime(G4double time) 31 { 34 { 32 theTimeChange = time; 35 theTimeChange = time; 33 } 36 } 34 inline void G4FastStep::SetPrimaryTrackFinalTi << 37 inline void >> 38 G4FastStep:: SetPrimaryTrackFinalTime(G4double time) 35 { 39 { 36 ProposePrimaryTrackFinalTime(time); 40 ProposePrimaryTrackFinalTime(time); 37 } 41 } 38 42 39 inline void G4FastStep::ProposePrimaryTrackFin << 43 >> 44 inline void >> 45 G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime) 40 { 46 { 41 theProperTimeChange = properTime; 47 theProperTimeChange = properTime; 42 } 48 } 43 inline void G4FastStep::SetPrimaryTrackFinalPr << 49 inline void >> 50 G4FastStep:: SetPrimaryTrackFinalProperTime(G4double properTime) 44 { 51 { 45 ProposePrimaryTrackFinalProperTime(properTim 52 ProposePrimaryTrackFinalProperTime(properTime); 46 } 53 } 47 54 48 inline void G4FastStep::ProposePrimaryTrackFin << 55 >> 56 inline void >> 57 G4FastStep:: >> 58 SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy) 49 { 59 { 50 theEnergyChange = kineticEnergy; 60 theEnergyChange = kineticEnergy; 51 } 61 } 52 inline void G4FastStep::SetPrimaryTrackFinalKi << 53 { << 54 ProposePrimaryTrackFinalKineticEnergy(kineti << 55 } << 56 62 57 inline void G4FastStep::ProposePrimaryTrackPat << 63 >> 64 inline void >> 65 G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength) 58 { 66 { 59 ProposeTrueStepLength(pathLength); 67 ProposeTrueStepLength(pathLength); 60 } 68 } 61 inline void G4FastStep::SetPrimaryTrackPathLen << 69 inline void >> 70 G4FastStep::SetPrimaryTrackPathLength(G4double pathLength) 62 { 71 { 63 ProposePrimaryTrackPathLength(pathLength); 72 ProposePrimaryTrackPathLength(pathLength); 64 } 73 } 65 << 66 //----------------------------------------- 74 //----------------------------------------- 67 // 75 // 68 // Creation of eventual secondaries: << 76 // Creation of eventual secondaries: 69 // 77 // 70 //----------------------------------------- 78 //----------------------------------------- 71 79 72 inline void G4FastStep::SetNumberOfSecondaryTr << 80 inline void >> 81 G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries) 73 { 82 { 74 SetNumberOfSecondaries(nSecondaries); 83 SetNumberOfSecondaries(nSecondaries); 75 } 84 } 76 85 77 inline G4int G4FastStep::GetNumberOfSecondaryT << 86 inline G4int >> 87 G4FastStep::GetNumberOfSecondaryTracks() 78 { 88 { 79 return GetNumberOfSecondaries(); 89 return GetNumberOfSecondaries(); 80 } 90 } 81 91 82 inline G4Track* G4FastStep::GetSecondaryTrack( 92 inline G4Track* G4FastStep::GetSecondaryTrack(G4int i) 83 { 93 { 84 return GetSecondary(i); 94 return GetSecondary(i); 85 } 95 } 86 96 >> 97 87 //--------------------------------------- 98 //--------------------------------------- 88 // 99 // 89 //--------------------------------------- 100 //--------------------------------------- 90 inline void G4FastStep::ProposeTotalEnergyDepo 101 inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart) 91 { 102 { 92 ProposeLocalEnergyDeposit(anEnergyPart); 103 ProposeLocalEnergyDeposit(anEnergyPart); 93 } 104 } 94 inline void G4FastStep::SetTotalEnergyDeposite 105 inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart) 95 { 106 { 96 ProposeTotalEnergyDeposited(anEnergyPart); 107 ProposeTotalEnergyDeposited(anEnergyPart); 97 } 108 } 98 109 >> 110 99 inline G4double G4FastStep::GetTotalEnergyDepo 111 inline G4double G4FastStep::GetTotalEnergyDeposited() const 100 { 112 { 101 return GetLocalEnergyDeposit(); 113 return GetLocalEnergyDeposit(); 102 } 114 } 103 115 >> 116 104 inline void G4FastStep::ForceSteppingHitInvoca 117 inline void G4FastStep::ForceSteppingHitInvocation() 105 { 118 { 106 ProposeSteppingControl(NormalCondition); 119 ProposeSteppingControl(NormalCondition); 107 } 120 } 108 121 109 inline void G4FastStep::SetMomentumChange(G4do << 122 inline >> 123 void G4FastStep::SetMomentumChange( >> 124 G4double Px, >> 125 G4double Py, >> 126 G4double Pz ) 110 { 127 { 111 theMomentumChange.setX(Px); 128 theMomentumChange.setX(Px); 112 theMomentumChange.setY(Py); 129 theMomentumChange.setY(Py); 113 theMomentumChange.setZ(Pz); 130 theMomentumChange.setZ(Pz); 114 } 131 } 115 132 116 inline void G4FastStep::SetMomentumChange(cons << 133 >> 134 inline >> 135 void G4FastStep::SetMomentumChange(const G4ThreeVector& P) 117 { 136 { 118 theMomentumChange = P; 137 theMomentumChange = P; 119 } 138 } 120 139 121 inline void G4FastStep::ProposePrimaryTrackFin << 140 >> 141 inline >> 142 void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight (G4double w) 122 { 143 { 123 theWeightChange = w; 144 theWeightChange = w; 124 } 145 } 125 inline void G4FastStep::SetPrimaryTrackFinalEv << 146 inline >> 147 void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w) 126 { 148 { 127 ProposePrimaryTrackFinalEventBiasingWeight(w 149 ProposePrimaryTrackFinalEventBiasingWeight(w); 128 } 150 } 129 151