Changeset 1228 for trunk/source/processes/hadronic/models/util
- Timestamp:
- Jan 8, 2010, 11:56:51 AM (15 years ago)
- Location:
- trunk/source/processes/hadronic/models/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/util/History
r1196 r1228 15 15 --------------------------------------------------------------- 16 16 17 10 December 2009 Gunter Folger hadr-mod-util-V09-02-07 18 - G4NuclearFermiDensity.hh: chnage value of prtection in GetDeriv() to lower 19 value 20 21 09 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 26 09 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 17 31 19 November 2009 Gunter Folger hadr-mod-util-V09-02-04 32 -------------------------------------------------------- 18 33 - Restore methods storing/retrieving G4SplitableHadron*, 19 34 now in use in FTF -
trunk/source/processes/hadronic/models/util/include/G4NuclearFermiDensity.hh
r819 r1228 56 56 G4double GetDeriv(const G4ThreeVector & aPosition) const 57 57 { 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()); 59 61 } 60 62 -
trunk/source/processes/hadronic/models/util/src/G4WilsonRadius.cc
r819 r1228 84 84 else 85 85 { 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, 87 90 2.57, 2.41, 2.23, 2.519, 2.45, 88 91 2.42, 2.471, 2.440, 2.58, 2.611,
Note: See TracChangeset
for help on using the changeset viewer.