1 | |
---|
2 | RE03 - An extended example for run and event |
---|
3 | -------------------------------------------- |
---|
4 | |
---|
5 | Contact : M.Asai (SLAC), A.Kimura (AIT), T.Aso (TNCMT) |
---|
6 | |
---|
7 | **************************************************************** |
---|
8 | * IMPORTANT NOTICE for version 9.2 * |
---|
9 | * * |
---|
10 | * This UI-command base scoring is still in beta release and * |
---|
11 | * functionality offered is preliminary. We do not guarantee * |
---|
12 | * the correctness of the code. Also, we may change any of the * |
---|
13 | * commands / methods in the near future release. * |
---|
14 | * In particular for the cylindrical scoring mesh, we are * |
---|
15 | * aware of rather frequent warning messages issued by the * |
---|
16 | * G4Navigator for the zero-length steps. I believe the results * |
---|
17 | * is correct, but we appreciate the user's patient for this * |
---|
18 | * messy warning messages. It is identified that if a track * |
---|
19 | * enters at exactly the center of the top/bottom circlic face * |
---|
20 | * exactly along the local z-axis of the scoring cylinder, this * |
---|
21 | * warning message is mostlikely issued. * |
---|
22 | * * |
---|
23 | **************************************************************** |
---|
24 | |
---|
25 | 1. Introduction |
---|
26 | |
---|
27 | This example demonstrates how to use UI-command base scoring. |
---|
28 | It create parallel world(s) for defining scoring mesh(es). |
---|
29 | |
---|
30 | Since this UI-command base scoring is preliminary, this |
---|
31 | functionality is not provided by default. To get it included, |
---|
32 | the pointer to G4ScoringManager must be accessed. The access |
---|
33 | to the static method G4ScoringManager::GetScoringManager() |
---|
34 | activate this functionality. |
---|
35 | |
---|
36 | 1.1 Geometry and primary particle |
---|
37 | |
---|
38 | It has just one water box in the world volume filled by air. |
---|
39 | No detector in the mass geometry. Particle gun shoots a gamma |
---|
40 | into the water box. |
---|
41 | |
---|
42 | 1.2 Physics |
---|
43 | |
---|
44 | The physics list is mostly identical to exampleN03. It does not |
---|
45 | have hadronics. |
---|
46 | |
---|
47 | 2. Macro files |
---|
48 | |
---|
49 | "run1.mac" through "run4.mac" macro files should be used |
---|
50 | independently. Each macro file create its own scoring parallel |
---|
51 | world(s). "vis.mac", "drawSlices.mac" and "drawCylinderSlices.mac" |
---|
52 | are used internally. Each macro should work for both interactively |
---|
53 | and batch, but interactive mode is advised for better visualization. |
---|
54 | |
---|
55 | IMPORTANT: DO NOT use more than one of these macro files in one |
---|
56 | execution of this example. |
---|
57 | |
---|
58 | 3. RE03UserScoreWriter |
---|
59 | |
---|
60 | G4ScoringManager has a default score writer which dumps every |
---|
61 | entry of one quantity of a mesh for all quantities of the mesh |
---|
62 | one by one in CSV format. To alternate the file format the user |
---|
63 | can implement his/her own score writer deriving from G4VUserScoreWriter |
---|
64 | base class and set it to G4ScoringManager. To demonstrate this, |
---|
65 | RE03UserScoreWriter is included in this example. To use this |
---|
66 | alternative writer, un-comment its instantiation in RE03.cc. |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|