Ignore:
Timestamp:
Apr 6, 2009, 12:21:12 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/decay/src/G4Decay.cc

    r819 r961  
    2525//
    2626//
    27 // $Id: G4Decay.cc,v 1.27.2.1 2008/04/17 08:59:24 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-01-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 $
    2929//
    3030//
     
    6464                                pExtDecayer(0)
    6565{
     66  // set Process Sub Type
     67  SetProcessSubType(static_cast<int>(DECAY));
     68
    6669#ifdef G4VERBOSE
    6770  if (GetVerboseLevel()>1) {
     
    6972  }
    7073#endif
     74
    7175  pParticleChange = &fParticleChangeForDecay;
    7276}
     
    404408    fRemainderLifeTime = pTime - track.GetProperTime();
    405409    if (fRemainderLifeTime <= 0.0) fRemainderLifeTime = DBL_MIN;
     410   
    406411    G4double  rvalue=0.0;
    407412    // use pre-assigned Decay time to determine PIL
    408413    if (aLife>0.0) {
    409414      // ordinary particle
    410       rvalue = (fRemainderLifeTime/aLife)*GetMeanFreePath(track, previousStepSize
    411 , condition);
     415      rvalue = (fRemainderLifeTime/aLife)*GetMeanFreePath(track, previousStepSize, condition);
    412416    } else {
    413417     // shortlived particle
     
    418422    }
    419423    return rvalue;
    420  
    421424  }
    422425}
     
    440443  return fRemainderLifeTime;
    441444}
     445
     446
     447void 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.