Changeset 1340 for trunk/source/track/src/G4Step.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/src/G4Step.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4Step.cc,v 1. 7 2006/10/30 09:50:13kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4Step.cc,v 1.11 2010/10/30 07:49:08 kurasige Exp $ 28 // GEANT4 tag $Name: track-V09-03-09 $ 29 29 // 30 30 // … … 54 54 G4Step::G4Step() 55 55 //////////////// 56 : fTotalEnergyDeposit(0.0),fNonIonizingEnergyDeposit(0.0), 57 fStepLength(0.), fpTrack(0), 58 fpSteppingControlFlag(NormalCondition),fSecondary(0), 59 fpVectorOfAuxiliaryPointsPointer(0) 56 60 { 57 61 fpPreStepPoint = new G4StepPoint(); … … 69 73 delete fpPostStepPoint; 70 74 } 75 76 77 ///////////////// 78 G4ThreeVector G4Step::GetDeltaMomentum() const 79 ///////////////// 80 { 81 static G4bool isFirstTime = true; 82 if (isFirstTime) { 83 isFirstTime = false; 84 #ifdef G4VERBOSE 85 G4Exception( "G4Step::GetDeltaMomentum()","Warning", JustWarning, 86 "This method is obsolete and will be removed soon"); 87 #endif 88 } 89 90 return fpPostStepPoint->GetMomentum() 91 - fpPreStepPoint->GetMomentum(); 92 } 93 94 ///////////////// 95 G4double G4Step::GetDeltaEnergy() const 96 ///////////////// 97 { 98 static G4bool isFirstTime = true; 99 if (isFirstTime) { 100 isFirstTime = false; 101 #ifdef G4VERBOSE 102 G4Exception( "G4Step::GetDeltaEnergy()","Warning", JustWarning, 103 "This method is obsolete and will be removed soon"); 104 #endif 105 } 106 107 return fpPostStepPoint->GetKineticEnergy() 108 - fpPreStepPoint->GetKineticEnergy(); 109 }
Note: See TracChangeset
for help on using the changeset viewer.