FlukaGUI about -------------------------------------------------------- UPDATED===03.11.2008 TITLE===FlukaGUI, inspect USRBIN output and FLUKA geometries TYPE===subpage --------------------------------------------------------

FlukaGUI is a tool to inspect standard FLUKA output generated by making use of the USRBIN option in a user friendly way. Alternatively, one is able to view/graph the implemented geometry through 'the eyes of FLUKA'. All this is realized within the root framework. A FLUKA/root specific class is provided to attach and manipulate the binary USRBIN output.

Rather simple, detailed instruction are given below in case root needs to be installed.


install FLUKA
install root
install flukaGUI
execute flukaGUI
notes


download current version: aFlukaGUI-v08.tgz (b)
contact: anton.empl@cern.ch


FlukaGUI

enlarge the screen shoot



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/.

   $ pwd
   /home/user
   $ mkdir myFluka
   $ cd myFluka

... copy the compressed tar file containing the FLUKA package into this directory ...

   $ tar -zvxf ....-linuxAA.tar.gz
   $ setenv FLUPRO /home/user/myFluka    ----- if using csh/tcsh
   $ export FLUPRO=/home/user/myFluka    ----- if using sh/bash

Here ....- is fluka2008.3- as of this writing (respin 2). The current version of flukaGUI does support FLUKA release 2006.3 also. You probably want to implement the last step of setting up the environment variable within your login procedure in order to make it permanent.


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/.

   $ pwd
   /home/user
   $ mkdir myRoot
   $ cd myRoot

... copy the compressed tar file containing the root package into this directory ...

   $ tar -zvxf ....Linux....tar.gz
   $ setenv ROOTSYS /home/user/myRoot/root    ----- if using csh/tcsh
   $ export ROOTSYS=/home/user/myRoot/root    ----- if using sh/bash

As mentioned above, you probably also want to add the last step to your login procedure.


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.

   $ pwd
   /home/user
   $ tar -zxf aFlukaGUI-v08.tgz

... this will create a new directory called aFlukaGUI-v08 ...

   $ cd aFlukaGUI-v08
   $ ./configure
   $ make

If FLUKA and root are setup properly, following the above steps should succeed in building the flukaGUI executable in the src/ directory (still a few compiler WARNINGS seem to be issued at least running under Debian using the binary root package which can be ignored).
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:

   $ ./src/flukaGUI

You should be presented with a graphical user interface, a window which permits to inspect and manipulate information/data obtained by running FLUKA with the USRBIN option. Several examples are available for both data and geometry input in the directory examples/. Try to load hello.inp and/or hello.dat for a start.

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:

   $ mv rootrc .rootrc

Hopefully most of the features of the application are fairly obvious, some are still under development. At this point the user can save a script file in context of histogram manipulations (look under the FILE menu button) which in turn can be read in again or executed from within root. The geometry input is not supported from an interactive root session. The script is an excellent starting point if one wants to automate histogram production or learn how to use the USRBIN related data classes within root.

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

   $ ./configure
   $ make

One should also rerun configure with no arguments if the directory containing flukaGUI is moved or renamed within the filesystem.

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.