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