Warning, file /include/Geant4/G4PhysicsListHelper.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035 #ifndef G4PhysicsListHelper_hh
0036 #define G4PhysicsListHelper_hh 1
0037
0038 #include "G4ParticleDefinition.hh"
0039 #include "G4ParticleTable.hh"
0040 #include "G4PhysicsListOrderingParameter.hh"
0041 #include "G4ThreadLocalSingleton.hh"
0042 #include "G4ios.hh"
0043 #include "globals.hh"
0044
0045 #include <vector>
0046
0047 class G4VProcess;
0048
0049 class G4PhysicsListHelper
0050 {
0051 friend class G4ThreadLocalSingleton<G4PhysicsListHelper>;
0052
0053 public:
0054
0055 static G4PhysicsListHelper* GetPhysicsListHelper();
0056
0057
0058
0059 G4bool RegisterProcess(G4VProcess* process, G4ParticleDefinition* particle);
0060
0061
0062
0063 void AddTransportation();
0064
0065
0066 void UseCoupledTransportation(G4bool vl = true);
0067
0068
0069 void UseHighLooperThresholds() { theLooperThresholds = 2; }
0070 void UseLowLooperThresholds() { theLooperThresholds = 0; }
0071
0072
0073 void CheckParticleList() const;
0074
0075
0076 void DumpOrdingParameterTable(G4int subType = -1) const;
0077
0078 G4PhysicsListOrderingParameter GetOrdingParameter(G4int subType) const;
0079
0080
0081
0082
0083
0084 void SetVerboseLevel(G4int value);
0085 G4int GetVerboseLevel() const;
0086
0087 private:
0088
0089 G4PhysicsListHelper();
0090 ~G4PhysicsListHelper();
0091
0092 void ReadOrdingParameterTable();
0093 void ReadInDefaultOrderingParameter();
0094
0095 private:
0096 using G4OrdParamTable = std::vector<G4PhysicsListOrderingParameter>;
0097
0098 static G4ThreadLocal G4PhysicsListHelper* pPLHelper;
0099
0100
0101 G4ParticleTable* theParticleTable = nullptr;
0102 G4ParticleTable::G4PTblDicIterator* aParticleIterator = nullptr;
0103
0104 G4bool useCoupledTransportation = false;
0105 G4int theLooperThresholds = 1;
0106 G4VProcess* theTransportationProcess = nullptr;
0107
0108 G4int verboseLevel = 1;
0109
0110 G4OrdParamTable* theTable = nullptr;
0111 G4int sizeOfTable = 0;
0112 G4String ordParamFileName = "";
0113 };
0114
0115
0116
0117 inline void G4PhysicsListHelper::UseCoupledTransportation(G4bool vl)
0118 {
0119 useCoupledTransportation = vl;
0120 }
0121
0122 inline void G4PhysicsListHelper::SetVerboseLevel(G4int value)
0123 {
0124 verboseLevel = value;
0125 }
0126
0127 inline G4int G4PhysicsListHelper::GetVerboseLevel() const
0128 {
0129 return verboseLevel;
0130 }
0131
0132 #endif