Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4AtomicShells.hh,v 2.4 1998/11/16 17:26:41 maire Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4AtomicShells.hh,v 1.1 1999/01/07 16:09:39 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// Class consists of atomic subshell binding energies in eV !!!
// for first 100 elements
+9 -16
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Element.hh,v 2.8 1998/11/16 17:26:43 maire Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4Element.hh,v 1.2 1999/04/14 12:48:57 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------- class G4Element -------------------
@@ -112,27 +112,20 @@ public:
G4double* GetRelativeAbundanceVector() const {return fRelativeAbundanceVector;};
const G4Isotope* GetIsotope(G4int iso) const {return (*theIsotopeVector)[iso];};
static
const G4ElementTable* GetElementTable() {return &theElementTable;};
static
size_t GetNumberOfElements() {return theElementTable.length();};
size_t GetIndex() const {return fIndexInTable;};
static const G4ElementTable* GetElementTable() {return &theElementTable;};
static size_t GetNumberOfElements() {return theElementTable.length();};
size_t GetIndex() const {return fIndexInTable;};
static G4Element* GetElement(G4String name);
G4double GetfCoulomb() const {return fCoulomb;};
G4double GetfRadTsai() const {return fRadTsai;};
G4IonisParamElm* GetIonisation() const {return fIonisation;};
friend
ostream& operator<<(ostream&, G4Element*);
friend
ostream& operator<<(ostream&, G4Element&);
friend
ostream& operator<<(ostream&, G4ElementTable);
friend ostream& operator<<(ostream&, G4Element*);
friend ostream& operator<<(ostream&, G4Element&);
friend ostream& operator<<(ostream&, G4ElementTable);
G4int operator==(const G4Element&) const;
G4int operator!=(const G4Element&) const;
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ElementTable.hh,v 2.3 1998/07/12 03:00:29 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4ElementTable.hh,v 1.1 1999/01/07 16:09:40 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ElementVector.hh,v 2.3 1998/07/12 03:00:30 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4ElementVector.hh,v 1.1 1999/01/07 16:09:40 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
+5 -5
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4IonisParamElm.hh,v 2.3 1998/07/13 17:13:50 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4IonisParamElm.hh,v 1.2 1999/04/14 12:48:58 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------- class G4IonisParamElm -------------------
@@ -44,7 +44,7 @@ public:
G4double GetAlow() const {return fAlow;};
G4double GetBlow() const {return fBlow;};
G4double GetClow() const {return fClow;};
G4double GetMeanExcitationEnergy() const {return fMeanExcitationEnergy;};
G4double GetMeanExcitationEnergy() const {return fMeanExcitationEnergy;};
G4double* GetShellCorrectionVector() const {return fShellCorrectionVector;};
G4int operator==(const G4IonisParamElm&) const;
@@ -52,8 +52,8 @@ public:
private:
G4IonisParamElm(G4IonisParamElm &right);
const G4IonisParamElm & operator=(const G4IonisParamElm &right);
G4IonisParamElm(G4IonisParamElm&);
const G4IonisParamElm& operator=(const G4IonisParamElm&);
private:
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4IonisParamMat.hh,v 2.3 1998/07/13 17:13:51 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4IonisParamMat.hh,v 1.2 1999/04/14 12:48:59 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Isotope.hh,v 2.5 1998/08/05 10:30:28 maire Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4Isotope.hh,v 1.1 1999/01/07 16:09:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4IsotopeVector.hh,v 2.3 1998/07/12 03:00:33 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4IsotopeVector.hh,v 1.1 1999/01/07 16:09:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MPVEntry.hh,v 2.1 1998/07/13 17:13:55 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4MPVEntry.hh,v 1.1 1999/01/07 16:09:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
////////////////////////////////////////////////////////////////////////
+4 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Material.hh,v 2.10 1998/11/30 13:56:57 maire Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4Material.hh,v 1.2 1999/04/14 12:48:59 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------- class G4Material ---------------------
@@ -140,6 +140,7 @@ public:
void SetMaterialPropertiesTable(G4MaterialPropertiesTable* anMPT)
{fMaterialPropertiesTable = anMPT;};
G4MaterialPropertiesTable* GetMaterialPropertiesTable() const
{return fMaterialPropertiesTable;};
@@ -163,7 +164,7 @@ public:
G4double GetElectronDensity() const {return TotNbOfElectPerVolume;};
G4double GetRadlen() const {return fRadlen;};
G4IonisParamMat* GetIonisation() const {return fIonisation;};
G4IonisParamMat* GetIonisation() const {return fIonisation;};
G4SandiaTable* GetSandiaTable() const {return fSandiaTable;};
G4double GetZ() const;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MaterialPropertiesTable.hh,v 2.0 1998/07/02 17:19:40 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4MaterialPropertiesTable.hh,v 1.1 1999/01/07 16:09:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MaterialPropertyVector.hh,v 2.0 1998/07/02 17:19:42 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4MaterialPropertyVector.hh,v 1.1 1999/01/07 16:09:42 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
////////////////////////////////////////////////////////////////////////
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MaterialTable.hh,v 2.3 1998/07/12 03:00:35 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4MaterialTable.hh,v 1.1 1999/01/07 16:09:42 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpticalSurface.hh,v 2.0 1998/07/02 17:19:46 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4OpticalSurface.hh,v 1.2 1999/04/14 12:49:00 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
////////////////////////////////////////////////////////////////////////
+91 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SandiaTable.hh,v 2.2 1998/12/10 11:43:35 maire Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4SandiaTable.hh,v 1.2 1999/04/15 14:00:37 grichine Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
//
@@ -31,6 +31,7 @@ class G4SandiaTable
{
public:
G4SandiaTable(G4int);
G4SandiaTable(G4Material*);
~G4SandiaTable();
@@ -44,6 +45,31 @@ public:
G4double GetSandiaCofForMaterial(G4int,G4int);
G4double* GetSandiaCofForMaterial(G4double energy);
/////////////////////////////////////////////////////////////////////
//
// Methods for PAI model
inline void SandiaSwap( G4double da[][5],
G4int i,
G4int j );
void SandiaSort( G4double da[][5],
G4int sz );
G4int SandiaIntervals( G4int Z[],
G4int el );
G4int SandiaMixing( G4int Z[],
const G4double fractionW[],
G4int el,
G4int mi );
inline G4double GetPhotoAbsorpCof(G4int i , G4int j)const ;
inline G4int GetMaxInterval() const ;
private:
void ComputeMatSandiaMatrix();
@@ -60,7 +86,20 @@ private:
G4Material* fMaterial;
G4int fMatNbOfIntervals;
G4OrderedTable* fMatSandiaMatrix;
G4OrderedTable* fMatSandiaMatrix;
//////////////////////////////////////////////////////////////////////////
//
// data memebers for PAI model
static const G4int fNumberOfElements ;
static const G4int fIntervalLimit ;
static const G4int fNumberOfIntervals ;
G4double fPhotoAbsorptionCof[101][5] ; // SandiaTable for mixture
G4int fMaxInterval ;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
@@ -134,5 +173,54 @@ G4double G4SandiaTable::GetZtoA(G4int Z)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
///////////////////////////////////////////////////////////////////////
//
// Inline methods for PAI model
inline
void
G4SandiaTable::SandiaSwap( G4double da[][5],
G4int i,
G4int j )
{
G4double tmp = da[i][0] ;
da[i][0] = da[j][0] ;
da[j][0] = tmp ;
}
/////////////////////////////////////////////////////////////////////////
//
//
inline
G4double G4SandiaTable::GetPhotoAbsorpCof(G4int i, G4int j) const
{
G4double unitCof ;
if(j == 0)
{
unitCof = keV ;
}
else
{
unitCof = (cm2/g)*pow(keV,(G4double)j) ;
}
return fPhotoAbsorptionCof[i][j]*unitCof ;
}
/////////////////////////////////////////////////////////////////////
//
//
inline
G4int G4SandiaTable::GetMaxInterval() const
{
return fMaxInterval ;
}
//
//
////////////////////////////////////////////////////////////////////////////
#endif
+12 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StaticSandiaData.hh,v 2.1 1998/11/20 15:49:22 maire Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StaticSandiaData.hh,v 1.2 1999/04/15 14:00:49 grichine Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// file G4StaticSandiaData.hh
// File for static data of PhotoAbsorption cross section coefficients
@@ -22,7 +22,6 @@
#include"G4SandiaTable.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
//
// These are the coefficients from F. Biggs, R. Lighthill 'Analytical
// Approximation for X-ray Cross Sections III', SAND-0070, May 1990.
@@ -1519,6 +1518,16 @@ const G4double G4SandiaTable::fIonizationPotentials[101] =
}; // ............... end of fIonizationPotentials array
const G4int G4SandiaTable::fNumberOfElements = 100 ;
const G4int G4SandiaTable::fIntervalLimit = 100 ;
const G4int G4SandiaTable::fNumberOfIntervals = 980 ;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....