Changeset 1340 for trunk/source/track/include/G4Step.icc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/include/G4Step.icc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4Step.icc,v 1. 19 2008/02/05 01:46:57kurasige Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4Step.icc,v 1.22 2010/10/18 23:52:04 kurasige Exp $ 28 // GEANT4 tag $Name: track-V09-03-09 $ 29 29 // 30 30 // … … 86 86 } 87 87 88 inline89 G4ThreeVector G4Step::GetDeltaMomentum() const90 {91 return fpPostStepPoint->GetMomentum()92 - fpPreStepPoint->GetMomentum();93 }94 95 inline96 G4double G4Step::GetDeltaEnergy() const97 {98 return fpPostStepPoint->GetKineticEnergy()99 - fpPreStepPoint->GetKineticEnergy();100 }101 88 102 89 inline … … 163 150 inline 164 151 void G4Step::CopyPostToPreStepPoint( ) 165 { 152 { 153 //This method is called at the beggining of each step 166 154 *(fpPreStepPoint) = *(fpPostStepPoint); 167 155 fpPostStepPoint->SetStepStatus(fUndefined); 168 } 156 // clear secondary in current 157 fSecondary->secondaryInCurrent.clear(); 158 } 169 159 170 160 … … 222 212 fpPreStepPoint->SetWeight(fpTrack->GetWeight()); 223 213 224 214 // clear secondary in current 215 fSecondary->secondaryInCurrent.clear(); 216 225 217 (*fpPostStepPoint) = (*fpPreStepPoint); 226 218 } … … 251 243 fpTrack->SetWeight(fpPostStepPoint->GetWeight()); 252 244 245 253 246 // set velocity 254 247 fpPostStepPoint->SetVelocity(fpTrack->GetVelocity()); 255 248 } 256 249 257 inline G4TrackVector* G4Step::GetfSecondary() { 250 inline 251 const std::vector<const G4Track*>* G4Step::GetSecondaryInCurrentStep() const 252 { 253 return &fSecondary->secondaryInCurrent; 254 } 255 256 inline const G4TrackVector* G4Step::GetSecondary() const 257 { 258 258 return fSecondary; 259 } 260 inline G4TrackVector* G4Step::GetSecondary() const { 259 } 260 261 inline G4TrackVector* G4Step::GetfSecondary() 262 { 261 263 return fSecondary; 262 } 263 inline void G4Step::SetSecondary(G4TrackVector* value) { 264 } 265 266 inline void G4Step::SetSecondary(G4TrackVector* value) 267 { 264 268 fSecondary=value; 265 } 266 inline G4TrackVector* G4Step::NewSecondaryVector() { 269 } 270 271 inline 272 G4TrackVector* G4Step::NewSecondaryVector() 273 { 267 274 fSecondary=new G4TrackVector(); 268 275 return fSecondary; 269 } 276 } 277 270 278 inline void G4Step::DeleteSecondaryVector() { 271 279 delete fSecondary;
Note: See TracChangeset
for help on using the changeset viewer.