Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -24,14 +24,14 @@
// ********************************************************************
//
//
// $Id: G4GammaConversionToMuons.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4GammaConversionToMuons.hh 106961 2017-10-31 08:36:29Z gcosmo $
//
// ------------ G4GammaConversionToMuons physics process ------
// by H.Burkhardt, S. Kelner and R. Kokoulin, April 2002
// -----------------------------------------------------------------------------
//
// 05-08-04: suppression of .icc file (mma)
// 13-08-04, public ComputeCrossSectionPerAtom() and ComputeMeanFreePath() (mma)
// 13-08-04, public ComputeCrossSectionPerAtom() and ComputeMeanFreePath() (mma)
//
// class description
//
@@ -61,83 +61,76 @@
class G4GammaConversionToMuons : public G4VDiscreteProcess
{
public: // with description
public: // with description
explicit G4GammaConversionToMuons(
explicit G4GammaConversionToMuons(
const G4String& processName ="GammaToMuPair",
G4ProcessType type = fElectromagnetic);
~G4GammaConversionToMuons();
~G4GammaConversionToMuons() override;
G4bool IsApplicable(const G4ParticleDefinition&) override;
G4bool IsApplicable(const G4ParticleDefinition&) override;
// true for Gamma only.
void BuildPhysicsTable(const G4ParticleDefinition&) override;
void BuildPhysicsTable(const G4ParticleDefinition&) override;
// here dummy, the total cross section parametrization is used rather
// than tables, just calling PrintInfoDefinition
void PrintInfoDefinition();
void PrintInfoDefinition();
// Print few lines of informations about the process: validity range,
// origine ..etc..
// Invoked by BuildThePhysicsTable().
void SetCrossSecFactor(G4double fac);
void SetCrossSecFactor(G4double fac);
// Set the factor to artificially increase the crossSection (default 1)
G4double GetCrossSecFactor() { return CrossSecFactor;}
inline G4double GetCrossSecFactor() const { return CrossSecFactor;}
// Get the factor to artificially increase the cross section
G4double GetMeanFreePath(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition) override;
G4double GetMeanFreePath(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition) override;
// 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.
G4double GetCrossSectionPerAtom(const G4DynamicParticle* aDynamicGamma,
G4Element* anElement);
G4double GetCrossSectionPerAtom(const G4DynamicParticle* aDynamicGamma,
const G4Element* anElement);
// It returns the total CrossSectionPerAtom of the process,
// for the current DynamicGamma (energy), in anElement.
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
const G4Step& aStep) override;
G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
const G4Step& aStep) override;
// 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.
virtual
G4double ComputeCrossSectionPerAtom(G4double GammaEnergy,
G4double AtomicZ,G4double AtomicA);
G4double ComputeCrossSectionPerAtom(G4double GammaEnergy, G4int Z);
G4double ComputeMeanFreePath (G4double GammaEnergy,
G4Material* aMaterial);
G4double ComputeMeanFreePath (G4double GammaEnergy,
const G4Material* aMaterial);
private:
private:
G4Element* SelectRandomAtom(const G4DynamicParticle* aDynamicGamma,
G4Material* aMaterial);
const G4Element* SelectRandomAtom(const G4DynamicParticle* aDynamicGamma,
const G4Material* aMaterial);
private:
// hide assignment operator as private
G4GammaConversionToMuons&
operator=(const G4GammaConversionToMuons &right) = delete;
G4GammaConversionToMuons(const G4GammaConversionToMuons& ) = delete;
// hide assignment operator as private
G4GammaConversionToMuons&
operator=(const G4GammaConversionToMuons &right) = delete;
G4GammaConversionToMuons(const G4GammaConversionToMuons& ) = delete;
G4double Mmuon;
G4double Rc;
G4double LowestEnergyLimit ; // low energy limit of the tables
G4double HighestEnergyLimit ; // high energy limit of the tables
private:
G4double Mmuon;
G4double Rc;
G4double LowestEnergyLimit ; // low energy limit of the tables
G4double HighestEnergyLimit ; // high energy limit of the tables
G4double MeanFreePath; // actual MeanFreePath (current medium)
G4double CrossSecFactor; // factor to artificially increase
// the cross section
G4double MeanFreePath; // actual MeanFreePath (current medium)
G4double CrossSecFactor; // factor to artificially increase
// the cross section
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4eeToHadrons.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4eeToHadrons.hh 106715 2017-10-20 09:39:06Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -67,16 +67,20 @@ public:
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
// Print out of the class parameters
virtual void PrintInfo() override;
// Set the factor to artificially increase the crossSection (default 1)
void SetCrossSecFactor(G4double fac);
protected:
// Print out of the class parameters
virtual void StreamProcessInfo(std::ostream& outFile,
G4String endOfLine=G4String("\n")) const override;
virtual void InitialiseProcess(const G4ParticleDefinition*) override;
// print description in html
virtual void ProcessDescription(std::ostream&) const override;
private:
std::vector<G4DynamicParticle*>* GenerateSecondaries(const G4DynamicParticle*);
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4eeToHadronsMultiModel.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4eeToHadronsMultiModel.hh 106715 2017-10-20 09:39:06Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -93,7 +93,10 @@ public:
G4double tmin = 0.0,
G4double maxEnergy = DBL_MAX) override;
virtual void PrintInfo();
virtual void ModelDescription(std::ostream& outFile) const override;
virtual void ModelDescription(std::ostream& outFile,
G4String endOfLine) const override;
// Set the factor to artificially increase the crossSection (default 1)
void SetCrossSecFactor(G4double fac);
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4hBremsstrahlung.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4hBremsstrahlung.hh 106715 2017-10-20 09:39:06Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -69,6 +69,9 @@ public:
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
// print description in html
virtual void ProcessDescription(std::ostream&) const override;
protected:
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4hPairProduction.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4hPairProduction.hh 106715 2017-10-20 09:39:06Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -66,6 +66,9 @@ public:
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
// print description in html
virtual void ProcessDescription(std::ostream&) const override;
protected:
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4hhIonisation.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4hhIonisation.hh 106715 2017-10-20 09:39:06Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -75,6 +75,9 @@ public:
// Print out of the class parameters
virtual void PrintInfo() override;
// print description in html
virtual void ProcessDescription(std::ostream&) const override;
protected:
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4mplIonisation.hh 97391 2016-06-02 10:08:45Z gcosmo $
// $Id: G4mplIonisation.hh 106715 2017-10-20 09:39:06Z gcosmo $
//
// -------------------------------------------------------------------
//
@@ -76,6 +76,9 @@ public:
// Print out of the class parameters
virtual void PrintInfo() override;
// print description in html
virtual void ProcessDescription(std::ostream&) const override;
protected:
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,