Warning, /geant4/examples/extended/runAndEvent/RE03/README is written in an unsupported language. File is not indexed.
0001
0002 RE03 - An extended example for run and event
0003 --------------------------------------------
0004
0005 Contact : M.Asai (SLAC/JLab), A.Kimura (AIT), T.Aso (TNCMT)
0006
0007 1. Introduction
0008
0009 This example demonstrates how to use UI-command base scoring.
0010 It create parallel world(s) for defining scoring mesh(es).
0011
0012 Due to some performance overhead, this functionality is not
0013 provided by default. To get it included, the pointer to
0014 G4ScoringManager must be accessed. The access to the static
0015 method G4ScoringManager::GetScoringManager() activates this
0016 functionality.
0017
0018 1.1 Geometry and primary particle
0019
0020 It has just one water box in the world volume filled by air.
0021 No detector in the mass geometry. Particle gun shoots a gamma
0022 into the water box.
0023
0024 1.2 Physics
0025
0026 The physics list is taken from referenced physics-list QGS_BIC
0027 in Geant4.
0028
0029 2. Macro files
0030
0031 2.1 "run.mac"
0032
0033 "run.mac" is the main macro file of this example for both
0034 batch and interactive modes.
0035
0036 In interactive mode, trajectories are not visualized by default
0037 for the sake of execution speed. To visualize them, comment out
0038 lines of /vis/disable and /vis/enable in "run.mac".
0039
0040 In addition, in sub-event parallel mode, only the trajectories
0041 created in the master thread are visualized by default.
0042 Un-comment the line of /run/trajectoriesToBeMerged in "vis.mac"
0043 to visualize all trajectories.
0044
0045 "draw.mac" is used by "run.mac" to visualize a score.
0046
0047 2.2 Other macro files
0048
0049 "run2.mac" through "run4.mac" macro files should be used
0050 independently. They demonstrate additional functionalities of
0051 command-based scoring. Each macro file create its own scoring
0052 parallel world(s).
0053
0054 - "run2.mac" : defining three box meshes of different sizes
0055 and granurarities touching to each other
0056 - "run3.mac" : defining two box meshes of different sizes and
0057 granurarities overlaying one over the other to demonstrate
0058 changing granurarity of a box mesh
0059 - "run4.mac" " defining a cylindrical mesh
0060
0061 IMPORTANT: DO NOT use more than one of these macro files in
0062 one execution of this example.
0063
0064 "drawSlice.mac" and "drawCylinderSlice.mac" are used internally
0065 from "run*.mac" to draw a single slice of the corresponding mesh.
0066
0067 3. RE03ActionInitialization
0068
0069 This UserActionInitialization class works for all Geant4 run
0070 modes, i.e. sequential mode, event-level paralle mode and
0071 sub-event-level parallel mode.
0072
0073 4. RE03UserScoreWriter
0074
0075 G4ScoringManager has a default score writer which dumps every
0076 entry of one quantity of a mesh for all quantities of the mesh
0077 one by one in CSV format. To alternate the file format the user
0078 can implement his/her own score writer deriving from G4VUserScoreWriter
0079 base class and set it to G4ScoringManager. To demonstrate this,
0080 RE03UserScoreWriter is included in this example. To use this
0081 alternative writer, un-comment its instantiation in RE03.cc.
0082
0083
0084
0085
0086
0087
0088