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.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]
1
2 RE03 - An extended example for run and event
3 --------------------------------------------
4
5 Contact : M.Asai (SLAC/JLab), A.Kimura (AIT), T.Aso (TNCMT)
6
7 1. Introduction
8
9 This example demonstrates how to use UI-command base scoring.
10 It create parallel world(s) for defining scoring mesh(es).
11
12 Due to some performance overhead, this functionality is not
13 provided by default. To get it included, the pointer to
14 G4ScoringManager must be accessed. The access to the static
15 method G4ScoringManager::GetScoringManager() activates this
16 functionality.
17
18 1.1 Geometry and primary particle
19
20 It has just one water box in the world volume filled by air.
21 No detector in the mass geometry. Particle gun shoots a gamma
22 into the water box.
23
24 1.2 Physics
25
26 The physics list is taken from referenced physics-list QGS_BIC
27 in Geant4.
28
29 2. Macro files
30
31 2.1 "run.mac"
32
33 "run.mac" is the main macro file of this example for both
34 batch and interactive modes.
35
36 In interactive mode, trajectories are not visualized by default
37 for the sake of execution speed. To visualize them, comment out
38 lines of /vis/disable and /vis/enable in "run.mac".
39
40 In addition, in sub-event parallel mode, only the trajectories
41 created in the master thread are visualized by default.
42 Un-comment the line of /run/trajectoriesToBeMerged in "vis.mac"
43 to visualize all trajectories.
44
45 "draw.mac" is used by "run.mac" to visualize a score.
46
47 2.2 Other macro files
48
49 "run2.mac" through "run4.mac" macro files should be used
50 independently. They demonstrate additional functionalities of
51 command-based scoring. Each macro file create its own scoring
52 parallel world(s).
53
54 - "run2.mac" : defining three box meshes of different sizes
55 and granurarities touching to each other
56 - "run3.mac" : defining two box meshes of different sizes and
57 granurarities overlaying one over the other to demonstrate
58 changing granurarity of a box mesh
59 - "run4.mac" " defining a cylindrical mesh
60
61 IMPORTANT: DO NOT use more than one of these macro files in
62 one execution of this example.
63
64 "drawSlice.mac" and "drawCylinderSlice.mac" are used internally
65 from "run*.mac" to draw a single slice of the corresponding mesh.
66
67 3. RE03ActionInitialization
68
69 This UserActionInitialization class works for all Geant4 run
70 modes, i.e. sequential mode, event-level paralle mode and
71 sub-event-level parallel mode.
72
73 4. RE03UserScoreWriter
74
75 G4ScoringManager has a default score writer which dumps every
76 entry of one quantity of a mesh for all quantities of the mesh
77 one by one in CSV format. To alternate the file format the user
78 can implement his/her own score writer deriving from G4VUserScoreWriter
79 base class and set it to G4ScoringManager. To demonstrate this,
80 RE03UserScoreWriter is included in this example. To use this
81 alternative writer, un-comment its instantiation in RE03.cc.
82
83
84
85
86
87
88