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