Changeset 961 for trunk/source/processes/decay/src/G4Decay.cc
- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/decay/src/G4Decay.cc
r819 r961 25 25 // 26 26 // 27 // $Id: G4Decay.cc,v 1. 27.2.1 2008/04/17 08:59:24kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $27 // $Id: G4Decay.cc,v 1.30 2008/09/19 03:19:53 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 64 64 pExtDecayer(0) 65 65 { 66 // set Process Sub Type 67 SetProcessSubType(static_cast<int>(DECAY)); 68 66 69 #ifdef G4VERBOSE 67 70 if (GetVerboseLevel()>1) { … … 69 72 } 70 73 #endif 74 71 75 pParticleChange = &fParticleChangeForDecay; 72 76 } … … 404 408 fRemainderLifeTime = pTime - track.GetProperTime(); 405 409 if (fRemainderLifeTime <= 0.0) fRemainderLifeTime = DBL_MIN; 410 406 411 G4double rvalue=0.0; 407 412 // use pre-assigned Decay time to determine PIL 408 413 if (aLife>0.0) { 409 414 // ordinary particle 410 rvalue = (fRemainderLifeTime/aLife)*GetMeanFreePath(track, previousStepSize 411 , condition); 415 rvalue = (fRemainderLifeTime/aLife)*GetMeanFreePath(track, previousStepSize, condition); 412 416 } else { 413 417 // shortlived particle … … 418 422 } 419 423 return rvalue; 420 421 424 } 422 425 } … … 440 443 return fRemainderLifeTime; 441 444 } 445 446 447 void G4Decay::SetExtDecayer(G4VExtDecayer* val) 448 { 449 pExtDecayer = val; 450 451 // set Process Sub Type 452 if ( pExtDecayer !=0 ) { 453 SetProcessSubType(static_cast<int>(DECAY_External)); 454 } 455 }
Note: See TracChangeset
for help on using the changeset viewer.