Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -23,22 +23,16 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// G4WrapperProcess
//
// Class description:
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
// Class Description
//
// This class is the virtual class for wrapper process objects.
// Virtual class for wrapper process objects.
// ------------------------------------------------------------
// New Physics scheme 18 Dec. 1996 H.Kurahige
// ------------------------------------------------------------
#ifndef G4WrapperProcess_h
#define G4WrapperProcess_h 1
// Author: H.Kurahige, 18 December 1996
// --------------------------------------------------------------------
#ifndef G4WrapperProcess_hh
#define G4WrapperProcess_hh 1
#include "globals.hh"
#include "G4ios.hh"
@@ -46,159 +40,142 @@
class G4WrapperProcess : public G4VProcess
{
// A virtual class for wrapper process objects.
public:
private:
// hide default constructor and assignment operator as private
// do not hide default constructor for alpha version
inline G4WrapperProcess & operator=(const G4WrapperProcess &right);
G4WrapperProcess(const G4String& aName = "Wrapped",
G4ProcessType aType = fNotDefined);
// Constructor requires the process name and type
public: // with description
// constructor requires the process name and type
G4WrapperProcess(const G4String& aName = "Wrapped",
G4ProcessType aType = fNotDefined );
G4WrapperProcess(const G4WrapperProcess& right);
// Copy constructor copies the name but does not copy the
// physics table (null pointer is assigned)
// copy constructor copys the name but does not copy the
// physics table (0 pointer is assigned)
G4WrapperProcess(const G4WrapperProcess &right);
virtual ~G4WrapperProcess();
// Destructor
public:
// destructor
virtual ~G4WrapperProcess();
G4WrapperProcess& operator=(const G4WrapperProcess&) = delete;
// equality opperators
inline G4bool operator==(const G4WrapperProcess &right) const;
inline G4bool operator!=(const G4WrapperProcess &right) const;
inline G4bool operator==(const G4WrapperProcess& right) const;
inline G4bool operator!=(const G4WrapperProcess& right) const;
// Equality operators
public: // with description
virtual void RegisterProcess(G4VProcess*);
virtual void RegisterProcess(G4VProcess*);
virtual const G4VProcess* GetRegisteredProcess() const;
protected:
G4VProcess* pRegProcess;
////////////////////////////
// DoIt /////////////////
///////////////////////////
public: // with description
////////////////////////////
// DoIt /////////////////
///////////////////////////
virtual G4VParticleChange* PostStepDoIt(
virtual G4VParticleChange* PostStepDoIt(
const G4Track& track,
const G4Step& stepData
);
virtual G4VParticleChange* AlongStepDoIt(
virtual G4VParticleChange* AlongStepDoIt(
const G4Track& track,
const G4Step& stepData
);
virtual G4VParticleChange* AtRestDoIt(
virtual G4VParticleChange* AtRestDoIt(
const G4Track& track,
const G4Step& stepData
);
//////////////////////////
// GPIL //////////////
/////////////////////////
virtual G4double AlongStepGetPhysicalInteractionLength(
//////////////////////////
// GPIL //////////////
/////////////////////////
virtual G4double AlongStepGetPhysicalInteractionLength(
const G4Track& track,
G4double previousStepSize,
G4double currentMinimumStep,
G4double& proposedSafety,
G4GPILSelection* selection);
virtual G4double AtRestGetPhysicalInteractionLength(
virtual G4double AtRestGetPhysicalInteractionLength(
const G4Track& track,
G4ForceCondition* condition
);
virtual G4double PostStepGetPhysicalInteractionLength(
virtual G4double PostStepGetPhysicalInteractionLength(
const G4Track& track,
G4double previousStepSize,
G4ForceCondition* condition
) ;
);
//////////////////////
virtual G4bool IsApplicable(const G4ParticleDefinition&);
virtual G4bool IsApplicable(const G4ParticleDefinition&);
// Returns true if this process object is applicable to
// the particle type
// Process will not be registered to a particle if IsApplicable is false
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
virtual void BuildPhysicsTable(const G4ParticleDefinition&);
// Messaged by the Particle definition (via the Process manager)
// whenever cross section tables have to be rebuilt (i.e. if new
// whenever cross-section tables have to be rebuilt (i.e. if new
// materials have been defined).
// It is overloaded by individual processes when they need physics
// tables.
// tables
// Processes which Build (for example in their
// constructors) physics tables independent of cuts
// should preferably use a
// private void BuildThePhysicsTable()
// function. Not another BuildPhysicsTable, please.
// Processes which build (for example in their constructors)
// physics tables independent of cuts should preferably use a private
// void BuildThePhysicsTable() function.
// **Not** another BuildPhysicsTable().
virtual void PreparePhysicsTable(const G4ParticleDefinition&);
virtual void PreparePhysicsTable(const G4ParticleDefinition&);
// Messaged by the Particle definition (via the Process manager)
// whenever cross section tables have to be prepare for rebuilt
// whenever cross-section tables have to be prepare for rebuilt
// (i.e. if new materials have been defined).
// It is overloaded by individual processes when they need physics
// tables.
// Processes which Build physics tables independent of cuts
// (for example in their constructors)
// should preferably use private
// void BuildThePhysicsTable() and void PreparePhysicsTable().
// Not another BuildPhysicsTable, please.
// tables
virtual G4bool StorePhysicsTable(const G4ParticleDefinition* ,
const G4String& directory,
G4bool ascii = false);
virtual G4bool StorePhysicsTable(const G4ParticleDefinition* ,
const G4String& directory,
G4bool ascii = false);
// Store PhysicsTable in a file.
// (return false in case of failure at I/O )
// Return false in case of failure at I/O
virtual G4bool RetrievePhysicsTable( const G4ParticleDefinition* ,
const G4String& directory,
G4bool ascii = false);
virtual G4bool RetrievePhysicsTable( const G4ParticleDefinition* ,
const G4String& directory,
G4bool ascii = false);
// Retrieve Physics from a file.
// (return true if the Physics Table can be build by using file)
// (return false if the process has no functionality or in case of failure)
// File name should be defined by each process
// and the file should be placed under the directory specifed by the argument.
////////////////////////////
virtual void StartTracking(G4Track*);
virtual void EndTracking();
// Return true if the Physics Table can be build by using file.
// Return false if the process has no functionality or in case of failure.
// File name should be defined by each process and the file should be
// placed under the directory specifed by the argument
virtual void StartTracking(G4Track*);
virtual void EndTracking();
// inform Start/End of tracking for each track to the physics process
public:
virtual void SetProcessManager(const G4ProcessManager*);
// A process manager set its own pointer when the process is registered
// the process Manager
virtual const G4ProcessManager* GetProcessManager();
virtual void SetProcessManager(const G4ProcessManager*);
// A process manager sets its own pointer when the process is registered
// in the process Manager
virtual const G4ProcessManager* GetProcessManager();
// Get the process manager which the process belongs to
public:
virtual void ResetNumberOfInteractionLengthLeft();
// reset (determine the value of)NumberOfInteractionLengthLeft
virtual void SetMasterProcess(G4VProcess* masterP);
// Needed for MT, forward call to underlying process
virtual void ResetNumberOfInteractionLengthLeft();
// Reset (determine the value of) NumberOfInteractionLengthLeft
virtual void SetMasterProcess(G4VProcess* masterP);
// Needed for MT, forward call to underlying process
protected:
G4VProcess* pRegProcess = nullptr;
};
inline
G4WrapperProcess & G4WrapperProcess::operator=(const G4WrapperProcess &)
{
G4Exception("G4WrapperProcess::operator=","Illegal operation",
JustWarning,"Assignment operator is called");
return *this;
}
// ------------------------
// Inline operators
// ------------------------
inline
G4bool G4WrapperProcess::operator==(const G4WrapperProcess &right) const
G4bool G4WrapperProcess::operator==(const G4WrapperProcess& right) const
{
return (this == &right);
}
inline
G4bool G4WrapperProcess::operator!=(const G4WrapperProcess &right) const
G4bool G4WrapperProcess::operator!=(const G4WrapperProcess& right) const
{
return (this != &right);
return (this != &right);
}
#endif