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