[807] | 1 | $Id: README,v 1.10 2006/11/22 18:58:25 vnivanch Exp $ |
---|
| 2 | ------------------------------------------------------------------- |
---|
| 3 | |
---|
| 4 | ========================================================= |
---|
| 5 | Geant4 - an Object-Oriented Toolkit for Simulation in HEP |
---|
| 6 | ========================================================= |
---|
| 7 | |
---|
| 8 | TestEm9 |
---|
| 9 | ------- |
---|
| 10 | Demonstrate electromagnetic physics in crystal calorimeters. |
---|
| 11 | How to define cut-per-region. |
---|
| 12 | |
---|
| 13 | 1- GEOMETRY DEFINITION |
---|
| 14 | |
---|
| 15 | The geometry consists of the vertex detector (VD), the electromagnetic |
---|
| 16 | calorimeter (EM), and the muon identifier (MU). Detector layout along |
---|
| 17 | the axis Z. |
---|
| 18 | |
---|
| 19 | VD consisted of 3 layers of Si with pads structured along the axis X. |
---|
| 20 | Between VD and EM there are 2 active absorbers (scintillators). |
---|
| 21 | EM is the matrix 5x5 of heavy crystals. MU consist of 2 active absorbers |
---|
| 22 | (scintillators) and the iron plate between. |
---|
| 23 | |
---|
| 24 | 2 additional to the World regions are defined: VertexDetector and |
---|
| 25 | MuonDetector. For testing purposes first absorber of MU is included in |
---|
| 26 | the region of VD. |
---|
| 27 | |
---|
| 28 | Material of calorimiter and absorber can be choosen: |
---|
| 29 | Air Water lAr Al Fe BGO PbWO4 Pb. |
---|
| 30 | eg: /testem/det/CalMat PbWO4 |
---|
| 31 | /testem/det/AbsMat Al |
---|
| 32 | |
---|
| 33 | The size of the detector can be changed also. |
---|
| 34 | |
---|
| 35 | eg: /testem/det/EcalLength 20 cm |
---|
| 36 | /testem/det/EcalWidth 5 cm |
---|
| 37 | /testem/det/update ---> rebuild the geometry |
---|
| 38 | |
---|
| 39 | 2- PHYSICS LISTS |
---|
| 40 | |
---|
| 41 | Physics Lists are based on modular design. Few modules are instantiated: |
---|
| 42 | 1. Transporatation |
---|
| 43 | 2. EM physics |
---|
| 44 | 3. Decays |
---|
| 45 | 4. StepMax - for steplimitation |
---|
| 46 | |
---|
| 47 | The following options for EM physics are available: |
---|
| 48 | - "standard" the best standard EM physics (default) |
---|
| 49 | - "G4standard" recommended standard EM physics for LHC |
---|
| 50 | - "G4standard_fast" the best CPU performance standard physics for LHC |
---|
| 51 | - "G4standard_exp" experimental standard physics for LHC |
---|
| 52 | - "Livermore" low-energy EM physics using Livermore data |
---|
| 53 | - "Penelope" low-energy EM physics implementing Penelope models |
---|
| 54 | |
---|
| 55 | Optional components can be added: |
---|
| 56 | - "elastic" elastic scattering of hadrons |
---|
| 57 | - "binary" QBBC configuration of hadron/ion inelastic models |
---|
| 58 | - "gamma_nuc" gamma- and electro-nuclear processes |
---|
| 59 | - "stopping" stopping processes |
---|
| 60 | |
---|
| 61 | 3- AN EVENT : THE PRIMARY GENERATOR |
---|
| 62 | |
---|
| 63 | The primary kinematic consists of a single particle which hits the |
---|
| 64 | cylinder perpendicular to the input face. The type of the particle |
---|
| 65 | and its energy are set in the PrimaryGeneratorAction class, and can |
---|
| 66 | changed via the G4 build-in commands of ParticleGun class. |
---|
| 67 | |
---|
| 68 | 4- OUTPUT |
---|
| 69 | |
---|
| 70 | The batch regime of simulation can be started |
---|
| 71 | $G4WORKDIR/bin/$G4SYSTEM/TestEm9 TestEm9.in |
---|
| 72 | where TestEm9.in is the example of macro file for batch job. |
---|
| 73 | |
---|
| 74 | As a result of simulation the number of secondaries produced |
---|
| 75 | in different regions are averaged. The average energy depositions |
---|
| 76 | in active absorbers and EM as well as RMS of these values are shown. |
---|
| 77 | The number of hits in pads of VD is printed out. |
---|
| 78 | |
---|
| 79 | 5- VISUALISATION |
---|
| 80 | |
---|
| 81 | To use visualisation the environment variable G4_VIS_USE should be |
---|
| 82 | defined. An interactive session starts if no macro file is specified |
---|
| 83 | in the command line: |
---|
| 84 | $G4WORKDIR/bin/$G4SYSTEM/TestEm9 |
---|
| 85 | |
---|
| 86 | To start visualisation one can issur |
---|
| 87 | >/control/execute vis.mac |
---|
| 88 | >/run/beamOn 1 |
---|
| 89 | |
---|
| 90 | 6- ANALYSIS |
---|
| 91 | |
---|
| 92 | To create histograms/ntuple for further analysis one should define |
---|
| 93 | environment variable G4ANALYSIS_USE and setup local AIDA implementation. |
---|
| 94 | The example should be recompiled: |
---|
| 95 | |
---|
| 96 | gmake histclean |
---|
| 97 | gmake |
---|
| 98 | |
---|
| 99 | The macro file csi.mac can be used as exmple of macro for analysis. It |
---|
| 100 | can be executed in the following way: |
---|
| 101 | $G4WORKDIR/bin/$G4SYSTEM/TestEm9 csi.mac |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | 7- Using histograms |
---|
| 105 | ------------------- |
---|
| 106 | |
---|
| 107 | By default the histograms are not activated. To activate histograms |
---|
| 108 | the environment variable G4ANALYSIS_USE should be defined. For instance |
---|
| 109 | uncomment the flag G4ANALYSIS_USE in GNUmakefile. |
---|
| 110 | |
---|
| 111 | To use histograms any of implementations of AIDA interfaces should |
---|
| 112 | be available (see http://aida.freehep.org). |
---|
| 113 | |
---|
| 114 | A package including AIDA and extended interfaces also using Python |
---|
| 115 | is PI, available from: http://cern.ch/pi . |
---|
| 116 | |
---|
| 117 | Once installed PI or PI-Lite in a specified local area $MYPY, it is |
---|
| 118 | required to add the installation path to $PATH, i.e. for example, |
---|
| 119 | for release 1.2.1 of PI: |
---|
| 120 | |
---|
| 121 | setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin |
---|
| 122 | |
---|
| 123 | CERN users can use the PATH to the LCG area on AFS. |
---|
| 124 | |
---|
| 125 | Before compilation of the example it is optimal to clean up old |
---|
| 126 | files: |
---|
| 127 | |
---|
| 128 | gmake histclean |
---|
| 129 | gmake |
---|
| 130 | |
---|
| 131 | Before running the example the command should be issued: |
---|
| 132 | |
---|
| 133 | eval `aida-config --runtime csh` |
---|
| 134 | |
---|
| 135 | It is possible to choose the format of the output file with |
---|
| 136 | histograms using UI command: |
---|
| 137 | |
---|
| 138 | /testem/histo/setFileType type |
---|
| 139 | |
---|
| 140 | The following types are available: hbook, root, xml. |
---|