Home page of the FOOT simulation software
The simulation framework
The FOOT simulation is performed using the
FLUKA software package.
Running the simulation: how to
There are several steps needed to get, compile, run, access the simulation output.
Getting the code
The instructions to download the code are available in the
FOOT software page.
Compiling and running
As a prerequisite for running a simulation you need a valid installation of the FLUKA software.
You have to setup the $FLUPRO, $FLUTIL and $FLUFOR variables before compiling the code (help with the FLUKA installation phase is provided in the
FLUKA web page, FLUKA mailing lists and, if everything else failed, from the FOOT FLUKA "experts": V. Patera, G. Battistoni, A. Sarti). Once everything is installed and setup, you can proceed with the following instructions.
To compile the code you have to:
- Go in the Simulation folder.
- Source the link_FOOT_mag.sh script.
- After the code is compiled, check that you have a fluka_FOOT.exe executable created in your Simulation folder.
To run the code you have to.
- Go in the Simulation folder.
- Execute the command:
$FLUPRO/flutil/rfluka -e fluka_FOOT_mag.exe -N0 -M1 FOOT_EMFon
- The output will appear in:
Decoding the output
The output format is a dat file. To have access to a tupled file you need to convert it using a converter.
Libraries are kept under
TXT2ROOT folder.
- Compile the converter in TXT2ROOT by issuing the command:
make
- Then you can run the converter with the following command:
./Txt2Root -in ../FOOT_new001_TXT.dat -out FOOT_new001_TXT.root
This will generate the output.root file containing all the MC info needed for furher processing.
Event reconstruction
The reconstruction of the decoded MC events is accomplished using the reconstruction software
documented in the related web page.
--
Alessio Sarti - 2016-07-06
Comments