source: trunk/examples/extended/medical/fanoCavity2/README @ 1277

Last change on this file since 1277 was 807, checked in by garnier, 16 years ago

update

File size: 7.2 KB
Line 
1$Id: README,v 1.8 2007/11/12 18:19:30 maire Exp $
2-------------------------------------------------------------------
3
4     =========================================================
5     Geant4 - an Object-Oriented Toolkit for Simulation in HEP
6     =========================================================
7
8                            fanoCavity2
9                            -----------
10
11    This program computes the dose deposited in an ionization chamber by an
12    extended (one dimensional) monoenergetic electron source.
13    The geometry of the chamber satisfies the conditions of charged particle
14    equilibrium. Hence, under idealized conditions, the ratio of the dose
15    deposited over the beam energy fluence must be equal to 1.
16    This variante of the Fano cavity test make use of an reciprocity theorem.
17   
18    J.Sempau and P.Andreo, Phys. Med. Biol. 51 (2006) 3533       
19       
20 1- GEOMETRY
21 
22    The chamber is modelized as a cylinder with a cavity in it.
23       
24    5 parameters define the geometry :
25      - the radius of the chamber (must be big)
26      - the material of the wall
27      - the thickness of the wall
28      - the material of the cavity
29      - the thickness of the cavity
30
31    Wall and cavity must be made of the same material, but with different
32    density.
33    Radius must be bigger than range of electrons in cavity.           
34       
35    All above parameters can be redifined via the UI commands built in
36    DetectorMessenger class.
37   
38                        _________________
39     radius (infinite)  |     |   |     |
40                        |     |   |     |   
41                        |     |   |     |
42                        |     |   |     |     
43                        |     | <-+-----+--- cavity     
44                        |     |   |     |
45                        |     |   |     |
46                ---------------------------- cylinder axis = e- source
47                        |     |   |     |
48                        |     |   |     |
49                        |     |   |     |
50                        |wall |   |wall |
51                        |     |   |     |                       
52                        |     |   |     |
53                        |     |   |     |
54                        -----------------
55                       
56 2- BEAM
57 
58    Monoenergetic (E0) incident electron source is uniformly distribued along
59    cylinder axis, within wall and cavity, with constant lineic density
60    per mass: I.
61    An effective wall thickness is defined from the range of e- at energy E0.
62     
63    Beam_energy_fluence is E0*I
64   
65 3- PURPOSE OF THE PROGRAM
66   
67    The program computes the dose deposited in the cavity and the ratio
68    Dose/Beam_energy_fluence. This ratio must be 1.
69 
70    The program needs high statistic to reach precision on the computed dose.
71    The UI command /testem/event/printModulo allows to survey the convergence of
72    the dose calculation.
73   
74    The simplest way to study the effect of e- tracking parameters on dose
75    deposition is to use the command /testem/stepMax.
76                                       
77 4- PHYSICS
78 
79    The physics list contains the standard electromagnetic processes, with few
80    modifications listed here.
81   
82    - Bremsstrahlung : Fano conditions imply no energy transfer via
83    bremsstrahlung radiation. Therefore this process is not registered in the
84    physics list. However, it is always possible to include it via an UI
85    command. See PhysicsListMessenger class.
86   
87    - Ionization : In order to have same stopping power in wall and cavity, one
88    must cancel the density correction term in the dedx formula. This is done in
89    a specific MollerBhabha model (MyMollerBhabhaModel) which inherites from
90    G4MollerBhabhaModel.
91   
92    To prevent explicit generation of delta-rays, the default production
93    threshold (i.e. cut) is set to 10 km (CSDA condition).
94   
95    The finalRange of the step function is set to 10 um, which more on less
96    correspond to a tracking cut in water of about 20 keV. See emOptions.
97    Once again, the above parameters can be controled via UI commands.
98   
99    - Multiple scattering : is switched in single Coulomb scattering mode near
100    boundaries. This is selected via EM options in PhysicsList, and can be
101    controled with UI commands.
102   
103    - All PhysicsTables are built with 100 bins per decade. 
104       
105 5- HISTOGRAMS
106 
107   fanoCavity2 has several predefined 1D histograms :
108 
109      1 : emission point of e+-
110      2 : energy spectrum of e+-
111      3 : theta distribution of e+-
112      4 : emission point of e+- hitting cavity
113      5 : energy spectrum of e+- when entering in cavity
114      6 : theta distribution of e+- before enter in cavity
115      7 : theta distribution of e+- at first step in cavity     
116      8 : track segment of e+- in cavity
117      9 : step size of e+- in wall
118     10 : step size of e+- in cavity
119     11 : energy deposit in cavity per track
120               
121   The histograms are managed by the HistoManager class and its Messenger.
122   The histos can be individually activated with the command :
123   /testem/histo/setHisto id nbBins  valMin valMax unit
124   where unit is the desired unit for the histo (MeV or keV, deg or mrad, etc..)
125   
126   One can control the name of the histograms file with the command:
127   /testem/histo/setFileName  name  (default fanoCavity)
128   
129   It is possible to choose the format of the histogram file (hbook, root, XML)
130   with the command /testem/histo/setFileType (hbook by default)
131   
132   It is also possible to print selected histograms on an ascii file:
133   /testem/histo/printHisto id
134   All selected histos will be written on a file name.ascii (default fanocavity2)
135       
136   Note that, by default, histograms are disabled. To activate them, uncomment
137   the flag G4ANALYSIS_USE in GNUmakefile.
138       
139 6- HOW TO START ?
140 
141        - compile and link to generate an executable
142                % cd geant4/examples/extended/medical/fanoCavity2
143                % gmake
144               
145        - execute fanoCavity2 in 'batch' mode from macro files
146                % fanoCavity2   run01.mac
147               
148        - execute fanoCavity2 in 'interactive mode' with visualization
149                % fanoCavity2
150                ....
151                Idle> type your commands
152                ....
153                Idle> exit
154                 
155 7- USING HISTOGRAMS
156
157  To use histograms, at least one of the AIDA implementations should be
158  available (see http://aida.freehep.org).
159 
160 8a - PI
161
162  A package including AIDA and extended interfaces also using Python is PI,
163  available from: http://cern.ch/pi
164
165  Once installed PI or PI-Lite in a specified local area $MYPY, it is required
166  to add the installation path to $PATH, i.e. for example, for release 1.2.1 of
167  PI:
168  setenv PATH ${PATH}:$MYPI/1.2.1/app/releases/PI/PI_1_2_1/rh73_gcc32/bin
169
170  CERN users can use the PATH to the LCG area on AFS.
171  Before running the example the command should be issued:
172  eval `aida-config --runtime csh`
173
174 8b -  OpenScientist
175
176  OpenScientist is available at http://OpenScientist.lal.in2p3.fr.
177
178  You have to "setup" the OpenScientist AIDA implementation before compiling
179  (then with G4ANALYSIS_USE set) and running your Geant4 application.
180
181 On UNIX you setup, with a csh flavoured shell :
182        csh> source <<OpenScientist install path>/aida-setup.csh
183        or with a sh flavoured shell :
184        sh> . <<OpenScientist install path>/aida-setup.sh
185 On Windows :
186        DOS> call <<OpenScientist install path>/aida-setup.bat
187
188  You can use various file formats for writing (AIDA-XML, hbook, root).
189  These formats are readable by the Lab onx interactive program
190  or the OpenPAW application. See the web pages.
191
192
193  With OpenPAW, on a run.hbook file, one can view the histograms
194  with something like :
195        OS> opaw
196        opaw> h/file 1 run.hbook  ( or opaw> h/file 1 run.aida or run.root) 
197        opaw> zone 2 2
198        opaw> h/plot 1
199        opaw> h/plot 2
Note: See TracBrowser for help on using the repository browser.