44 lines
966 B
C++
44 lines
966 B
C++
// This code implementation is the intellectual property of
|
|
// the RD44 GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: G4VNuclearDensity.hh,v 1.2 1998/10/30 16:35:21 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-00 $
|
|
//
|
|
#ifndef G4VNuclearDensity_h
|
|
#define G4VNuclearDensity_h 1
|
|
|
|
#include "globals.hh"
|
|
#include "G4ThreeVector.hh"
|
|
|
|
|
|
class G4VNuclearDensity
|
|
{
|
|
|
|
public:
|
|
G4VNuclearDensity();
|
|
virtual ~G4VNuclearDensity();
|
|
|
|
inline G4double GetDensity(G4ThreeVector aPosition)
|
|
{
|
|
return rho0*GetRelativeDensity(aPosition);
|
|
};
|
|
|
|
virtual G4double GetRelativeDensity(G4ThreeVector aPosition) = 0;
|
|
|
|
virtual G4double GetRadius(const G4double maxRelativeDenisty) = 0 ;
|
|
|
|
protected:
|
|
inline void Setrho0(G4double arho0) { rho0=arho0; };
|
|
|
|
private:
|
|
|
|
G4double rho0;
|
|
};
|
|
|
|
#endif
|
|
|