Import Geant4 0.1.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: 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user