Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NuclearShellModelDensity.cc,v 1.1.10.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
// $Id: G4NuclearShellModelDensity.cc,v 1.4 2000/05/23 13:41:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
//
|
||||
|
||||
#include "G4NuclearShellModelDensity.hh"
|
||||
@@ -14,8 +14,8 @@
|
||||
G4NuclearShellModelDensity::G4NuclearShellModelDensity(G4double anA, G4double aZ)
|
||||
{
|
||||
const G4double r0sq=0.8133*fermi*fermi;
|
||||
theA = anA;
|
||||
theZ = aZ;
|
||||
theA = G4int(anA);
|
||||
theZ = G4int(aZ);
|
||||
theRsquare= r0sq * pow(theA, 2./3. );
|
||||
Setrho0(pow(1./(pi*theRsquare),3./2.));
|
||||
}
|
||||
@@ -34,3 +34,7 @@ G4double G4NuclearShellModelDensity::GetRadius(const G4double maxRelativeDensity
|
||||
sqrt(theRsquare * log(1/maxRelativeDensity) ) : DBL_MAX;
|
||||
}
|
||||
|
||||
G4double G4NuclearShellModelDensity::GetDeriv(const G4ThreeVector & aPosition)
|
||||
{
|
||||
return -2* aPosition.mag() / theRsquare * GetDensity(aPosition);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user