Import Geant4 10.3.0.beta source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EnergyLossForExtrapolator.hh 86978 2014-11-21 12:08:34Z gcosmo $
|
||||
// $Id: G4EnergyLossForExtrapolator.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -68,7 +68,7 @@ class G4EnergyLossForExtrapolator
|
||||
{
|
||||
public:
|
||||
|
||||
G4EnergyLossForExtrapolator(G4int verb = 1);
|
||||
explicit G4EnergyLossForExtrapolator(G4int verb = 1);
|
||||
|
||||
~G4EnergyLossForExtrapolator();
|
||||
|
||||
|
||||
@@ -49,23 +49,23 @@ class G4ErrorEnergyLoss : public G4VContinuousProcess
|
||||
|
||||
public:
|
||||
|
||||
G4ErrorEnergyLoss(const G4String& processName = "G4ErrorEnergyLoss",
|
||||
explicit G4ErrorEnergyLoss(const G4String& processName = "G4ErrorEnergyLoss",
|
||||
G4ProcessType type = fElectromagnetic);
|
||||
|
||||
virtual ~G4ErrorEnergyLoss();
|
||||
|
||||
|
||||
G4bool IsApplicable(const G4ParticleDefinition& aParticleType);
|
||||
G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override;
|
||||
// Returns true -> 'is applicable', for all charged particles.
|
||||
|
||||
G4double GetContinuousStepLimit(const G4Track& aTrack,
|
||||
G4double ,
|
||||
G4double currentMinimumStep,
|
||||
G4double& );
|
||||
G4double& ) override;
|
||||
// Returns DBL_MAX as continuous step limit
|
||||
|
||||
G4VParticleChange* AlongStepDoIt(const G4Track& aTrack,
|
||||
const G4Step& aStep);
|
||||
const G4Step& aStep) override;
|
||||
// This is the method implementing the energy loss process.
|
||||
|
||||
// Get and Set methods
|
||||
@@ -78,8 +78,8 @@ private:
|
||||
// Create the G4EnergyLossForExtrapolator
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4ErrorEnergyLoss(G4ErrorEnergyLoss &);
|
||||
G4ErrorEnergyLoss & operator=(const G4ErrorEnergyLoss &right);
|
||||
G4ErrorEnergyLoss(G4ErrorEnergyLoss &) = delete;
|
||||
G4ErrorEnergyLoss & operator=(const G4ErrorEnergyLoss &right) = delete;
|
||||
|
||||
private:
|
||||
G4EnergyLossForExtrapolator* theELossForExtrapolator;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuBetheBlochModel.hh 68035 2013-03-13 14:12:34Z gcosmo $
|
||||
// $Id: G4MuBetheBlochModel.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -71,15 +71,16 @@ class G4MuBetheBlochModel : public G4VEmModel
|
||||
|
||||
public:
|
||||
|
||||
G4MuBetheBlochModel(const G4ParticleDefinition* p = 0,
|
||||
const G4String& nam = "MuBetheBloch");
|
||||
explicit G4MuBetheBlochModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "MuBetheBloch");
|
||||
|
||||
virtual ~G4MuBetheBlochModel();
|
||||
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
|
||||
virtual void Initialise(const G4ParticleDefinition*,
|
||||
const G4DataVector&) override;
|
||||
|
||||
virtual G4double MinEnergyCut(const G4ParticleDefinition*,
|
||||
const G4MaterialCutsCouple*);
|
||||
const G4MaterialCutsCouple*) override;
|
||||
|
||||
virtual G4double ComputeCrossSectionPerElectron(
|
||||
const G4ParticleDefinition*,
|
||||
@@ -92,37 +93,37 @@ public:
|
||||
G4double kineticEnergy,
|
||||
G4double Z, G4double A,
|
||||
G4double cutEnergy,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double CrossSectionPerVolume(const G4Material*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double ComputeDEDXPerVolume(const G4Material*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy);
|
||||
G4double cutEnergy) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
protected:
|
||||
|
||||
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
|
||||
G4double kinEnergy);
|
||||
G4double kinEnergy) override;
|
||||
|
||||
private:
|
||||
|
||||
inline void SetParticle(const G4ParticleDefinition* p);
|
||||
|
||||
// hide assignment operator
|
||||
G4MuBetheBlochModel & operator=(const G4MuBetheBlochModel &right);
|
||||
G4MuBetheBlochModel(const G4MuBetheBlochModel&);
|
||||
G4MuBetheBlochModel & operator=(const G4MuBetheBlochModel &right) = delete;
|
||||
G4MuBetheBlochModel(const G4MuBetheBlochModel&) = delete;
|
||||
|
||||
const G4ParticleDefinition* particle;
|
||||
G4ParticleDefinition* theElectron;
|
||||
@@ -135,8 +136,8 @@ private:
|
||||
G4double massSquare;
|
||||
G4double ratio;
|
||||
G4double twoln10;
|
||||
G4double bg2lim;
|
||||
G4double taulim;
|
||||
//G4double bg2lim;
|
||||
//G4double taulim;
|
||||
G4double alphaprime;
|
||||
static G4double xgi[8],wgi[8];
|
||||
};
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuBremsstrahlung.hh 72942 2013-08-14 13:37:37Z gcosmo $
|
||||
// $Id: G4MuBremsstrahlung.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -80,29 +80,29 @@ class G4MuBremsstrahlung : public G4VEnergyLossProcess
|
||||
{
|
||||
public:
|
||||
|
||||
G4MuBremsstrahlung(const G4String& processName = "muBrems");
|
||||
explicit G4MuBremsstrahlung(const G4String& processName = "muBrems");
|
||||
|
||||
virtual ~G4MuBremsstrahlung();
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p);
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
|
||||
const G4Material*,
|
||||
G4double cut);
|
||||
G4double cut) override;
|
||||
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
inline void SetLowestKineticEnergy(G4double e);
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*);
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
G4MuBremsstrahlung & operator=(const G4MuBremsstrahlung &right);
|
||||
G4MuBremsstrahlung(const G4MuBremsstrahlung&);
|
||||
G4MuBremsstrahlung & operator=(const G4MuBremsstrahlung &right) = delete;
|
||||
G4MuBremsstrahlung(const G4MuBremsstrahlung&) = delete;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuBremsstrahlungModel.hh 72114 2013-07-10 09:37:26Z gcosmo $
|
||||
// $Id: G4MuBremsstrahlungModel.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -74,41 +74,43 @@ class G4MuBremsstrahlungModel : public G4VEmModel
|
||||
|
||||
public:
|
||||
|
||||
G4MuBremsstrahlungModel(const G4ParticleDefinition* p = 0,
|
||||
explicit G4MuBremsstrahlungModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "MuBrem");
|
||||
|
||||
virtual ~G4MuBremsstrahlungModel();
|
||||
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
|
||||
virtual void Initialise(const G4ParticleDefinition*,
|
||||
const G4DataVector&) override;
|
||||
|
||||
virtual void InitialiseLocal(const G4ParticleDefinition*,
|
||||
G4VEmModel* masterModel);
|
||||
G4VEmModel* masterModel) override;
|
||||
|
||||
virtual G4double MinEnergyCut(const G4ParticleDefinition*,
|
||||
const G4MaterialCutsCouple*);
|
||||
const G4MaterialCutsCouple*) override;
|
||||
|
||||
virtual G4double ComputeCrossSectionPerAtom(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double Z, G4double A,
|
||||
G4double cutEnergy,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double ComputeDEDXPerVolume(const G4Material*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy);
|
||||
G4double cutEnergy) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
inline void SetLowestKineticEnergy(G4double e);
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4Material*,
|
||||
const G4ParticleDefinition*, G4double);
|
||||
const G4ParticleDefinition*,
|
||||
G4double) override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -127,8 +129,9 @@ protected:
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4MuBremsstrahlungModel & operator=(const G4MuBremsstrahlungModel &right);
|
||||
G4MuBremsstrahlungModel(const G4MuBremsstrahlungModel&);
|
||||
G4MuBremsstrahlungModel &
|
||||
operator=(const G4MuBremsstrahlungModel &right) = delete;
|
||||
G4MuBremsstrahlungModel(const G4MuBremsstrahlungModel&) = delete;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuIonisation.hh 68035 2013-03-13 14:12:34Z gcosmo $
|
||||
// $Id: G4MuIonisation.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -87,28 +87,28 @@ class G4MuIonisation : public G4VEnergyLossProcess
|
||||
|
||||
public:
|
||||
|
||||
G4MuIonisation(const G4String& name = "muIoni");
|
||||
explicit G4MuIonisation(const G4String& name = "muIoni");
|
||||
|
||||
virtual ~G4MuIonisation();
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p);
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
|
||||
const G4Material*, G4double cut);
|
||||
const G4Material*, G4double cut) override;
|
||||
|
||||
// Print out of the class parameters
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*);
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
// hide assignment operator
|
||||
G4MuIonisation & operator=(const G4MuIonisation &right);
|
||||
G4MuIonisation(const G4MuIonisation&);
|
||||
G4MuIonisation & operator=(const G4MuIonisation &right) = delete;
|
||||
G4MuIonisation(const G4MuIonisation&) = delete;
|
||||
|
||||
G4double mass;
|
||||
G4double ratio;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuMultipleScattering.hh 68035 2013-03-13 14:12:34Z gcosmo $
|
||||
// $Id: G4MuMultipleScattering.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
// -----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -62,26 +62,27 @@ class G4MuMultipleScattering : public G4VMultipleScattering
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4MuMultipleScattering(const G4String& processName="muMsc");
|
||||
explicit G4MuMultipleScattering(const G4String& processName="muMsc");
|
||||
|
||||
virtual ~G4MuMultipleScattering();
|
||||
|
||||
// returns true for charged particles, false otherwise
|
||||
G4bool IsApplicable (const G4ParticleDefinition& p);
|
||||
G4bool IsApplicable (const G4ParticleDefinition& p) override;
|
||||
|
||||
// Print few lines of informations about the process: validity range,
|
||||
void PrintInfo();
|
||||
void PrintInfo() override;
|
||||
|
||||
protected:
|
||||
|
||||
// This function initialise models
|
||||
void InitialiseProcess(const G4ParticleDefinition*);
|
||||
void InitialiseProcess(const G4ParticleDefinition*) override;
|
||||
|
||||
private: // data members
|
||||
|
||||
// hide assignment operator
|
||||
G4MuMultipleScattering & operator=(const G4MuMultipleScattering &right);
|
||||
G4MuMultipleScattering(const G4MuMultipleScattering&);
|
||||
G4MuMultipleScattering &
|
||||
operator=(const G4MuMultipleScattering &right) = delete;
|
||||
G4MuMultipleScattering(const G4MuMultipleScattering&) = delete;
|
||||
|
||||
G4bool isInitialized;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuPairProduction.hh 72942 2013-08-14 13:37:37Z gcosmo $
|
||||
// $Id: G4MuPairProduction.hh 96156 2016-03-21 08:10:21Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -75,28 +75,29 @@ class G4MuPairProduction : public G4VEnergyLossProcess
|
||||
{
|
||||
public:
|
||||
|
||||
G4MuPairProduction(const G4String& processName = "muPairProd");
|
||||
explicit G4MuPairProduction(const G4String& processName = "muPairProd");
|
||||
|
||||
virtual ~G4MuPairProduction();
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p);
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
|
||||
const G4Material*, G4double cut);
|
||||
const G4Material*, G4double cut) override;
|
||||
|
||||
virtual void PrintInfo();
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
inline void SetLowestKineticEnergy(G4double e);
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*);
|
||||
virtual void
|
||||
InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
G4MuPairProduction & operator=(const G4MuPairProduction &right);
|
||||
G4MuPairProduction(const G4MuPairProduction&);
|
||||
G4MuPairProduction & operator=(const G4MuPairProduction &right) = delete;
|
||||
G4MuPairProduction(const G4MuPairProduction&) = delete;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuPairProductionModel.hh 74544 2013-10-14 12:40:29Z gcosmo $
|
||||
// $Id: G4MuPairProductionModel.hh 97392 2016-06-02 10:10:32Z gcosmo $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -74,37 +74,38 @@ class G4MuPairProductionModel : public G4VEmModel
|
||||
{
|
||||
public:
|
||||
|
||||
G4MuPairProductionModel(const G4ParticleDefinition* p = 0,
|
||||
const G4String& nam = "muPairProd");
|
||||
explicit G4MuPairProductionModel(const G4ParticleDefinition* p = nullptr,
|
||||
const G4String& nam = "muPairProd");
|
||||
|
||||
virtual ~G4MuPairProductionModel();
|
||||
|
||||
virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
|
||||
virtual void Initialise(const G4ParticleDefinition*,
|
||||
const G4DataVector&) override;
|
||||
|
||||
virtual void InitialiseLocal(const G4ParticleDefinition*,
|
||||
G4VEmModel* masterModel);
|
||||
G4VEmModel* masterModel) override;
|
||||
|
||||
virtual G4double ComputeCrossSectionPerAtom(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double Z, G4double A,
|
||||
G4double cutEnergy,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double ComputeDEDXPerVolume(const G4Material*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy);
|
||||
G4double cutEnergy) override;
|
||||
|
||||
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
|
||||
const G4MaterialCutsCouple*,
|
||||
const G4DynamicParticle*,
|
||||
G4double tmin,
|
||||
G4double maxEnergy);
|
||||
G4double maxEnergy) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4Material*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double);
|
||||
G4double) override;
|
||||
|
||||
inline void SetLowestKineticEnergy(G4double e);
|
||||
|
||||
@@ -119,9 +120,9 @@ protected:
|
||||
G4double Z,
|
||||
G4double cut);
|
||||
|
||||
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin,
|
||||
G4double Z,
|
||||
G4double pairEnergy);
|
||||
virtual G4double
|
||||
ComputeDMicroscopicCrossSection(G4double tkin, G4double Z,
|
||||
G4double pairEnergy);
|
||||
|
||||
inline G4double MaxSecondaryEnergyForElement(G4double kineticEnergy,
|
||||
G4double Z);
|
||||
@@ -136,8 +137,8 @@ private:
|
||||
G4double yymin, G4double yymax);
|
||||
|
||||
// hide assignment operator
|
||||
G4MuPairProductionModel & operator=(const G4MuPairProductionModel &right);
|
||||
G4MuPairProductionModel(const G4MuPairProductionModel&);
|
||||
G4MuPairProductionModel & operator=(const G4MuPairProductionModel &right) = delete;
|
||||
G4MuPairProductionModel(const G4MuPairProductionModel&) = delete;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -173,9 +174,6 @@ private:
|
||||
G4double dy;
|
||||
G4double emin;
|
||||
G4double emax;
|
||||
|
||||
static const G4int zdat[5];
|
||||
static const G4double adat[5];
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -76,7 +76,7 @@ class G4TablesForExtrapolator
|
||||
{
|
||||
public:
|
||||
|
||||
G4TablesForExtrapolator(G4int verb, G4int bins, G4double e1, G4double e2);
|
||||
explicit G4TablesForExtrapolator(G4int verb, G4int bins, G4double e1, G4double e2);
|
||||
|
||||
~G4TablesForExtrapolator();
|
||||
|
||||
@@ -101,8 +101,8 @@ private:
|
||||
G4PhysicsTable* table);
|
||||
|
||||
// hide assignment operator
|
||||
G4TablesForExtrapolator & operator=(const G4TablesForExtrapolator &right);
|
||||
G4TablesForExtrapolator(const G4TablesForExtrapolator&);
|
||||
G4TablesForExtrapolator & operator=(const G4TablesForExtrapolator &right) = delete;
|
||||
G4TablesForExtrapolator(const G4TablesForExtrapolator&) = delete;
|
||||
|
||||
const G4ParticleDefinition* currentParticle;
|
||||
const G4ParticleDefinition* electron;
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ePairProduction.hh 72895 2013-08-09 11:34:16Z vnivanch $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
// GEANT4 Class header file
|
||||
//
|
||||
//
|
||||
// File name: G4ePairProduction
|
||||
//
|
||||
// Author: Vladimir Ivanchenko
|
||||
//
|
||||
// Creation date: 17.03.2016
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// This class manages the PairProduction process for e+-.
|
||||
// it inherites from G4VEnergyLossProcess.
|
||||
//
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4ePairProduction_h
|
||||
#define G4ePairProduction_h 1
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VEnergyLossProcess.hh"
|
||||
|
||||
class G4ePairProduction : public G4VEnergyLossProcess
|
||||
{
|
||||
public:
|
||||
|
||||
explicit G4ePairProduction(const G4String& processName = "ePairProd");
|
||||
|
||||
virtual ~G4ePairProduction();
|
||||
|
||||
virtual G4bool IsApplicable(const G4ParticleDefinition& p) override;
|
||||
|
||||
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition* p,
|
||||
const G4Material*, G4double cut) override;
|
||||
|
||||
virtual void PrintInfo() override;
|
||||
|
||||
inline void SetLowestKineticEnergy(G4double e);
|
||||
|
||||
protected:
|
||||
|
||||
virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition*) override;
|
||||
|
||||
private:
|
||||
|
||||
G4ePairProduction & operator=(const G4ePairProduction &right) = delete;
|
||||
G4ePairProduction(const G4ePairProduction&) = delete;
|
||||
|
||||
protected:
|
||||
|
||||
const G4ParticleDefinition* theParticle;
|
||||
G4double lowestKinEnergy;
|
||||
G4bool isInitialised;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline void G4ePairProduction::SetLowestKineticEnergy(G4double e)
|
||||
{
|
||||
lowestKinEnergy = e;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user