Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,80 +21,114 @@
// ********************************************************************
//
//
// $Id: G4eIonisation.hh,v 1.7.4.2 2001/06/28 20:19:48 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4eIonisation.hh,v 1.15 2001/10/29 16:23:41 maire Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
// History: based on object model of
// 2nd December 1995, G.Cosmo
// ---------- G4eIonisation physics process -----------
//--------------- G4eIonisation physics process --------------------------------
// by Laszlo Urban, 20 March 1997
// ************************************************************
// It is the first implementation of the NEW IONISATION
// PROCESS. ( delta rays + continuous energy loss)
// It calculates the ionisation for e+/e-.
// ************************************************************
//
// 10/02/00 modifications , new e.m. structure, L.Urban
// ------------------------------------------------------------
// 10-02-00 modifications , new e.m. structure, L.Urban
// 03-08-01 new methods Store/Retrieve PhysicsTable (mma)
// 13-08-01 new function ComputeRestrictedMeandEdx() (mma)
// 19-09-01 come back to previous ProcessName "eIoni"
// 29-10-01 all static functions no more inlined (mma)
//
//------------------------------------------------------------------------------
// Class description
//
// This class manages the ionisation process for e-/e+
// it inherites from G4VContinuousDiscreteProcess via G4VeEnergyLoss.
//
// Class description - end
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef G4eIonisation_h
#define G4eIonisation_h 1
#include "G4ios.hh"
#include "globals.hh"
#include "Randomize.hh"
#include "G4VeEnergyLoss.hh"
#include "globals.hh"
#include "G4Track.hh"
#include "G4Step.hh"
#include "G4Electron.hh"
#include "G4Positron.hh"
#include "G4Gamma.hh"
#include "G4PhysicsLogVector.hh"
#include "G4PhysicsLinearVector.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4eIonisation : public G4VeEnergyLoss
{
public:
public: // with description
G4eIonisation(const G4String& processName = "eIoni");
~G4eIonisation();
G4bool IsApplicable(const G4ParticleDefinition&);
G4bool IsApplicable(const G4ParticleDefinition&);
// return true for e+/e-, false otherwise
void BuildPhysicsTable(const G4ParticleDefinition& aParticleType);
// this function overloads a virtual function of the base class.
// It is invoked by the G4ParticleWithCuts::SetCut() method.
// It invokes BuildLambdaTable(), BuildLossTable(), BuildDEDXTable()
void BuildLossTable(const G4ParticleDefinition& aParticleType);
// build the dE/dx tables due to the ionisation, for every materials.
// (restricted stopping power, Berger-Seltzer formula)
void BuildLambdaTable(const G4ParticleDefinition& aParticleType);
// build mean free path tables for the delta rays production.
// the tables are built for every materials.
G4bool StorePhysicsTable(G4ParticleDefinition* ,
const G4String& directory, G4bool);
// store eLoss and MeanFreePath tables into an external file
// specified by 'directory' (must exist before invokation)
G4bool RetrievePhysicsTable(G4ParticleDefinition* ,
const G4String& directory, G4bool);
// retrieve eLoss and MeanFreePath tables from an external file
// specified by 'directory'
void PrintInfoDefinition();
// Print few lines of informations about the process: validity range,
// origine ..etc..
// Invoked by BuildPhysicsTable().
G4double GetMeanFreePath(const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition ) ;
G4ForceCondition* condition );
// It returns the MeanFreePath of the process for the current track :
// (energy, material)
// The previousStepSize and G4ForceCondition* are not used.
// This function overloads a virtual function of the base class.
// It is invoked by the ProcessManager of the Particle.
G4VParticleChange *PostStepDoIt(const G4Track& track,
const G4Step& Step ) ;
const G4Step& Step );
// It computes the final state of the process (at end of step),
// returned as a ParticleChange object.
// This function overloads a virtual function of the base class.
// It is invoked by the ProcessManager of the Particle.
G4double GetLambda(G4double KineticEnergy, G4Material* material);
// It returns the MeanFreePath of the process for a (energy, material)
G4double GetLambda(
G4double KineticEnergy,G4Material* material);
protected:
virtual G4double ComputeMicroscopicCrossSection(
protected: // with description
virtual G4double ComputeRestrictedMeandEdx(
const G4ParticleDefinition& aParticleType,
G4double KineticEnergy,
const G4Material* material,
G4double DeltaThreshold);
// computes restricted mean dE/dx in Geant4 internal units.
virtual G4double ComputeCrossSectionPerAtom(
const G4ParticleDefinition& aParticleType,
G4double KineticEnergy,
G4double AtomicNumber,
G4double DeltaThreshold);
// computes total cross section per atom in Geant4 internal units.
protected:
G4PhysicsTable* theMeanFreePathTable;
private:
@@ -105,24 +139,29 @@ class G4eIonisation : public G4VeEnergyLoss
private:
// G4PhysicsTable* theMeanFreePathTable;
static G4double LowerBoundLambda; // binning for mean free path table
static G4double UpperBoundLambda;
static G4int NbinLambda;
G4double LowestKineticEnergy; // binning for dE/dx table
G4double HighestKineticEnergy;
G4int TotBin;
static G4double LowerBoundLambda ; // bining for lambda table
static G4double UpperBoundLambda ;
static G4int NbinLambda ;
G4double LowestKineticEnergy,HighestKineticEnergy ;
G4int TotBin ;
public:
static void SetLowerBoundLambda(G4double val) {LowerBoundLambda = val;};
static void SetUpperBoundLambda(G4double val) {UpperBoundLambda = val;};
static void SetNbinLambda(G4int n) {NbinLambda = n;};
static G4double GetLowerBoundLambda() { return LowerBoundLambda;};
static G4double GetUpperBoundLambda() { return UpperBoundLambda;};
static G4int GetNbinLambda() {return NbinLambda;};
public: // with description
static void SetLowerBoundLambda(G4double val);
static void SetUpperBoundLambda(G4double val);
static void SetNbinLambda(G4int n);
// set the parameters of the mean free path table.
static G4double GetLowerBoundLambda();
static G4double GetUpperBoundLambda();
static G4int GetNbinLambda();
// get the parameters of the mean free path table.
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "G4eIonisation.icc"