As a starting point, the program was realized within the root frame work. Rather simple, detailed instruction are given below in case root needs to be installed. Alternative tools can be found in the $FLUPRO/flutil directory to perform these tasks.
traditional steps how to produce graphical output for USRBIN data
(coarse outline)
above steps are combined within a single tool now which greatly simplifies the above
procedure
(except running FLUKA to generate the data)
flukaGUI
goals:
INSTALLATION
This program is supported under Linux running on Intel PCs only at this point. Both the FLUKA and the root package need to be installed in order to build and run flukaGUI. Please see the notes towards the end of this document for hints on 64bit systems.
) install the current FLUKA package
If you do not have FLUKA installed yet please get it at www.fluka.org.
After download you need to make a directory for it first, cd into that directory and then unpack the
compressed file and setup the required environment variable FLUPRO. Assume we call the directory
which holds FLUKA myFluka/.
) install root package
If you do not have root installed, or if your installed version is not current enough,
go to http://root.cern.ch and follow the
Download Binaries link (upper left side). You should select the Recommended
version, as of this writing 5.15/06. There you will find binary packages for a variety of hardware
and OS versions. Try to identify the 'closest' configuration to your local system - care must be taken
since the packages are not all of the same root version.
In case none of the binary package works for you, one can actually download the source and compile root from scratch. You will find and need instruction provided through the root website - the installation of root from the source package is not in the scope of this outline.
Currently versions 5.14/00, 5.15/02,
5.15/04, 5.15/06, 5.15/08 and 5.16/00 are supported explicitly.
Please make sure that your
root installation exactly matches one of the supported versions listed here. We do encourage
to use a fairly recent version because of the root development/release philosophy.
After download you need to make a directory where to install root and
setup the environment variable $ROOTSYS. Assume we call the directory which holds root
myRoot/.
) build the flukaGUI program
Download the current version of the program from the FLUKA website, as of this writing
aFlukaGUI-v07.tgz You should unpack the obtained
compressed tar file where you like to install it, lets assume in your home directory for the purpose
of these instructions.
The installation procedure should be rather straight forward now. However it is fairly new and there might be individual problems - please let us know. Contact: anton.empl@cern.ch
execute flukaGUI
In case the code built fine run this command at your prompt:
You are able to run the program from anywhere within your system by either specifying the absolute path or including the location of the executable (/home/user/aFlukaGUI-v07/src for the above example configuration) in your $path.
You will find a root resource file rootrc in this directory. This is a flexible way to change the overall behavior/appearance of a and in particular this root applications. Here the file shows how to change font sizes for GUI elements - moderate font size changes are tested at this point (11-16). You also have access to the basic color scheme. To make use of it you need to rename the file to .rootrc and have a local copy or one in your home directory:
still NEW
Selecting a FLUKA input file now enables one to make use of the full featured Geometry Tab. Here one can obtain cuts (parallel to coordinate axes) through the setup in a simple way to inspect the implemented FLUKA geometry setup. This is a visual presentation of the implemented geometry which is identical (down to machine precision) to the view FLUKA itself has of it.
When using the geometry canvas one is able to zoom in on the displayed geometry view with the left mouse button. Push down that button and drag until you selected the desired region to zoom into. Releasing the mouse button will perform a new scan of the geometry for the selected range. Executing these actions on an axis will only zoom with respect to that axis. One is able to 'jump' back and forth between performed zoom settings, either with the zoom +/- buttons in the GUI or by using short cut keys (>,n,<,p). Information on FLUKA materials and regions is available and one can ask to overlay, if present, data from the USRBIN option.
special FLUKA user routine(s)
If FLUKA makes use of special user routines in context of the geometry these need to be included in
the build process. After normal installation one has to re-issue the configure command with the -u
(or equivalently --user) option specifying the extra routine(s), typically lattic.f. Now run
make flukaGUIuser which should create a different executable src/flukaGUIuser which was
obtained by (compiling)linking against the extra user routines - the standard flukaGUI executable
is still available.
Please direct questions or suggestion to: anton.empl@cern.ch
NOTES
- please remove the deprecated FLUKA option COMMENT from your input file
- when using a FLUKA input file, please be patient. It can take seconds of CPU time to parse the file and setup the geometry, depending on the complexity of the problem.
- make sure to first setup both $FLUPRO and $ROOTSYS and then run ./configure with no arguments. In order to later use a different version of FLUKA and/or root please execute the following 2 steps again
- should the program (sometimes) quietly refuse to work with the FLUKA input file for the geometry, most likely there is a problem with the actual input file. Check first if the input file works with FLUKA of the same version.
- please be aware that many changes were introduced with this latest release. FLUKA is executed as a child process in context of the geometry features. In case there are problems it should suffice to kill the main process, ie. stop flukaGUI, to remove any child processes.
- hardly any reason is left to make use of the deprecated feature of using a pre-processed
PLOTGEOM.STORE file. However, if one should be used, please remember: * only the view which was selected
at file generation is available * the associated USRBIN data has to be present since the x/y ranges
are fixed and taken from the corresponding histogram * a possible rotation between the coordinate system
of the geometry and the histogram is ignored.
The geometry tab/features are not available!
- 64bit systems
one needs to insure that the system has all required software in place to run applications in 32bit
compatible mode. In addition a 32bit version of the root package needs to be installed. This is required
since the FLUKA library is compiled with -m32 and flukaGUI does need both. However, if these two
requirements are met flukaGUI will work fine.