|
2 years ago | |
---|---|---|
APD | 2 years ago | |
Experiments | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago |
README.md
Analysis
This is a folder for exchange of analysis scripts. Feel free to add subfolders for different topics or projects to keep this structured and easy to find relevant scripts back. Scripts that are on this server can save others as well as yourself a lot of time, please try to keep them therefore as readable as possible. It is goop practise and saves you trouble with resolving conflicts to commit your changes to the server, remember:
To get started
git clone https://git.web.rug.nl/NL-eEDM/Analysis.git
To upload your new version
git add .
git commit -m <Description of what has changed>
git push
To download the latest version
git pull
Note that this is not the way to share data, as datafiles are in general larger and not all relevant to people that want to use these analysis scripts, these will therefore not be uploaded to the server (.eve, .root). Feel free to store them in your local copy of the Analysis folder however, no-one should even be able to find out. The same holds for results like graphs that you have produced (.pdf, .png, .jpg). If you notice files are uploaded you did not intend, please notify the gitpage administrator for help or edit the .gitignore file that contains files that are filtered.
ROOT
Many of these analysis scripts use ROOT. If you have not installed ROOT yet, this is a guide on how it van be done.
It can be build from source or copied from a binary distribution. A binary distribution is already built and saves compilation time. If your Linux disribution has a binary distribution available, we recommend to opt for option a binary distribution. You can check this by looking up your desired release on https://root.cern.ch/releases. Be aware that option building from source can take up to 3 hours depending on your system.
From binary distribution (Recommended)
-
Download your desired release on https://root.cern.ch/releases. Binary distributions are packaged as a tarball (.tar.gz)
-
Open a terminal and unpack files:
cd <your download directory> sudo tar -xf <your tarball> -C /usr/local/share
-
Set the environment variables
source /usr/local/share/root/bin/thisroot.sh gedit ~/.bashrc
Append the following lines
export ROOTSYS=/usr/local/share/root export PATH=$ROOTSYS/bin:$PATH export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
-
Save the file
-
Verify your ROOT installation by opening a terminal and typing
root
From source (Not recommended)
-
Download the ROOT source code
cd /usr/local/share sudo git clone http://github.com/root-project/root.git
-
Choose your desired version (in this case 6.18)
cd root git checkout -b v6-18-00 v6-18-00
-
Rename directory and create a build directory
sudo mv /usr/local/share/root /usr/local/share/root-src sudo mkdir /usr/local/share/root
-
Build from source (this step can take a long time)
cd /usr/local/share/root sudo cmake /usr/local/share/root-src sudo cmake --build .
-
After completing the building process, set environment variables
source /usr/local/share/root/bin/thisroot.sh gedit ~/.bashrc
Append the following lines:
export ROOTSYS=/usr/local/share/root export PATH=$ROOTSYS/bin:$PATH export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
-
Save the file