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
+69 -77
View File
@@ -25,125 +25,117 @@
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
// GEANT 4 class header file
// Class Description:
// This class is a helper class for physics lists to register processes
// according to the ordering parameter table
// This class is a helper class for physics lists to register processes
// according to the ordering parameter table
// This class is a singleton
// -------------------------------------------
// -------------------------------------------
// History
// first version 29 Apr. 2011 by H.Kurashige
// first version 29 Apr. 2011 by H.Kurashige
// ------------------------------------------------------------
#ifndef G4PhysicsListHelper_h
#define G4PhysicsListHelper_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "globals.hh"
#include <vector>
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh"
#include "G4PhysicsListOrderingParameter.hh"
#include "G4PhysicsListOrderingParameter.hh"
#include "G4ThreadLocalSingleton.hh"
class G4VProcess;
class G4PhysicsListHelper
{
friend class G4ThreadLocalSingleton<G4PhysicsListHelper>;
friend class G4ThreadLocalSingleton<G4PhysicsListHelper>;
private:
// Hide constructor and destructor
G4PhysicsListHelper();
~G4PhysicsListHelper();
private:
// Hide constructor and destructor
G4PhysicsListHelper();
~G4PhysicsListHelper();
public: // with description
// This method gives the ponter to the physics list helper
static G4PhysicsListHelper* GetPhysicsListHelper();
public: // with description
// This method gives the ponter to the physics list helper
static G4PhysicsListHelper* GetPhysicsListHelper();
//Register a process to the particle type
// according to the ordering parameter table
// 'true' is returned if the process is registerd successfully
G4bool RegisterProcess(G4VProcess* process,
G4ParticleDefinition* particle);
// Register a process to the particle type
// according to the ordering parameter table
// 'true' is returned if the process is registerd successfully
G4bool RegisterProcess(G4VProcess* process, G4ParticleDefinition* particle);
// User must invoke this method in his ConstructProcess()
// implementation in order to insures particle transportation.
void AddTransportation();
// Set flag for using CoupledTransportation
void UseCoupledTransportation(G4bool vl=true);
// User must invoke this method in his ConstructProcess()
// implementation in order to insures particle transportation.
void AddTransportation();
// Set flag for using CoupledTransportation
void UseCoupledTransportation(G4bool vl = true);
// Change the thresholds for killing looping tracks of the
// transportation (simple or coupled.)
void UseHighLooperThresholds() { theLooperThresholds = 2; }
void UseLowLooperThresholds() { theLooperThresholds = 0; }
// Change the thresholds for killing looping tracks of the
// transportation (simple or coupled.)
void UseHighLooperThresholds() { theLooperThresholds= 2;}
void UseLowLooperThresholds() { theLooperThresholds= 0;}
/////////////////////////////////////////////////////////////////
public:
// check consistencies of list of particles
void CheckParticleList() const;
public:
// check consistencies of list of particles
void CheckParticleList() const;
///////////////////////////////////////////////////////////////////////
public:
public:
// Dump OrdingParameterTable
void DumpOrdingParameterTable(G4int subType = -1) const;
G4PhysicsListOrderingParameter GetOrdingParameter(G4int subType) const;
void DumpOrdingParameterTable(G4int subType = -1) const;
G4PhysicsListOrderingParameter GetOrdingParameter(G4int subType) const;
private:
void ReadOrdingParameterTable();
void ReadInDefaultOrderingParameter();
private:
void ReadOrdingParameterTable();
void ReadInDefaultOrderingParameter();
///////////////////////////////////////////////////////////////////////
public: // with description
void SetVerboseLevel(G4int value);
G4int GetVerboseLevel() const;
// set/get controle flag for output message
// 0: Silent
// 1: Warning message
// 2: More
public: // with description
void SetVerboseLevel(G4int value);
G4int GetVerboseLevel() const;
// set/get controle flag for output message
// 0: Silent
// 1: Warning message
// 2: More
////////////////////////////////////////////////////////////////////////
private:
static G4ThreadLocal G4PhysicsListHelper* pPLHelper;
private:
static G4ThreadLocal G4PhysicsListHelper* pPLHelper;
// the particle table has the complete List of existing particle types
G4ParticleTable* theParticleTable;
G4ParticleTable::G4PTblDicIterator* aParticleIterator;
// the particle table has the complete List of existing particle types
G4ParticleTable* theParticleTable;
G4ParticleTable::G4PTblDicIterator* aParticleIterator;
G4bool useCoupledTransportation;
G4int theLooperThresholds= 1; // 0 = Low, 1 = default, 2 = high
G4VProcess* theTransportationProcess;
G4int verboseLevel;
G4bool useCoupledTransportation;
G4int theLooperThresholds = 1; // 0 = Low, 1 = default, 2 = high
G4VProcess* theTransportationProcess;
private:
typedef std::vector<G4PhysicsListOrderingParameter> G4OrdParamTable;
G4OrdParamTable* theTable;
G4int sizeOfTable;
G4String ordParamFileName;
G4int verboseLevel;
private:
typedef std::vector<G4PhysicsListOrderingParameter> G4OrdParamTable;
G4OrdParamTable* theTable;
G4int sizeOfTable;
G4String ordParamFileName;
};
inline
void G4PhysicsListHelper::UseCoupledTransportation(G4bool vl)
{
useCoupledTransportation = vl;
inline void G4PhysicsListHelper::UseCoupledTransportation(G4bool vl)
{
useCoupledTransportation = vl;
}
inline
void G4PhysicsListHelper::SetVerboseLevel(G4int value)
{
inline void G4PhysicsListHelper::SetVerboseLevel(G4int value)
{
verboseLevel = value;
}
inline
G4int G4PhysicsListHelper::GetVerboseLevel() const
inline G4int G4PhysicsListHelper::GetVerboseLevel() const
{
return verboseLevel;
}
#endif