Ignore:
Timestamp:
Jan 8, 2010, 11:56:51 AM (15 years ago)
Author:
garnier
Message:

update geant4.9.3 tag

Location:
trunk/source/processes/hadronic/models/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/util/History

    r1196 r1228  
    1515     ---------------------------------------------------------------
    1616
     1710 December 2009 Gunter Folger     hadr-mod-util-V09-02-07
     18- G4NuclearFermiDensity.hh: chnage value of prtection in GetDeriv() to lower
     19    value
     20   
     2109 December 2009 Gunter Folger     hadr-mod-util-V09-02-06
     22--------------------------------------------------------
     23- G4NuclearFermiDensity.hh: Protect GetDeriv(pos) for positions far
     24   outside the nucleus causing an FP overflow in exp.
     25
     2609 December 2009 Gunter Folger     hadr-mod-util-V09-02-05
     27--------------------------------------------------------
     28- G4WilsonRadius.cc change provided by M.Mendenhall via P.Truscott:
     29   Data vector r[] made static const
     30   
    173119 November 2009 Gunter Folger     hadr-mod-util-V09-02-04
     32--------------------------------------------------------
    1833-  Restore methods storing/retrieving G4SplitableHadron*,
    1934   now in use in FTF
  • trunk/source/processes/hadronic/models/util/include/G4NuclearFermiDensity.hh

    r819 r1228  
    5656    G4double GetDeriv(const G4ThreeVector & aPosition) const
    5757    {
    58       return -std::exp((aPosition.mag()-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
     58      G4double currentR=aPosition.mag();
     59      if (currentR > 40*theR  ) {return 0;}
     60      else return -std::exp((currentR-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
    5961    }   
    6062   
  • trunk/source/processes/hadronic/models/util/src/G4WilsonRadius.cc

    r819 r1228  
    8484  else
    8585  {
    86     G4double r[27] = {0.0, 0.85,  2.095, 1.976, 1.671, 1.986,
     86        // this was changed from just G4double to static const G4double
     87        // to make sure that time wasn't being wasted on every call reloading a stack variable
     88        // by MHM 20050119
     89    static const G4double r[27] = {0.0, 0.85,  2.095, 1.976, 1.671, 1.986,
    8790                           2.57,  2.41,  2.23,  2.519, 2.45,
    8891                           2.42,  2.471, 2.440, 2.58,  2.611,
Note: See TracChangeset for help on using the changeset viewer.