Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4Cerenkov.hh,v 1.8 2006/06/29 19:55:31 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4Cerenkov.hh,v 1.9 2007/09/30 22:17:04 gum Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -33,11 +33,12 @@
////////////////////////////////////////////////////////////////////////
//
// File: G4Cerenkov.hh
// Description: Continuous Process -- Generation of Cerenkov Photons
// Description: Discrete Process - Generation of Cerenkov Photons
// Version: 2.0
// Created: 1996-02-21
// Author: Juliet Armstrong
// Updated: 2005-07-28 add G4ProcessType to constructor
// Updated: 2007-09-30 change inheritance to G4VDiscreteProcess
// 2005-07-28 add G4ProcessType to constructor
// 1999-10-29 add method and class descriptors
// 1997-04-09 by Peter Gumplinger
// > G4MaterialPropertiesTable; new physics/tracking scheme
@@ -58,7 +59,7 @@
#include "G4ThreeVector.hh"
#include "G4ParticleMomentum.hh"
#include "G4Step.hh"
#include "G4VContinuousProcess.hh"
#include "G4VDiscreteProcess.hh"
#include "G4OpticalPhoton.hh"
#include "G4DynamicParticle.hh"
#include "G4Material.hh"
@@ -67,15 +68,15 @@
#include "G4PhysicsOrderedFreeVector.hh"
// Class Description:
// Continuous Process -- Generation of Cerenkov Photons.
// Class inherits publicly from G4VContinuousProcess.
// Discrete Process -- Generation of Cerenkov Photons.
// Class inherits publicly from G4VDiscreteProcess.
// Class Description - End:
/////////////////////
// Class Definition
/////////////////////
class G4Cerenkov : public G4VContinuousProcess
class G4Cerenkov : public G4VDiscreteProcess
{
private:
@@ -108,14 +109,13 @@ public: // With description
G4bool IsApplicable(const G4ParticleDefinition& aParticleType);
// Returns true -> 'is applicable', for all charged particles.
G4double GetContinuousStepLimit(const G4Track& aTrack,
G4double ,
G4double ,
G4double& );
// Returns the continuous step limit defined by the Cerenkov
// process.
G4double GetMeanFreePath(const G4Track& aTrack,
G4double ,
G4ForceCondition* );
// Returns the discrete step limit and sets the 'StronglyForced'
// condition for the DoIt to be invoked at every step.
G4VParticleChange* AlongStepDoIt(const G4Track& aTrack,
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
const G4Step& aStep);
// This is the method implementing the Cerenkov process.
@@ -146,7 +146,8 @@ private:
// Helper Functions
/////////////////////
G4double GetAverageNumberOfPhotons(const G4DynamicParticle *aParticle,
G4double GetAverageNumberOfPhotons(const G4double charge,
const G4double beta,
const G4Material *aMaterial,
const G4MaterialPropertyVector* Rindex) const;
@@ -25,7 +25,7 @@
//
//
// $Id: G4ForwardXrayTR.hh,v 1.14 2006/06/29 19:55:33 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
// G4ForwardXrayTR -- header file
//
@@ -25,7 +25,7 @@
//
//
// $Id: G4GammaXTRadiator.hh,v 1.4 2006/06/29 19:55:35 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
///////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@
//
//
// $Id: G4RegularXTRadiator.hh,v 1.3 2006/06/29 19:55:37 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
///////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@
//
//
// $Id: G4Scintillation.hh,v 1.13 2006/06/29 19:55:39 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4StrawTubeXTRadiator.hh,v 1.2 2006/06/29 19:55:41 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4StrawTubeXTRadiator.hh,v 1.4 2007/09/29 17:49:34 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
///////////////////////////////////////////////////////////////////////////
@@ -40,47 +40,42 @@
//
// History:
// 22.04.05 V. Grichine, first version
// 28.09.07, V.Ivanchenko general cleanup without change of algorithms
//
#ifndef G4StrawTubeXTRadiator_h
#define G4StrawTubeXTRadiator_h 1
#include <complex>
#include "G4VXTRenergyLoss.hh"
class G4SandiaTable;
class G4StrawTubeXTRadiator : public G4VXTRenergyLoss
{
public:
G4StrawTubeXTRadiator (G4LogicalVolume* anEnvelope, G4Material*, G4Material*,
G4double,G4double,G4Material*,G4bool unishut = false,
const G4String & processName = "StrawTubeXTRadiator");
~G4StrawTubeXTRadiator ();
G4double,G4double,G4Material*,G4bool unishut = false,
const G4String & processName = "StrawTubeXTRadiator");
virtual ~G4StrawTubeXTRadiator ();
// Auxiliary functions for plate/gas material parameters
// Auxiliary functions for plate/gas material parameters
G4double GetMediumFormationZone(G4double,G4double,G4double) ;
void ComputeMediumPhotoAbsCof() ;
G4double GetMediumLinearPhotoAbs(G4double) ;
G4complex GetMediumComplexFZ(G4double,G4double,G4double) ;
// Pure virtual function from base class
G4double GetStackFactor( G4double energy, G4double gamma, G4double varAngle);
protected:
G4int fMatIndex3;
G4double fSigma3;
G4double** fMediumPhotoAbsCof ;
G4int fMediumIntervalNumber ;
G4SandiaTable* fMediumPhotoAbsCof;
};
#endif
@@ -25,7 +25,7 @@
//
//
// $Id: G4SynchrotronRadiation.hh,v 1.4 2006/06/29 19:55:43 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -25,7 +25,7 @@
//
//
// $Id: G4SynchrotronRadiationInMat.hh,v 1.2 2006/06/29 19:55:45 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file
@@ -25,7 +25,7 @@
//
//
// $Id: G4TransitionRadiation.hh,v 1.9 2006/06/29 19:55:47 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
// G4TransitionRadiation -- header file
//
@@ -25,7 +25,7 @@
//
//
// $Id: G4TransparentRegXTRadiator.hh,v 1.2 2006/06/29 19:55:49 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
///////////////////////////////////////////////////////////////////////////
@@ -25,7 +25,7 @@
//
//
// $Id: G4VTRModel.hh,v 1.3 2006/06/29 19:55:51 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
// G4VTRModel -- header file
//
@@ -25,7 +25,7 @@
//
//
// $Id: G4VTransitionRadiation.hh,v 1.3 2006/06/29 19:55:53 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
// G4VTransitionRadiation -- header file
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VXTRenergyLoss.hh,v 1.18 2006/06/29 19:55:55 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VXTRenergyLoss.hh,v 1.24 2007/09/29 17:49:34 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
///////////////////////////////////////////////////////////////////////////
@@ -38,12 +38,11 @@
// 06.10.05 V. Grichine first step to discrete process
// 15.01.02 V. Grichine first version
// 28.07.05, P.Gumplinger add G4ProcessType to constructor
// 28.09.07, V.Ivanchenko general cleanup without change of algorithms
//
#ifndef G4XTRenergyLoss_h
#define G4XTRenergyLoss_h 1
#ifndef G4VXTRenergyLoss_h
#define G4VXTRenergyLoss_h 1
#include <complex>
#include "globals.hh"
@@ -68,38 +67,27 @@
#include "G4Integrator.hh"
#include "G4ParticleChange.hh"
class G4SandiaTable;
class G4VParticleChange;
class G4PhysicsFreeVector;
class G4XTRenergyLoss : public G4VDiscreteProcess // G4VContinuousProcess
class G4VXTRenergyLoss : public G4VDiscreteProcess // G4VContinuousProcess
{
public:
G4XTRenergyLoss (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
G4VXTRenergyLoss (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
G4double,G4double,G4int,
const G4String & processName = "XTRenergyLoss",
G4ProcessType type = fElectromagnetic);
virtual ~G4XTRenergyLoss ();
virtual ~G4VXTRenergyLoss ();
// These virtual has to be implemented in inherited particular TR radiators
virtual G4double GetStackFactor( G4double energy, G4double gamma,
G4double varAngle );
G4bool IsApplicable(const G4ParticleDefinition&);
G4double GetContinuousStepLimit(const G4Track& aTrack,
G4double ,
G4double ,
G4double& );
// Returns the continuous step limit defined by the XTR process.
G4VParticleChange* AlongStepDoIt(const G4Track& aTrack,
const G4Step& aStep);
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
const G4Step& aStep);
@@ -161,91 +149,89 @@ public:
void GetGasZmuProduct();
G4double GetGasZmuProduct(G4double,G4double,G4double);
G4double GetPlateCompton(G4double);
G4double GetGasCompton(G4double);
G4double GetComptonPerAtom(G4double,G4double);
G4double GetPlateCompton(G4double);
G4double GetGasCompton(G4double);
G4double GetComptonPerAtom(G4double,G4double);
G4double GetXTRrandomEnergy( G4double scaledTkin, G4int iTkin );
G4double GetXTRenergy( G4int iPlace, G4double position, G4int iTransfer );
G4double GetXTRrandomEnergy( G4double scaledTkin, G4int iTkin );
G4double GetXTRenergy( G4int iPlace, G4double position, G4int iTransfer );
G4double GetRandomAngle( G4double energyXTR, G4int iTkin );
G4double GetAngleXTR(G4int iTR,G4double position,G4int iAngle);
G4double GetRandomAngle( G4double energyXTR, G4int iTkin );
G4double GetAngleXTR(G4int iTR,G4double position,G4int iAngle);
G4double GetGamma() {return fGamma;};
G4double GetEnergy() {return fEnergy;};
G4double GetVarAngle(){return fVarAngle;};
G4double GetGamma() {return fGamma;};
G4double GetEnergy() {return fEnergy;};
G4double GetVarAngle(){return fVarAngle;};
void SetGamma(G4double gamma) {fGamma = gamma;};
void SetEnergy(G4double energy) {fEnergy = energy;};
void SetVarAngle(G4double varAngle){fVarAngle = varAngle;};
void SetAngleRadDistr(G4bool pAngleRadDistr){fAngleRadDistr=pAngleRadDistr;};
void SetCompton(G4bool pC){fCompton=pC;};
void SetVerboseLevel(G4int verbose){fVerbose=verbose;};
static G4PhysicsLogVector* GetProtonVector(){ return fProtonEnergyVector;};
static G4int GetTotBin(){return fTotBin;};
G4PhysicsLogVector* GetProtonVector(){ return fProtonEnergyVector;};
G4int GetTotBin(){return fTotBin;};
G4PhysicsFreeVector* GetAngleVector(G4double energy, G4int n);
protected:
G4ParticleDefinition* fPtrGamma ; // pointer to TR photon
G4ParticleDefinition* fPtrGamma ; // pointer to TR photon
G4double* fGammaCutInKineticEnergy ; // TR photon cut in energy array
G4double fGammaTkinCut ; // Tkin cut of TR photon in current mat.
G4double fGammaTkinCut ; // Tkin cut of TR photon in current mat.
G4LogicalVolume* fEnvelope ;
G4PhysicsTable* fAngleDistrTable ;
G4PhysicsTable* fEnergyDistrTable ;
G4PhysicsTable* fAngleDistrTable ;
G4PhysicsTable* fEnergyDistrTable ;
static G4PhysicsLogVector* fProtonEnergyVector ;
static G4PhysicsLogVector* fXTREnergyVector ;
G4PhysicsLogVector* fProtonEnergyVector ;
G4PhysicsLogVector* fXTREnergyVector ;
G4double fTheMinEnergyTR; // min TR energy
G4double fTheMaxEnergyTR; // max TR energy
G4double fMinEnergyTR; // min TR energy in material
G4double fMaxEnergyTR; // max TR energy in material
G4double fTheMaxAngle; // max theta of TR quanta
G4double fTheMinAngle; // max theta of TR quanta
G4double fMaxThetaTR; // max theta of TR quanta
G4int fBinTR; // number of bins in TR vectors
static G4double fTheMinEnergyTR; // static min TR energy
static G4double fTheMaxEnergyTR; // static max TR energy
G4double fMinEnergyTR; // min TR energy in material
G4double fMaxEnergyTR; // max TR energy in material
static G4double fTheMaxAngle; // max theta of TR quanta
static G4double fTheMinAngle; // max theta of TR quanta
G4double fMaxThetaTR; // max theta of TR quanta
static G4int fBinTR; // number of bins in TR vectors
static G4double fMinProtonTkin; // min Tkin of proton in tables
static G4double fMaxProtonTkin; // max Tkin of proton in tables
static G4int fTotBin; // number of bins in log scale
G4double fGamma; // current Lorentz factor
G4double fEnergy; // energy and
G4double fVarAngle; // angle squared
G4double fMinProtonTkin; // min Tkin of proton in tables
G4double fMaxProtonTkin; // max Tkin of proton in tables
G4int fTotBin; // number of bins in log scale
G4double fGamma; // current Lorentz factor
G4double fEnergy; // energy and
G4double fVarAngle; // angle squared
G4double fLambda;
static G4double fPlasmaCof ; // physical consts for plasma energy
static G4double fCofTR ;
G4double fPlasmaCof ; // physical consts for plasma energy
G4double fCofTR ;
G4bool fExitFlux;
G4bool fAngleRadDistr;
G4bool fCompton;
G4double fSigma1;
G4double fSigma2; // plasma energy Sq of matter1/2
G4bool fExitFlux;
G4bool fAngleRadDistr;
G4bool fCompton;
G4double fSigma1, fSigma2 ; // plasma energy Sq of matter1/2
G4int fMatIndex1;
G4int fMatIndex2;
G4int fPlateNumber;
G4int fMatIndex1, fMatIndex2 ;
G4double fTotalDist;
G4double fPlateThick;
G4double fGasThick;
G4double fAlphaPlate;
G4double fAlphaGas ;
G4int fPlateNumber ;
G4double fTotalDist ;
G4double** fPlatePhotoAbsCof ;
G4int fPlateIntervalNumber ;
G4double fPlateThick ;
G4SandiaTable* fPlatePhotoAbsCof;
G4double** fGasPhotoAbsCof ;
G4int fGasIntervalNumber ;
G4double fGasThick ;
G4double fAlphaPlate, fAlphaGas ;
G4SandiaTable* fGasPhotoAbsCof;
G4ParticleChange fParticleChange;
G4PhysicsTable* fAngleForEnergyTable;
std::vector<G4PhysicsTable*> fAngleBank;
G4int fVerbose;
};
typedef G4XTRenergyLoss G4VXTRenergyLoss;
#endif
@@ -48,22 +48,21 @@
// 03.10.05 V. Grichine, first version
//
#ifndef G4XTRGammaRadModel_h
#define G4XTRGammaRadModel_h 1
#include "G4VXTRenergyLoss.hh"
class G4XTRGammaRadModel : public G4XTRenergyLoss
class G4XTRGammaRadModel : public G4VXTRenergyLoss
{
public:
G4XTRGammaRadModel (G4LogicalVolume *anEnvelope,
G4double,G4double,
G4Material*,G4Material*,
G4double,G4double,G4int,
const G4String & processName = "XTRgammaRadiator" );
~G4XTRGammaRadModel ();
G4XTRGammaRadModel (G4LogicalVolume *anEnvelope,
G4double,G4double,
G4Material*,G4Material*,
G4double,G4double,G4int,
const G4String & processName = "XTRgammaRadiator" );
virtual ~G4XTRGammaRadModel ();
// Pure virtual function from base class
@@ -41,21 +41,19 @@
// 10.10.05 V. Grichine, first version
//
#ifndef G4XTRRegularRadModel_h
#define G4XTRRegularRadModel_h 1
#include "G4VXTRenergyLoss.hh"
class G4XTRRegularRadModel : public G4XTRenergyLoss
class G4XTRRegularRadModel : public G4VXTRenergyLoss
{
public:
G4XTRRegularRadModel (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
G4XTRRegularRadModel (G4LogicalVolume *anEnvelope,G4Material*,G4Material*,
G4double,G4double,G4int,
const G4String & processName = "XTRegularModel");
~G4XTRRegularRadModel ();
virtual ~G4XTRRegularRadModel ();
// Pure virtual function from base class