Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -23,133 +23,121 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
// CERN Geneva Switzerland
//
//
// History:
// History:
// 21-5-98 1 version , V. Grichine
// 28-05-01, V.Ivanchenko minor changes to provide ANSI -wall compilation
// 19-05-06, V.Ivanchenko rename from G4SynchrotronRadiation
//
//
// ------------------------------------------------------------
#ifndef G4SynchrotronRadiationInMat_h
#define G4SynchrotronRadiationInMat_h 1
#include "G4ios.hh"
#include "globals.hh"
#include "Randomize.hh"
#include "G4VDiscreteProcess.hh"
#include "G4TransportationManager.hh"
#include "G4FieldManager.hh"
#include "G4Field.hh"
#include "G4ThreeVector.hh"
#include "G4PropagatorInField.hh"
#include "G4Track.hh"
#include "G4Step.hh"
#include "G4Gamma.hh"
#include "G4Electron.hh"
#include "G4Positron.hh"
#include "G4PhysicsTable.hh"
#include "G4Gamma.hh"
#include "G4PhysicsLogVector.hh"
#include "G4PhysicsTable.hh"
#include "G4Positron.hh"
#include "G4Step.hh"
#include "G4ThreeVector.hh"
#include "G4Track.hh"
#include "G4TransportationManager.hh"
#include "G4VDiscreteProcess.hh"
#include "G4VParticleChange.hh"
class G4ParticleDefinition;
class G4PropagatorInField;
class G4SynchrotronRadiationInMat : public G4VDiscreteProcess
{
public:
public:
explicit G4SynchrotronRadiationInMat(
const G4String& processName = "SynchrotronRadiation",
G4ProcessType type = fElectromagnetic);
explicit G4SynchrotronRadiationInMat(const G4String& processName =
"SynchrotronRadiation",
G4ProcessType type = fElectromagnetic);
~G4SynchrotronRadiationInMat();
virtual ~G4SynchrotronRadiationInMat();
private:
G4SynchrotronRadiationInMat &
operator=(const G4SynchrotronRadiationInMat &right) = delete;
G4SynchrotronRadiationInMat& operator=(
const G4SynchrotronRadiationInMat& right) = delete;
G4SynchrotronRadiationInMat(const G4SynchrotronRadiationInMat&) = delete;
public: ///////////////// Post Step functions //////////////////////////
G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize,
G4ForceCondition* condition) override;
G4double GetMeanFreePath( const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition ) override;
G4VParticleChange* PostStepDoIt(const G4Track& track,
const G4Step& Step) override;
G4VParticleChange *PostStepDoIt( const G4Track& track,
const G4Step& Step ) override;
G4double GetPhotonEnergy(const G4Track& trackData, const G4Step& stepData);
G4double GetPhotonEnergy( const G4Track& trackData,
const G4Step& stepData );
G4double GetRandomEnergySR(G4double, G4double);
G4double GetRandomEnergySR( G4double, G4double );
G4double GetProbSpectrumSRforInt(G4double);
G4double GetIntProbSR(G4double);
G4double GetProbSpectrumSRforInt( G4double );
G4double GetIntProbSR( G4double );
G4double GetProbSpectrumSRforEnergy(G4double);
G4double GetEnergyProbSR(G4double);
G4double GetProbSpectrumSRforEnergy( G4double );
G4double GetEnergyProbSR( G4double );
G4double GetIntegrandForAngleK( G4double );
G4double GetAngleK( G4double );
G4double GetAngleNumberAtGammaKsi( G4double );
G4double GetIntegrandForAngleK(G4double);
G4double GetAngleK(G4double);
G4double GetAngleNumberAtGammaKsi(G4double);
G4bool IsApplicable(const G4ParticleDefinition&) override;
static G4double GetLambdaConst();
static G4double GetEnergyConst();
void SetRootNumber(G4int rn){ fRootNumber = rn; };
void SetVerboseLevel(G4int v){ fVerboseLevel = v; };
void SetKsi(G4double ksi){ fKsi = ksi; };
void SetEta(G4double eta){ fEta = eta; };
void SetPsiGamma(G4double psg){ fPsiGamma = psg; };
void SetOrderAngleK(G4double ord){ fOrderAngleK = ord; }; // should be 1/3 or 2/3
void SetRootNumber(G4int rn) { fRootNumber = rn; };
void SetVerboseLevel(G4int v) { fVerboseLevel = v; };
void SetKsi(G4double ksi) { fKsi = ksi; };
void SetEta(G4double eta) { fEta = eta; };
void SetPsiGamma(G4double psg) { fPsiGamma = psg; };
void SetOrderAngleK(G4double ord)
{
fOrderAngleK = ord;
}; // should be 1/3 or 2/3
private:
private:
// Constant for calculation of mean free path
// sqrt(3.) = 1.73...
static constexpr G4double fLambdaConst =
1.73205080756887729352 * CLHEP::electron_mass_c2 /
(2.5 * CLHEP::fine_structure_const * CLHEP::eplus * ::CLHEP::c_light);
static const G4double fLambdaConst;
// Constant for calculation of characterictic energy
static constexpr G4double fEnergyConst =
1.5 * CLHEP::c_light * CLHEP::c_light * CLHEP::eplus * CLHEP::hbar_Planck /
CLHEP::electron_mass_c2;
static const G4double fEnergyConst;
static const G4double fIntegralProbabilityOfSR[200];
const G4double
LowestKineticEnergy; // low energy limit of the cross-section formula
G4double CutInRange;
// Array of integral probability of synchrotron photons:
// the corresponding energy = 0.0001*i*i*(characteristic energy)
static const G4double fIntegralProbabilityOfSR[200];
const G4ParticleDefinition* theGamma;
const G4ParticleDefinition* theElectron;
const G4ParticleDefinition* thePositron;
G4PropagatorInField* fFieldPropagator;
const G4double
LowestKineticEnergy; // low energy limit of the cross-section formula
G4double CutInRange;
G4double GammaCutInKineticEnergyNow;
G4double ElectronCutInKineticEnergyNow;
G4double PositronCutInKineticEnergyNow;
G4double ParticleCutInKineticEnergyNow;
G4double fAlpha;
G4int fRootNumber;
G4double fKsi; // omega/omega_c
G4double fPsiGamma; // Psi-angle*gamma
G4double fEta; //
G4double fOrderAngleK; // 1/3 or 2/3
G4int fVerboseLevel;
G4PropagatorInField* fFieldPropagator;
G4double fKsi; // omega/omega_c
G4double fPsiGamma; // Psi-angle*gamma
G4double fEta; //
G4double fOrderAngleK; // 1/3 or 2/3
G4int fRootNumber;
G4int fVerboseLevel;
};
#endif // end of G4SynchrotronRadiationInMat.hh