Changeset 1337 for trunk/examples/extended/biasing/README
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/examples/extended/biasing/README (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/biasing/README
r807 r1337 1 1 2 Examples for event biasing3 --------------------------2 Examples for event biasing: B01 and B02 3 --------------------------------------- 4 4 5 This directory includes example applications to demonstrate the usage of 6 different variance reduction techniques supported in Geant4, or possible 7 from the user applications. 8 5 B01 and B02 applications demonstrate the usage of different variance 6 reduction techniques supported in Geant4, or possible from the user 7 applications. 9 8 10 9 General remark to variance reduction … … 90 89 Compiling and running 91 90 --------------------- 92 Can be compiled and executed on a RedHat-7.3 system with gcc-3.2.3 93 compiler and the tcsh shell. 94 To compile this example you need AIDA 3.2.1 installed. To link 95 and run it you need a AIDA compliant analysis package. The 96 GNUmakefile of this example shows how to use AIDA through PI as 97 analysis interface. 98 Histograms are saved in HBOOK format. It can be displayed with PAW or 99 compatible packages. 100 You need to set the following variables in your environment: 91 To compile this example you need AIDA installed. To link 92 and run it you need a AIDA compliant analysis package. 93 Histograms are saved in HBOOK format. 94 You need to set the following variable in your environment: 101 95 "G4ANALYSIS_USE" 102 "PI_BASE_DIR" (where PI has been installed) 103 Finally, source the script setupPI.csh. 96 The example stores the plot in the file b02.hbook. 104 97 105 Now you should be able to run gmake and to run exampleB02. 106 107 The example stores the plot in the file b02.hbook. 108 To look at the histogram using lizard you also may use PI 1.2.1 109 http://cern.ch/PI. 98 ___________________________________________________________________________ 110 99 111 100 112 Example B03 113 =========== 101 Reverse MonteCarlo Technique example: ReverseMC01 102 ------------------------------------------------- 114 103 115 This example uses Geant4 and in particular importance sampling and 116 scoring through python. It creates a simple histogram. It's meant 117 to demonstrate how to use a customized scorer and importance sampling 118 in combination with a scripting language, python. 119 Geant4 code is executed from a python session. Therefore, swig is used 120 to create python shadow classes and to generate the code necessary to 121 use the Geant4 libraries from a python session. 122 It can be built and run using PI: http://cern.ch/PI. 123 At the end a histogram called "trackentering.hbook" is created and can be 124 displayed using standard packages (such as PAW). 104 Example ReverseMC01 105 =================== 125 106 126 Building, compiling and running 127 ------------------------------- 107 Example illustrating the use of the Reverse Monte Carlo (RMC) mode in a Geant4 108 application. See details in ReverseMC01/README. 128 109 129 You need to set the following variables in your environment:130 "G4ANALYSIS_USE"131 "PI_BASE_DIR" (where PI has been installed)132 "SWIG_BASE_DIR" (where SWIG 1.3.15 has been installed)133 Finally source the script setupPI.csh.134 135 You may run gmake now.136 You should be able to execute the file B03RunApplication.py from your137 shell or from a lizard session now.138 139 At the moment the plotting is not available using a python script, but140 it is planned in future releases. A histogram is created and later displayed141 using standard analysis packages.142 143 To clean all the added files, just type gmake clean_all.144 145 Files in B03;146 B03Application.py: Is a example class utilizing importance sampling147 and scoring using python.148 B03RunApplication.py: Is a python script running the example.149 It may be executed from the shell or in a python session.150 B03App.py: Is created by swig using swig.
Note:
See TracChangeset
for help on using the changeset viewer.
