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