Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
+4 -57
View File
@@ -89,62 +89,9 @@ the scoring. In this example one scorer creates a histogram.
Compiling and running
---------------------
Can be compiled and executed on a RedHat-7.3 system with gcc-3.2.3
compiler and the tcsh shell.
To compile this example you need AIDA 3.2.1 installed. To link
and run it you need a AIDA compliant analysis package. The
GNUmakefile of this example shows how to use AIDA through PI as
analysis interface.
Histograms are saved in HBOOK format. It can be displayed with PAW or
compatible packages.
You need to set the following variables in your environment:
To compile this example you need AIDA installed. To link
and run it you need a AIDA compliant analysis package.
Histograms are saved in HBOOK format.
You need to set the following variable in your environment:
"G4ANALYSIS_USE"
"PI_BASE_DIR" (where PI has been installed)
Finally, source the script setupPI.csh.
Now you should be able to run gmake and to run exampleB02.
The example stores the plot in the file b02.hbook.
To look at the histogram using lizard you also may use PI 1.2.1
http://cern.ch/PI.
Example B03
===========
This example uses Geant4 and in particular importance sampling and
scoring through python. It creates a simple histogram. It's meant
to demonstrate how to use a customized scorer and importance sampling
in combination with a scripting language, python.
Geant4 code is executed from a python session. Therefore, swig is used
to create python shadow classes and to generate the code necessary to
use the Geant4 libraries from a python session.
It can be built and run using PI: http://cern.ch/PI.
At the end a histogram called "trackentering.hbook" is created and can be
displayed using standard packages (such as PAW).
Building, compiling and running
-------------------------------
You need to set the following variables in your environment:
"G4ANALYSIS_USE"
"PI_BASE_DIR" (where PI has been installed)
"SWIG_BASE_DIR" (where SWIG 1.3.15 has been installed)
Finally source the script setupPI.csh.
You may run gmake now.
You should be able to execute the file B03RunApplication.py from your
shell or from a lizard session now.
At the moment the plotting is not available using a python script, but
it is planned in future releases. A histogram is created and later displayed
using standard analysis packages.
To clean all the added files, just type gmake clean_all.
Files in B03;
B03Application.py: Is a example class utilizing importance sampling
and scoring using python.
B03RunApplication.py: Is a python script running the example.
It may be executed from the shell or in a python session.
B03App.py: Is created by swig using swig.