Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 372: | Line 372: | ||
=== <span style="color:#000080"> Pre-packaged physics lists </span> === | === <span style="color:#000080"> Pre-packaged physics lists </span> === | ||
+ | |||
Some built-in pre-packaged physics lists are available [http://geant4.web.cern.ch/geant4/support/proc_mod_catalog/physics_lists/referencePL.shtml here]. You can use them as a starting point of your simulation. | Some built-in pre-packaged physics lists are available [http://geant4.web.cern.ch/geant4/support/proc_mod_catalog/physics_lists/referencePL.shtml here]. You can use them as a starting point of your simulation. | ||
Line 380: | Line 381: | ||
In function <span style="color:#ff0000"> main() </span>: | In function <span style="color:#ff0000"> main() </span>: | ||
+ | |||
<span style="color:#800000"> G4PhysListFactory factory* physListFactory = new G4PhysListFactory(); </span> | <span style="color:#800000"> G4PhysListFactory factory* physListFactory = new G4PhysListFactory(); </span> | ||
Line 408: | Line 410: | ||
<span style="color:#800000"> class MyPrimaryGeneratorAction:public G4VUserPrimaryGeneratorAction { </span> | <span style="color:#800000"> class MyPrimaryGeneratorAction:public G4VUserPrimaryGeneratorAction { </span> | ||
- | |||
<span style="color:#800000"> public: </span> | <span style="color:#800000"> public: </span> |