Introduction to GEANT4
From UCL HEP PBT Wiki
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> | ||
- | + | ||
+ | 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 | + | 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: | ||
- | + | 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: | ||
- | + | Simple example of <span style="color:#ff0000"> MyPhysicsList </span> derived from <span style="color:#ff0000"> G4VUserPhysicsList </span>: | |