File indexing completed on 2025-01-18 09:58:20
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
0036
0037 #include "globals.hh"
0038 #include "G4ProcessManager.hh"
0039 #include "G4ProcessVector.hh"
0040 #include "G4ParticleTypes.hh"
0041 #include "G4ParticleTable.hh"
0042
0043 #include "G4Material.hh"
0044 #include "G4MaterialTable.hh"
0045 #include "G4ios.hh"
0046 #include <iomanip>
0047
0048
0049 template<class T> TG4GenericPhysicsList<T>::TG4GenericPhysicsList(G4int ver): T(), messenger(this, "/PhysicsList/")
0050 {
0051 DeclareProperties();
0052
0053 G4cout << "<<< Geant4 Physics List simulation engine: G4GenericPhysicsList"<<G4endl;
0054 G4cout <<G4endl;
0055 this->defaultCutValue = 0.7*CLHEP::mm;
0056 this->SetVerboseLevel(ver);
0057 }
0058
0059 template<class T> TG4GenericPhysicsList<T>::TG4GenericPhysicsList(std::vector<G4String>* physConstr, G4int ver): T(), messenger(this, "/PhysicsList/")
0060 {
0061 DeclareProperties();
0062
0063 G4cout << "<<< Geant4 Physics List simulation engine: G4GenericPhysicsList"<<G4endl;
0064 G4cout <<G4endl;
0065 this->defaultCutValue = 0.7*CLHEP::mm;
0066 this->SetVerboseLevel(ver);
0067
0068 for(std::vector<G4String>::iterator i=physConstr->begin(); i!=physConstr->end(); i++) RegisterPhysicsConstructor(*i);
0069 }
0070
0071 template<class T> TG4GenericPhysicsList<T>::~TG4GenericPhysicsList()
0072 {
0073 }
0074
0075 template<class T> void TG4GenericPhysicsList<T>::SetCuts()
0076 {
0077 if (this->verboseLevel >1){
0078 G4cout << "G4GenericPhysicsList::SetCuts:";
0079 }
0080
0081 this->SetCutsWithDefault();
0082
0083 }
0084
0085 template<class T> void TG4GenericPhysicsList<T>::DeclareProperties()
0086 {
0087 messenger.DeclareProperty("defaultCutValue", this->defaultCutValue, "Default Cut Value");
0088 messenger.DeclareMethod("SetVerboseLevel", &TG4GenericPhysicsList::SetVerboseLevel, "Verbose Level");
0089
0090 messenger.DeclareMethod("RegisterPhysics", &TG4GenericPhysicsList::RegisterPhysicsConstructor, "Register Physics Constructor");
0091 }
0092
0093 #ifndef G4RegisterPhysicsConstructors_icc
0094
0095
0096
0097
0098 #ifndef REGREF
0099 #define REGREF GenericPhysList
0100 #endif
0101 #include "G4RegisterPhysicsConstructors.icc"
0102 #endif
0103