FAIRroot: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
'''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 | '''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. |
Revision as of 11:12, 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/Jan/macro/ (if you entered “Jan” 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.