Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 122: Line 122:
The class <span style="color:#ff0000"> G4VUserPhysicsList </span> is used for simple physics lists. It has three methods:
The class <span style="color:#ff0000"> G4VUserPhysicsList </span> is used for simple physics lists. It has three methods:
-
 
* ConstructParticles(): define all necessary particles;   
* ConstructParticles(): define all necessary particles;   
Line 256: Line 255:
=== <span style="color:#000080"> Detailed physics lists </span> ===  
=== <span style="color:#000080"> Detailed physics lists </span> ===  
-
A realistic physics list has a lot of different physics processes. Therefore it is better to define a new class G4VModularPhysicsList derived from G4VUserPhysicsList where you can group the physics processes into EM physics, hadronic physics, optical physics etc. In addition the method AddTransportation() is called for all particles.
+
A realistic physics list has a lot of different physics processes. Therefore it is better to define a new class G4VModularPhysicsList derived from G4VUserPhysicsList where you can group the physics processes into EM physics, hadronic physics, optical physics etc. The method AddTransportation() is called automatically for all particles. Simple example of G4VModularPhysicsList:
-
 
+
-
+
-
Simple example of G4VModularPhysicsList:
+
Line 284: Line 280:
<span style="color:#800000"> {SetCutsWithDefault();} </span>
<span style="color:#800000"> {SetCutsWithDefault();} </span>
 +
where the class ProtonPhysics() is defined as
where the class ProtonPhysics() is defined as
 +
<span style="color:#800000"> class ProtonPhysics() : public G4VPhysicsConstructor </span>
<span style="color:#800000"> class ProtonPhysics() : public G4VPhysicsConstructor </span>

Revision as of 13:37, 7 July 2014

Personal tools