Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 74: | Line 74: | ||
- | <u> Simple example of <span style="color:#ff0000"> | + | <u> Simple example of <span style="color:#ff0000"> MyDetectorConstruction </span> </u>: |
- | <span style="color:#800000"> class | + | <span style="color:#800000"> class MyDetectorConstruction:public G4VUserDetectorConstruction { </span> |
<span style="color:#800000"> public: </span> | <span style="color:#800000"> public: </span> | ||
- | <span style="color:#800000"> | + | <span style="color:#800000"> MyDetectorConstruction(); </span> |
- | <span style="color:#800000"> ~ | + | <span style="color:#800000"> ~MyDetectorConstruction(); </span> |
<span style="color:#800000"> virtual G4VPhysicalVolume* Construct(); </span> | <span style="color:#800000"> virtual G4VPhysicalVolume* Construct(); </span> | ||
Line 96: | Line 96: | ||
- | <span style="color:#800000"> G4PhysicalVolume* | + | <span style="color:#800000"> G4PhysicalVolume* MyDetectorConstruction::Construct() { </span> |
<span style="color:#800000"> ... </span> | <span style="color:#800000"> ... </span> | ||
Line 121: | Line 121: | ||
- | <span style="color:#800000"> void | + | <span style="color:#800000"> void MyDetectorConstruction::DefineMaterials() { </span> |
<span style="color:#800000"> ... </span> | <span style="color:#800000"> ... </span> | ||
Line 154: | Line 154: | ||
- | <u> Simple example of <span style="color:#ff0000"> | + | <u> Simple example of <span style="color:#ff0000"> MyPhysicsList </span> </u>: |
Line 276: | Line 276: | ||
- | <u> Simple example of <span style="color:#ff0000"> | + | <u> Simple example of <span style="color:#ff0000"> MyPhysicsList </span> </u>: |