Analysis scripts for the (Fast) eEDM project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
V.R. Marshall 74def4f20b Adding power measurements 1 year ago
APD First commit, including APD analysis 1 year ago
Experiments Adding power measurements 1 year ago
.gitignore First commit, including APD analysis 1 year ago
README.md First commit, including APD analysis 1 year 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.

  1. Download your desired release on https://root.cern.ch/releases. Binary distributions are packaged as a tarball (.tar.gz)

  2. Open a terminal and unpack files:

    cd <your download directory>
    sudo tar -xf <your tarball> -C /usr/local/share
    
  3. 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
    
  4. Save the file

  5. Verify your ROOT installation by opening a terminal and typing root

  1. Download the ROOT source code

    cd /usr/local/share
    sudo git clone http://github.com/root-project/root.git
    
  2. Choose your desired version (in this case 6.18)

    cd root
    git checkout -b v6-18-00 v6-18-00
    
  3. Rename directory and create a build directory

    sudo mv /usr/local/share/root /usr/local/share/root-src
    sudo mkdir /usr/local/share/root
    
  4. 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 .
    
  5. 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
    
  6. Save the file