Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 74: Line 74:
-
<u> Simple example of <span style="color:#ff0000"> G4VUserDetectorConstruction </span> </u>:  
+
<u> Simple example of <span style="color:#ff0000"> MyDetectorConstruction </span> </u>:  
-
<span style="color:#800000"> class DetectorConstruction:public G4VUserDetectorConstruction { </span>
+
<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"> DetectorConstruction(); </span>
+
<span style="color:#800000"> MyDetectorConstruction(); </span>
-
<span style="color:#800000"> ~DetectorConstruction(); </span>
+
<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* DetectorConstruction::Construct() { </span>  
+
<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 DetectorConstruction::DefineMaterials() { </span>
+
<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"> G4VUserPhysicsList </span> </u>:  
+
<u> Simple example of <span style="color:#ff0000"> MyPhysicsList </span> </u>:  
Line 276: Line 276:
-
<u> Simple example of <span style="color:#ff0000"> G4VModularPhysicsList </span> </u>:
+
<u> Simple example of <span style="color:#ff0000"> MyPhysicsList </span> </u>:

Revision as of 11:08, 8 July 2014

Personal tools