Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
m
m
Line 26: Line 26:
; Manager class  
; Manager class  
-
* <span style="color:#ff0000"> G4RunManager </span>: Manages the simulation process;
+
* <span style="color:#ff0000"> G4RunManager </span>: Manages processing the run;
; Useful terminology
; Useful terminology
Line 500: Line 500:
== <span style="color:#000080"> Optional user classes </span> ==
== <span style="color:#000080"> Optional user classes </span> ==
 +
=== <span style="color:#000080"> Run </span> ===
 +
 +
You can derive your own class from <span style="color:#ff0000"> G4UserRunAction </span> base class where
 +
you may book results of the run. The run starts with "Beam On" and within a run you can not change the detector geometry and physics processes. The run is represented by class <span style="color:#ff0000"> G4Run </span>. 
 +
 
 +
[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__userActions.html Here] you can find examples of user defined RunAction classes.
 +
 +
=== <span style="color:#000080"> Event </span> ===
 +
 +
Event is the basic GEANT4 unit. At the beginning of an event are generated primary tracks which are pushed into a stack. The tracks from the stack are analyzed one by one. The primary tracks might lead to secondary tracks which are also pushed into the stack. When the stack becomes empty the processing of the event is over. The event is represented by class <span style="color:#ff0000"> G4Event </span> which gives hits and trajectory collections as output.   
 +
 +
You can derive your own class from <span style="color:#ff0000"> G4UserEventAction </span> base class where
 +
you can select and analize data.
 +
 +
[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__userActions.html Here] you can find examples of user defined EventAction classes.
 +
 +
=== <span style="color:#000080"> Track </span> ===
 +
 +
=== <span style="color:#000080"> Step </span> ===
 +
 +
=== <span style="color:#000080"> Trajectory </span> ===
[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__userActions.html Here] you can find examples of user defined RunAction and EventAction classes.
[http://geant4.web.cern.ch/geant4/UserDocumentation/Doxygen/examples_doc/html/group__extended__common__userActions.html Here] you can find examples of user defined RunAction and EventAction classes.

Revision as of 17:03, 10 July 2014

Personal tools