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.1 * |
---|
9 | * This UI-command base scoring is still in alpha release and * |
---|
10 | * functionality offered is preliminary. We do not guarantee * |
---|
11 | * the correctness of the code. Also, we may change any of the * |
---|
12 | * commands / methods in the near future release. * |
---|
13 | **************************************************************** |
---|
14 | |
---|
15 | 1. Introduction |
---|
16 | |
---|
17 | This example demonstrates how to use UI-command base scoring. |
---|
18 | It create parallel world(s) for defining scoring mesh(es). |
---|
19 | |
---|
20 | Since this UI-command base scoring is preliminary, this |
---|
21 | functionality is not provided by default. To get it included, |
---|
22 | the pointer to G4ScoringManager must be accessed. The access |
---|
23 | to the static method G4ScoringManager::GetScoringManager() |
---|
24 | activate this functionality. |
---|
25 | |
---|
26 | 1.1 Geometry and primary particle |
---|
27 | |
---|
28 | It has just one water box in the world volume filled by air. |
---|
29 | No detector in the mass geometry. Particle gun shoots a gamma |
---|
30 | into the water box. |
---|
31 | |
---|
32 | 1.2 Physics |
---|
33 | |
---|
34 | The physics list is mostly identical to exampleN03. It does not |
---|
35 | have hadronics. |
---|
36 | |
---|
37 | 2. Macro files |
---|
38 | |
---|
39 | "run1.mac" through "run3.mac" macro files should be used |
---|
40 | independently. Each macro file create its own scoring parallel |
---|
41 | world(s). "vis.mac" and "drawSlics.mac" are used internally. |
---|
42 | Each macro should work for both interactively and batch, but |
---|
43 | interactive mode is advised for better visualization. |
---|
44 | |
---|
45 | 3. RE03UserScoreWriter |
---|
46 | |
---|
47 | G4ScoringManager has a default score writer which dumps every |
---|
48 | entry of one quantity of a mesh for all quantities of the mesh |
---|
49 | one by one in CSV format. To alternate the file format the user |
---|
50 | can implement his/her own score writer deriving from G4VUserScoreWriter |
---|
51 | base class and set it to G4ScoringManager. To demonstrate this, |
---|
52 | RE03UserScoreWriter is included in this example. To use this |
---|
53 | alternative writer, un-comment its instantiation in RE03.cc. |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | |
---|
60 | |
---|