forked from VinzenzBildstein/Miniball
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFirstSteps-HowTo.txt
93 lines (55 loc) · 2.37 KB
/
FirstSteps-HowTo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
****************************************************************************
**
** First Steps
**
*****************************************************************************
This HowTo describes the first steps to get a simulation running.
1) Compiling the library
------------------------
Either you use your own Geant4 installation or you use the Geant4 installation
on the Heidelberg MPI-K computer cluster.
For the Geant4 installation on the MPI-K computer cluster you should use
the two scripts provided to set all environment variables:
. /cern/geant4/Geant4.rc
. /cern/geant4/Root.rc
(This system is compiled with gcc 3.2.3 which is the recommended
compiler version)
Now enter the g4miniball directory and just type
make
or make mblib
This creates the MiniBall-library in the MBLIB directory (by default ./lib)
2) Compiling the example simulation
-----------------------------------
In the "examples" directory you find example simulations.
Enter the directory of a example simulation, e.g. "Ex01" and type
make
(type "make examples" in the g4miniball directory to compile all
examples)
An binary Ex01 will be created in the G4BIN directory. Execute this
binary to start the example simulation.
If you start the simulation you will get a prompt:
Idle>
To start the event generation and the tracking use the following command
Idle>/run/beamOn 1000000
where the parameter is the number of events to be generated.
The Ex01 simulation generates one triple cluster and an isotropic source.
The output is a root-file called "miniball.root" containing several histograms
and a root-tree.
The are different ways to get a visualization of the scene. For an example
use one of the included macros:
Idle>/control/execute OGLS_vis.mac
You can change the point of view by
Idle>/vis/viewer/set/viewpointThetaPhi <theta> <phi>
and the position of the lights by
Idle>/vis/viewer/set/lightsThetaPhi <theta> <phi>
For more details please see http://geant4.web.cern.ch
3) Examples
-----------
The provided examples show how to use the package.
Ex01: a simple triple cluster with an isotropic source.
Ex02: several triple clusters placed in a DetectorConstruction class
Ex03: example for a setup created by the MiniBallDetectorArray class
Ex04: example for integration of a user defined detector in a
miniball setup
Good luck