Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user