14d3e5e0 |
1 | TFLUKA |
2 | ====== |
3 | |
4 | TFluka is the FLUKA implementation of the Virtual MC. For the time |
5 | being it uses the GEANT4 geometry through Flugg. The geometry itself |
6 | is built to the GEANT4 geometry through geant4_vmc. Please be aware |
7 | that this is still a development project and that many things might |
8 | not work as expected. Fill free to fix them or suggest improvements. |
9 | |
10 | HOW TO BUILD TFLUKA |
11 | =================== |
12 | |
13 | 0) Download (if you read this you have probably already done that) and |
14 | install the default AliRoot. |
181017bb |
15 | |
441e15fe |
16 | 1) External packages needed: |
181017bb |
17 | |
14d3e5e0 |
18 | * Download FLUKA from http://pcfluka.mi.infn.it/ and install it |
181017bb |
19 | |
14d3e5e0 |
20 | * Download geant4_vmc and install it (together with GEANT4, CLHEP, etc) |
b48c05b1 |
21 | See http://root.cern.ch/root/vmc/VirtualMC.html |
441e15fe |
22 | NOTE: All the geant4_vmc headers are assumed to be in |
b48c05b1 |
23 | $ALICE/geant4_vmc/include. To put them there execute `gmake includes` |
24 | in the geant4_vmc/source directory |
181017bb |
25 | |
14d3e5e0 |
26 | 2) Set your environment: |
181017bb |
27 | |
14d3e5e0 |
28 | * Set the path to FLUKA in the environment variable FLUPRO |
181017bb |
29 | |
14d3e5e0 |
30 | * Set your GEANT4 environment in the usual way. |
181017bb |
31 | |
441e15fe |
32 | * Make sure that your LD_LIBRARY_PATH includes the path to CLHEP, GEANT4 |
33 | and geant4_vmc libraries |
181017bb |
34 | |
441e15fe |
35 | 3) Compile TFluka and Flugg. In AliRoot do: |
36 | |
37 | * gmake all-TFluka |
38 | |
39 | * gmake all-Flugg |
40 | |
441e15fe |
41 | |
441e15fe |
42 | |
14d3e5e0 |
43 | HOW TO USE TFLUKA |
44 | ================== |
45 | |
46 | An small script ($ALICE_ROOT/TFluka/scripts/runalifluka.csh) is |
47 | provided that handles the creation of temporary files that FLUKA |
48 | expects as input. A ROOT macro loads all the needed libraries. Then, |
49 | one should proceed as in any other implementation of the Virtual MC. |
50 | So: |
51 | |
52 | 1) Execute the $ALICE_ROOT/TFluka/scripts/runalifluka.csh |
53 | |
54 | 2) [root] .x $ALICE_ROOT/TFluka/macro/loadlibs.C |
55 | |
56 | 3) [root] gAlice->RunMC(); |
57 | |
441e15fe |
58 | |
14d3e5e0 |
59 | This will run 50 particles from TGenerator. |
181017bb |
60 | |
14d3e5e0 |
61 | NOTE: FLUKA uses and external input file to define the materials and |
62 | to assign them to a given region (volume). Whenever you run AliRoot |
63 | with TFluka a temporary directory ('tmp') will be created with, among |
64 | others, a file call flukaMat.inp. The contents of this file should be |
65 | included into $ALICE_ROOT/TFluka/input/alice.inp just after the GEOEND |
66 | card. Then rerun AliRoot with TFluka, since only now the results can |
67 | be meaningful. Please be aware that NEON and SCANDIUM are not |
68 | supported for low energy neutrons and therefore special tricks might be |
69 | needed to run TFluka with them. Also PHOSPHOR should be renamed to |
70 | PHOSPHO. For this last two cases contact A. Fasso on how to solve the |
71 | problem. |
181017bb |
72 | |
14d3e5e0 |
73 | LIST OF DEVELOPERS AND CONTRIBUTORS |
74 | =================================== |
75 | F. Carminati |
76 | A. Fasso |
77 | E. Futto |
78 | I. Gonzalez Caballero |
79 | I. Hrivnacova |
80 | A. Morsch |