Warning, file /geant4/examples/advanced/air_shower/src/UltraPhysicsList.cc 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
0036
0037
0038
0039
0040
0041 #include "G4ios.hh"
0042
0043 #include "globals.hh"
0044
0045 #include "UltraPhysicsList.hh"
0046
0047 #include "G4ParticleDefinition.hh"
0048 #include "G4ParticleTypes.hh"
0049 #include "G4ParticleWithCuts.hh"
0050 #include "G4ParticleTable.hh"
0051 #include "G4Material.hh"
0052 #include "G4MaterialTable.hh"
0053 #include "G4ProcessManager.hh"
0054 #include "G4ProcessVector.hh"
0055
0056 #include "G4EmStandardPhysics.hh"
0057 #include "G4EmLivermorePhysics.hh"
0058 #include "G4EmPenelopePhysics.hh"
0059 #include "G4EmLowEPPhysics.hh"
0060 #include "G4DecayPhysics.hh"
0061 #include "G4IonPhysics.hh"
0062 #include "G4EmExtraPhysics.hh"
0063 #include "G4StoppingPhysics.hh"
0064 #include "G4OpticalPhysics.hh"
0065
0066 #include "G4UnitsTable.hh"
0067 #include "G4SystemOfUnits.hh"
0068 #include "G4LossTableManager.hh"
0069
0070 UltraPhysicsList::UltraPhysicsList() : G4VModularPhysicsList(),
0071 fEmPhysicsList(0),
0072 fOpPhysicsList(0),
0073 fDecayPhysicsList(0),
0074 fVerboseLebel(1),
0075 fMaxNumPhotonStep(20)
0076 {
0077 G4LossTableManager::Instance();
0078 SetDefaultCutValue(1*mm);
0079
0080
0081
0082
0083
0084
0085 SetVerboseLevel(1);
0086
0087
0088
0089 fEmName = G4String("emstandard");
0090 fEmPhysicsList = new G4EmStandardPhysics();
0091 fOpPhysicsList = new G4OpticalPhysics();
0092
0093
0094 fDecayPhysicsList = new G4DecayPhysics();
0095 }
0096
0097 UltraPhysicsList::~UltraPhysicsList()
0098 {
0099 delete fDecayPhysicsList;
0100 delete fEmPhysicsList;
0101 delete fOpPhysicsList;
0102
0103 }
0104
0105
0106 void UltraPhysicsList::ConstructParticle()
0107 {
0108 fDecayPhysicsList->ConstructParticle();
0109 }
0110
0111
0112 void UltraPhysicsList::ConstructProcess()
0113 {
0114 AddTransportation();
0115 if (fEmPhysicsList)
0116 fEmPhysicsList->ConstructProcess();
0117
0118 if (fOpPhysicsList)
0119 fOpPhysicsList->ConstructProcess();
0120
0121 if (fDecayPhysicsList)
0122 fDecayPhysicsList->ConstructProcess();
0123 }
0124
0125
0126 void UltraPhysicsList::SetCuts()
0127 {
0128 if (verboseLevel >1){
0129 G4cout << "UltraPhysicsList::SetCuts:";
0130 }
0131
0132
0133 SetCutsWithDefault();
0134 }