FAIRroot

From LWP-Wiki
Jump to: navigation, search

Configuration of FairRoot

Running the command root-setup fair will configure your system to use FairRoot. Notice that it is not required to configure your system for FairRoot if you actually want your system to be configured for R3BRoot, PandaRoot or CBMRoot. If you need one of these, simply follow the instructions for that environment. The required components of FairRoot will be configured automatically as well. These instructions are only meant for you if you want to use FairRoot as a stand-alone version.

Because FairRoot does some customization on the project template for you, the script will need some additional input:

  • First it will need a project name. Your own name will do, just make sure you start with a Capital letter and you do not use white spaces.
  • Then a class prefix is required. Your own initials will do, but you can enter anything you want. Just keep it short.
  • Finally, a detector name is required. The default detector is stt, so if you are not sure what you need, just enter this.

After entering these three things, FairRoot is compiled for you. This takes a little time, so just wait. Your compiled version of FairRoot, together with all the macros of your FairRoot project are automatically added to the directory /home/p123456/fair_install/FairRoot/. If it does not exist, it is created automatically. Your .bashrc file is also created-adapted automatically, so after re-opening your terminal, your FairRoot environment variables will have automatically been set. If you don't want to re-open your terminal run the source command given at the end of set-up.

To test your FairRoot, go to the directory /home/p123456/fair_install/FairRoot/Tostie/macro/ (if you entered “Tostie” as project name during installation, otherwise your directory has a different name). Run the command:

 root -l -q run_sim.C

After this finished successfully, run the command:

 root -l eventDisplay.C

If everything works, a nice window with a coloured 3D plot should appear.