Import Geant4 10.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2016-06-30 14:12:05 +02:00
parent a654a7ab1f
commit 4ec577e5c4
2021 changed files with 100995 additions and 78277 deletions
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4HadronicInteraction.hh 88839 2015-03-12 10:30:07Z gcosmo $
// $Id: G4HadronicInteraction.hh 96490 2016-04-19 06:57:04Z gcosmo $
//
// Hadronic Interaction abstract base class
// This class is the base class for the model classes.
@@ -65,7 +65,7 @@ class G4HadronicInteraction
{
public: // With description
G4HadronicInteraction(const G4String& modelName = "HadronicModel");
explicit G4HadronicInteraction(const G4String& modelName = "HadronicModel");
virtual ~G4HadronicInteraction();
@@ -77,10 +77,9 @@ public: // With description
G4double plab,
G4int Z, G4int A);
// The interface to implement sampling of scattering or change exchange
virtual G4bool IsApplicable(const G4HadProjectile &/*aTrack*/,
G4Nucleus & /*targetNucleus*/)
{ return true;}
virtual G4bool IsApplicable(const G4HadProjectile & aTrack,
G4Nucleus & targetNucleus);
inline G4double GetMinEnergy() const
{ return theMinEnergy; }
@@ -107,14 +106,11 @@ public: // With description
void SetMaxEnergy( G4double anEnergy, const G4Element *anElement );
void SetMaxEnergy( G4double anEnergy, const G4Material *aMaterial );
inline const G4HadronicInteraction* GetMyPointer() const
{ return this; }
virtual G4int GetVerboseLevel() const
inline G4int GetVerboseLevel() const
{ return verboseLevel; }
virtual void SetVerboseLevel( G4int value )
inline void SetVerboseLevel( G4int value )
{ verboseLevel = value; }
inline const G4String& GetModelName() const
@@ -146,29 +142,20 @@ public: // With description
G4double GetRecoilEnergyThreshold() const
{ return recoilEnergyThreshold;}
inline G4bool operator==(const G4HadronicInteraction &right ) const
{ return ( this == (G4HadronicInteraction *) &right ); }
inline G4bool operator!=(const G4HadronicInteraction &right ) const
{ return ( this != (G4HadronicInteraction *) &right ); }
virtual const std::pair<G4double, G4double> GetFatalEnergyCheckLevels() const;
virtual std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const;
inline void SetEnergyMomentumCheckLevels(G4double relativeLevel, G4double absoluteLevel)
inline void
SetEnergyMomentumCheckLevels(G4double relativeLevel, G4double absoluteLevel)
{ epCheckLevels.first = relativeLevel;
epCheckLevels.second = absoluteLevel; }
virtual void ModelDescription(std::ostream& outFile) const ; //=0;
// Initialisation before run
virtual void BuildPhysicsTable(const G4ParticleDefinition&){;};
private:
G4HadronicInteraction(const G4HadronicInteraction &right );
const G4HadronicInteraction& operator=(const G4HadronicInteraction &right);
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
virtual void InitialiseModel();
protected:
@@ -197,6 +184,11 @@ protected:
G4bool isBlocked;
private:
G4HadronicInteraction(const G4HadronicInteraction &right ) = delete;
const G4HadronicInteraction& operator=(const G4HadronicInteraction &right) = delete;
G4bool operator==(const G4HadronicInteraction &right ) const = delete;
G4bool operator!=(const G4HadronicInteraction &right ) const = delete;
G4HadronicInteractionRegistry* registry;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4HadronicInteractionRegistry.hh 88839 2015-03-12 10:30:07Z gcosmo $
// $Id: G4HadronicInteractionRegistry.hh 96490 2016-04-19 06:57:04Z gcosmo $
//
// 23-Jan-2009 V.Ivanchenko make the class to be a singleton
// 17-Aug-2012 V.Ivanchenko added hadronic model factories
@@ -61,6 +61,9 @@ public:
void Clean();
// delete all models
void InitialiseModels();
// delete all models
G4HadronicInteraction* FindModel(const G4String& name);
// find existing hadronic interaction by name
@@ -74,6 +77,7 @@ private:
static G4ThreadLocal G4HadronicInteractionRegistry* instance;
std::vector <G4HadronicInteraction*> allModels;
G4bool isInitialized;
};
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4VIntraNuclearTransportModel.hh 69717 2013-05-13 09:47:57Z gcosmo $
// $Id: G4VIntraNuclearTransportModel.hh 96490 2016-04-19 06:57:04Z gcosmo $
//
// -----------------------------------------------------------------------------
// GEANT 4 class header file
@@ -65,8 +65,8 @@ class G4VIntraNuclearTransportModel : public G4HadronicInteraction
{
public:
G4VIntraNuclearTransportModel(const G4String& modelName = "CascadeModel",
G4VPreCompoundModel* ptr = 0);
explicit G4VIntraNuclearTransportModel(const G4String& mName = "CascadeModel",
G4VPreCompoundModel* ptr = nullptr);
virtual ~G4VIntraNuclearTransportModel();
@@ -92,10 +92,10 @@ public:
private:
G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right);
const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right);
int operator==(const G4VIntraNuclearTransportModel& right) const;
int operator!=(const G4VIntraNuclearTransportModel& right) const;
G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right) = delete;
const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right) = delete;
int operator==(const G4VIntraNuclearTransportModel& right) const = delete;
int operator!=(const G4VIntraNuclearTransportModel& right) const = delete;
protected:
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4VPreCompoundModel.hh 80131 2014-04-02 14:35:47Z gcosmo $
// $Id: G4VPreCompoundModel.hh 96490 2016-04-19 06:57:04Z gcosmo $
//
#ifndef G4VPreCompoundModel_h
@@ -60,31 +60,16 @@ class G4VPreCompoundModel : public G4HadronicInteraction
{
public:
G4VPreCompoundModel(G4ExcitationHandler* ptr = 0,
const G4String& modelName = "PrecompoundModel");
explicit G4VPreCompoundModel(G4ExcitationHandler* ptr = nullptr,
const G4String& modelName = "PrecompoundModel");
virtual ~G4VPreCompoundModel();
private:
// default constructor
//G4VPreCompoundModel();
// copy constructor
G4VPreCompoundModel(const G4VPreCompoundModel &);
// operators
const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right);
G4bool operator==(const G4VPreCompoundModel &right) const;
G4bool operator!=(const G4VPreCompoundModel &right) const;
public:
virtual G4HadFinalState *
ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0;
virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment) = 0;
virtual void DeExciteModelDescription(std::ostream& outFile) const ;
virtual void DeExciteModelDescription(std::ostream& outFile) const = 0;
inline void SetExcitationHandler(G4ExcitationHandler* ptr);
@@ -92,6 +77,11 @@ public:
private:
G4VPreCompoundModel(const G4VPreCompoundModel &) = delete;
const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right) = delete;
G4bool operator==(const G4VPreCompoundModel &right) const = delete;
G4bool operator!=(const G4VPreCompoundModel &right) const = delete;
G4ExcitationHandler* theExcitationHandler;
};