Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// the 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: G4EnergyLossTables.cc,v 1.7 1999/04/15 07:46:27 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4EnergyLossTables.cc,v 1.9.2.1 1999/12/07 20:51:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
// first version created by P.Urban , 06/04/1998
|
||||
// modifications + "precise" functions added by L.Urban , 27/05/98
|
||||
// modifications , TOF functions , 26/10/98, L.Urban
|
||||
// cache mechanism in order to gain time, 11/02/99, L.Urban
|
||||
// bug fixed , 12/04/99 , L.Urban
|
||||
// 10/11/99: moved from RWT hash dictionary to STL map, G.Barrand, M.Maire
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
#include "G4EnergyLossTables.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4EnergyLossTablesHelper G4EnergyLossTables::t ;
|
||||
const G4ParticleDefinition* G4EnergyLossTables::lastParticle = NULL ;
|
||||
G4double G4EnergyLossTables::QQPositron = eplus*eplus ;
|
||||
@@ -26,8 +30,9 @@ G4double G4EnergyLossTables::rmin = 0. ;
|
||||
G4double G4EnergyLossTables::rmax = 0. ;
|
||||
G4double G4EnergyLossTables::Thigh = 0. ;
|
||||
|
||||
RWTValHashDictionary<const G4ParticleDefinition*, G4EnergyLossTablesHelper>
|
||||
G4EnergyLossTables::dict(G4EnergyLossTables::HashFun);
|
||||
G4EnergyLossTables::helper_map G4EnergyLossTables::dict;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void G4EnergyLossTables::Register(
|
||||
const G4ParticleDefinition* p,
|
||||
@@ -51,7 +56,7 @@ void G4EnergyLossTables::Register(
|
||||
QQPositron ;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4double G4EnergyLossTables::GetPreciseDEDX(
|
||||
const G4ParticleDefinition *aParticle,
|
||||
@@ -93,6 +98,8 @@ void G4EnergyLossTables::Register(
|
||||
return dEdx*Chargesquare;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4double G4EnergyLossTables::GetPreciseRangeFromEnergy(
|
||||
const G4ParticleDefinition *aParticle,
|
||||
G4double KineticEnergy,
|
||||
@@ -143,6 +150,8 @@ void G4EnergyLossTables::Register(
|
||||
return Range/(Chargesquare*t.theMassRatio);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user