Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 73: Line 73:
* Placing it in another volume - in one or many positions: <span style="color:#ff0000"> G4VPhysical Volume </span>  
* Placing it in another volume - in one or many positions: <span style="color:#ff0000"> G4VPhysical Volume </span>  
-
For example a water box detector it can be defined in the following way:
+
 
 +
Simple example of <span style="color:#ff0000"> MyDetectorConstruction </span> derived from <span style="color:#ff0000"> G4VUserDetectorConstruction </span>:  
Line 115: Line 116:
-
Two kinds of base physics list classes are available for users to derive from <span style="color:#ff0000"> G4VUserPhysicsList </span> and <span style="color:#ff0000"> G4ModularPhysicsList </span>. There exist also pre-packaged physics list.  
+
Two kinds of base physics list classes are available for users to derive from: <span style="color:#ff0000"> G4VUserPhysicsList </span> and <span style="color:#ff0000"> G4ModularPhysicsList </span>. There exists also pre-packaged physics list.  
Line 121: Line 122:
-
The class <span style="color:#ff0000"> G4VUserPhysicsList </span> is used for simple physics lists. It has three methods:
+
You can use the class <span style="color:#ff0000"> G4VUserPhysicsList </span> if you want to use simple physics lists. <span style="color:#ff0000"> G4VUserPhysicsList </span> has three methods:
* ConstructParticles(): define all necessary particles;   
* ConstructParticles(): define all necessary particles;   
Line 128: Line 129:
-
You can define your own class derived from the base class <span style="color:#ff0000"> G4VUserPhysicsList </span> in the following way:
+
Simple example of <span style="color:#ff0000"> MyPhysicsList </span> derived from <span style="color:#ff0000"> G4VUserPhysicsList </span>:

Revision as of 14:17, 7 July 2014

Personal tools