Geant4 Cross Reference |
1 ---------------------------------------------- 2 3 ========================================= 4 Geant4 - X-Ray Telescope Exampl 5 ========================================= 6 7 8 Introduction 9 ------------ 10 XrayTel is an advanced Geant4 example based on 11 an X-ray Telescope. It is based on work carri 12 experts to simulate the interaction between X- 13 and Chandra with low energy protons present in 14 background. The X-ray mirrors are designed to 15 grazing-incidence angles and focus them onto d 16 However, this mechanism also seems to work for 17 if they reach the detectors in sufficient numb 18 In this example, the geometry has been simplif 19 shell and no baffles, but all the dimensions a 20 21 The aim of this advanced example is to illustr 22 GUI, visualisation, particle generation and an 23 in Geant4: 24 25 - macros are provided to display the geometry 26 OpenGL, DAWN Postscript or VRML visualisati 27 28 - the generation of particles is done via the 29 30 - histograming facilities are available throu 31 32 In order to be able to use any of these packag 33 necessary and a number of environment variable 34 35 36 NOTE: The geometry is refreshed on the viewer 37 but the tracks are plotted only in case 38 This is the case only for about 1 every 39 40 41 42 2. Run 43 44 To execute a sample simulation with visualisat 45 reaching the detector run: 46 47 XrayTel 48 49 execute command "/control/execute test.mac" 50 51 To enable visualisation, uncomment one line fr 52 /control/execute vis.mac 53 54 If the analysis options are set, histograms wi 55 automatically created and the corresponding fi 56 A 1D histogram will display the energy distrib 57 that reach the detector at the end of the run. 58 59 60 3. Detector description 61 62 The telescope and detector geometry is defined 63 XrayTelDetectorConstruction.cc 64 65 66 4. Physics processes 67 68 The physics processes are in XrayTelPhysicsLis 69 The main process in this example is G4hMultipl 70 off the mirror surfaces. 71 72 73 5. Event generation 74 75 This is done using the new General Particle So 76 this can be found in: 77 78 http://reat.space.qinetiq.com/gps/ 79 80 81 6. Analysis 82 83 Relevant information from the simulation is pr 84 class and saved, through the G4AnalysisManager 85 Tuples. The output file is written in Root for 86 No external software is required (apart from t 87