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