705 views
# GDR-InF lectures on common analysis techniques in flavour physics Some hands-on exercices complement the lectures. They will be available as Jupyter notebooks attached to the indico agenda. These notebooks can be run locally or in [Google Colab](https://colab.google/). Running locally is the preferred option ## Setup to run the notebooks locally To run the notebooks locally you need to install [ROOT](https://root.cern/), the easiest way is with [miniforge](https://github.com/conda-forge/miniforge): ### Install ROOT (do be done once) Install miniforge ```bash wget -O miniforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" bash miniforge.sh -b -p $HOME/miniforge rm miniforge.sh source $HOME/miniforge/bin/activate ``` Create a new environment with ROOT and a few other useful python packages ```bash mamba create -y -n r root=6.28.04 source activate r mamba install -y seaborn uncertainties jupyterlab scikit-hep xgboost ``` #### MacOS specific instructions (optional) In some versions of macOS, you may encounter an error of this type: `dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib` when trying to isntall `miniforge`. In this case, you can follow the following instructions (taken from [here](https://stackoverflow.com/questions/59006602/dyld-library-not-loaded-usr-local-opt-openssl-lib-libssl-1-0-0-dylib)): First, install `openssl@1.0` ```bash brew install rbenv/tap/openssl@1.0 ``` Depending on your exact system configuration, you may need to switch to a different version. Check the output of `ls -al /usr/local/Cellar/openssl` for the version number to switch to. Then ```bash ln -sfn /usr/local/Cellar/openssl@1.0/<version> /usr/local/opt/openssl ``` ### Download the data and MC ntuples needed fot the exercices - data: https://indico.in2p3.fr/event/30337/attachments/80787/118779/data.root - mc: https://indico.in2p3.fr/event/30337/attachments/80787/118780/mc.root ### Setup the environment (to be done each time) ```bash source $HOME/miniforge/bin/activate source activate r ``` ## Setup to run the notebooks in Google Colab - Go to https://drive.google.com/ - Log in with your Google account (needed) - Click on this link: https://drive.google.com/file/d/1phDyNeE9yaXDPl9HyXOxBx8ELhYXeObw/view?usp=sharing (data ntuple) - Click on "Add shortcut in Drive" (top right, there is a triangle icon with a + sign) - Select "My Drive" and click on "Add shortcut" - Repeat with this link: https://drive.google.com/file/d/1cb77rxZNg2y0fHchXyMXvx8o_lfYZZSj/view?usp=sharing (MC ntuple)