source: trunk/examples/advanced/xray_telescope/README @ 1288

Last change on this file since 1288 was 1230, checked in by garnier, 14 years ago

update to geant4.9.3

File size: 3.9 KB
Line 
1$Id: README,v 1.14 2009/11/20 18:08:53 santin Exp $
2-------------------------------------------------------------------
3
4     =========================================================
5               Geant4 - X-Ray Telescope Example
6     =========================================================
7
8
9Introduction
10------------
11XrayTel is an advanced Geant4 example based on a realistic simulation of
12an X-ray Telescope.  It is based on work carried out by a team of Geant4
13experts to simulate the interaction between X-ray Telescopes XMM-Newton
14and Chandra with low energy protons present in the orbital radiation
15background.  The X-ray mirrors are designed to collect x-ray photons at
16grazing-incidence angles and focus them onto detectors at the focal plane.
17However, this mechanism also seems to work for low energy protons which,
18if they reach the detectors in sufficient numbers, can cause damage.
19In this example, the geometry has been simplified by using a single mirror
20shell and no baffles, but all the dimensions and materials are realistic.
21
22The aim of this advanced example is to illustrate the use advanced
23GUI, visualisation, particle generation and analysis schemes available
24in Geant4:
25
26 - macros are provided to display the geometry and particle tracks with
27   OpenGL, DAWN Postscript or VRML visualisation
28
29 - the generation of particles is done via the new General Particle Source
30
31 - histograming facilities are available through the AIDA 3.0 interfaces.
32
33 - on-line visualisation of histograms is provided through the AIDA 3.0 interface.
34
35In order to be able to use any of these packages, prior installation is
36necessary and a number of environment variables will have to be set.
37
38
39NOTE: The geometry is refreshed on the viewer at the beginning of each run,
40      but the tracks are plotted only in case an interesting event occurs.
41      This is the case only for about 1 every 10**4 events.
42
43
44
452. Run
46
47To execute a sample simulation with visualisation of proton tracks
48reaching the detector run:
49
50XrayTel
51
52execute command "/control/execute xxxxx.mac"
53
54visualisation macros provided are
55  - opengl.mac  for OpenGL display
56  - vrml.mac    for VRML display and output file
57  - dawn.mac    for dawn display and PS output file
58
59To execute a run without visualisation use
60  - test.mac
61
62
63If the analysis options are set, histograming windows will
64automatically open and the corresponding files will be created.
65A 1D histogram will display the energy distribution of the protons
66that reach the detector at the end of the run.
67
68
693. Detector description
70
71The telescope and detector geometry is defined in
72XrayTelDetectorConstruction.cc
73
74
754. Physics processes
76
77The physics processes are in XrayTelPhysicsList.cc
78The main process in this example is G4hMultipleScattering for scattering of the protons
79off the mirror surfaces.
80
81
825. Event generation
83
84This is done using the new General Particle Source. Documentation for
85this can be found in:
86
87http://reat.space.qinetiq.com/gps/
88
89
906. Analysis
91
92In case the variable G4ANALYSIS_USE is set:
93setenv G4ANALYSIS_USE               1
94relevant information from the simulation is processed in the XrayTelAnalysis
95class and saved, through the AIDA interface, to Histograms and Tuples.
96
97Compilation and link flags to hook any AIDA compliant system are passed
98to the Geant4 GNUmakefile system by using the "aida-config" tool
99that should come with any AIDA compliant system.
100Specifically in the GNUmakefile you find the 2 lines:
101  CPPFLAGS += `aida-config --include`
102  LDFLAGS += `aida-config --lib`
103
104For more information about AIDA please look at:
105http://aida.freehep.org/
106
107Presently, tools
108- OpenScientist (http://openscientist.lal.in2p3.fr/)
109- JAS (http://jas.freehep.org/jas3/)
110- iAIDA (http://iaida.dynalias.net/Intro.html)
111provide an implementation of AIDA 3.2.1
112
113To build and execute the example on platforms where there is no
114implementation of the analysis system, the environment variables
115must not be set.
116
Note: See TracBrowser for help on using the repository browser.