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

Last change on this file since 1349 was 1313, checked in by garnier, 14 years ago

geant4.9.4 beta rc0

File size: 3.7 KB
Line 
1$Id: README,v 1.15 2010/06/06 06:26:05 perl 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 test.mac"
53
54To enable visualisation, uncomment one line from test.mac:
55/control/execute vis.mac
56
57If the analysis options are set, histograming windows will
58automatically open and the corresponding files will be created.
59A 1D histogram will display the energy distribution of the protons
60that reach the detector at the end of the run.
61
62
633. Detector description
64
65The telescope and detector geometry is defined in
66XrayTelDetectorConstruction.cc
67
68
694. Physics processes
70
71The physics processes are in XrayTelPhysicsList.cc
72The main process in this example is G4hMultipleScattering for scattering of the protons
73off the mirror surfaces.
74
75
765. Event generation
77
78This is done using the new General Particle Source. Documentation for
79this can be found in:
80
81http://reat.space.qinetiq.com/gps/
82
83
846. Analysis
85
86In case the variable G4ANALYSIS_USE is set:
87setenv G4ANALYSIS_USE               1
88relevant information from the simulation is processed in the XrayTelAnalysis
89class and saved, through the AIDA interface, to Histograms and Tuples.
90
91Compilation and link flags to hook any AIDA compliant system are passed
92to the Geant4 GNUmakefile system by using the "aida-config" tool
93that should come with any AIDA compliant system.
94Specifically in the GNUmakefile you find the 2 lines:
95  CPPFLAGS += `aida-config --include`
96  LDFLAGS += `aida-config --lib`
97
98For more information about AIDA please look at:
99http://aida.freehep.org/
100
101Presently, tools
102- OpenScientist (http://openscientist.lal.in2p3.fr/)
103- JAS (http://jas.freehep.org/jas3/)
104- iAIDA (http://iaida.dynalias.net/Intro.html)
105provide an implementation of AIDA 3.2.1
106
107To build and execute the example on platforms where there is no
108implementation of the analysis system, the environment variables
109must not be set.
110
Note: See TracBrowser for help on using the repository browser.