Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 116: Line 116:
-
There are two base physics list classes: <span style="color:#ff0000"> G4VUserPhysicsList </span> and <span style="color:#ff0000"> G4ModularPhysicsList </span>.
+
There are two base physics list classes: <span style="color:#ff0000"> G4VUserPhysicsList </span> and <span style="color:#ff0000"> G4ModularPhysicsList </span>.  
Line 183: Line 183:
<span style="color:#800000"> void MyPhysicsList :: ConstructProcess() { </span>
<span style="color:#800000"> void MyPhysicsList :: ConstructProcess() { </span>
-
<span style="color:#800000"> // Assign transportation process to all particles </span>
+
<span style="color:#800000"> AddTransportation(); // Assign transportation process to all particles </span>
-
<span style="color:#800000"> AddTransportation(); </span>
+
<span style="color:#800000"> ConstructEM(); // Electromagnetic processes </span>
-
 
+
<span style="color:#800000"> ConstructGeneral(); // Other processes } </span>
-
<span style="color:#800000"> // Electromagnetic processes </span>
+
-
 
+
-
<span style="color:#800000"> ConstructEM(); </span>
+
-
 
+
-
 
+
-
<span style="color:#800000"> // Other processes </span>
+
-
 
+
-
<span style="color:#800000"> ConstructGeneral(); ... } </span>
+
Line 294: Line 286:
<span style="color:#800000"> {SetCutsWithDefault();} </span>
<span style="color:#800000"> {SetCutsWithDefault();} </span>
 +
 +
 +
=== <span style="color:#000080"> Pre-packaged physics lists </span> ===
 +
 +
Some pre-packaged electromagnetic and hadronic physics lists are available [http://geant4.cern.ch/support/proc_mod_catalog/physics_lists/ here].

Revision as of 15:50, 7 July 2014

Personal tools