FAIRroot: Difference between revisions

From LWP-Wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Configuration of FAIRroot ==
[[Category:software-faq]]
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.
== 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:
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.
* 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.
* 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.
* 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.
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/Jan/macro/''' (if you entered “Jan” as project name during installation, otherwise your directory has a different name). Run the command:
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'''
   '''root -l -q run_sim.C'''
After this finished successfully, run the command:
After this finished successfully, run the command:
   '''root -l eventdisplay.C'''
   '''root -l eventDisplay.C'''
If everything works, a nice window with a coloured 3D plot should appear.
If everything works, a nice window with a coloured 3D plot should appear.

Latest revision as of 11:32, 11 March 2016

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.