from HighResAnalysis.src.dut_analysis import *
from HighResAnalysis.plotting.draw import *
Welcome to JupyROOT 6.28/00
If you do not yet have conda
install then getting Mambaforge is the recommended way to get mamba
. Bellow are the instructions for Linux. If your are using a different system, then follow the instruction on mamba install page
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh"
bash Mambaforge-Linux-x86_64.sh
root. In the root installation instructions you need to replace conda
with mamba
and skip the instructions about the environment, since the Mambaforge
already created the default base
environment.
mamba config --set channel_priority strict
mamba install root
mamba install -c conda-forge root
mamba install scikit-learn numpy pandas pyarrow openpyxl xlrd pytables requests sqlalchemy jupyterlab jupyternotebook ipython notebook
mamba install -c fastai nbdev
pip install HighResAnalysys
mkdir software
cd software
git clone git@github.com:diamondIPP/DRS4-v5-shared.git
git clone git@github.com:diamondIPP/pxar.git
git clone git@github.com:diamondIPP/proteus.git
git clone git@github.com:diamondIPP/judith.git
git clone git@github.com:diamondIPP/HVClient.git
git clone git@github.com:diamondIPP/eudaq-2.git
git clone git@github.com:diamondIPP/setup-analysis.git HighResAnalysis
cd HighResAnalysis/
cmake
the path to it. make libDRS.so
libusb-1.0
which you can install with apt install libusb-1.0-0-dev
on Ubuntu curl -L -O "https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-x86_64-1.4.27.tgz"
tar xvf libftd2xx-x86_64-1.4.27.tgz
sudo cp release/build/lib* /usr/local/lib
sudo ln -sf /usr/local/lib/libftd2xx.so.1.4.27 /usr/local/lib/libftd2xx.so
sudo cp WinTypes.h ftd2xx.h /usr/local/include/
pxar
and DRS4-v5-shared
libraries you will need to set couple of shell variable to help the eudaq-2
find them: export PXARPATH="/home/dmitry/software/pxar/"
export DRS_PATH="/home/dmitry/software/DRS4-v5-shared/"
git clone git@github.com:diamondIPP/setup-analysis.git HighResAnalysis
.bashrc
export ANALYSIS_DIR="/home/username/HighResAnalysis"
/home/ipp
groupshare to access them it is useful to generate shh keys and copy them to login.phys.ethz.ch ssh-keygen
ssh-copy-id username@login.phys.ethz.ch
kinit -f username@CERN.CH
analyse --run=4
you will need to import a couple of libraries. Most of the tools are in src.dut_analysis
. It will load the data and set all the cuts. The draw
module from plotting library has some useful functions and presets that allow plotting histograms and graphs
Welcome to JupyROOT 6.28/00
Initialize the DUTAnalysis with run number, DUT number, and a string indicating the year and the month of the beam test
--- Palette ------ 55
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
STARTING DUT ANALYSIS of D02, run 4 (Dec 2019), 2.50M ev |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
************** Initing Converter *****************
*************** Initing PROTEUS ******************
A small function that allows inline plotting of ROOT histograms
Let’s plot a signal distribution
There are three beam tests with high resolution data:
client_secret.json
file which is stored on ipp group share
in ~/HighResAnalysis/
runlog.json
file with HighResAnalysis/src/spreadsheet.py: make_runlog <YYYYMM>