Rather simple, detailed instruction are given below in case root needs to be installed.
flukaGUI
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.18/00. 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.
Versions 5.15/06, 5.15/08, 5.16/00 5.17/02, 5.17/04,
5.17/06, 5.18/00, 5.19/02,, 5.20.00, 5.21/02 and 5.21/04
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-v08.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. However if you experience problems please let us know.
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-v08/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:
new
Support for the old style, pre-processed and static PLOTGEOM.STORE geometry file has been discontinued.
It is possible now to specify either the name of a (binary) USRBIN data file or the name of the FLUKA input file containing the geometry definition on the command line at program startup. It might take some time at startup, please be patient, the root GUI just doesn't refresh quite orderly (yet).
Color and width of the lines for the geometry overlay are now available from within the geometry tab.
still
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.
- 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.
- 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.