Analysis of High Resolution Data from CERN and DESY beam tests
Project description
HighResAnalysis
The current repository is in development and is not guaranteed to work The working version can be found https://github.com/diamondIPP/HighResAnalysis
Requirements
Installation
-
download the code
shell git clone --recurse-submodules https://github.com/diamondIPP/HighResAnalysis.git cd HighResAnalysis
-
Install python3, pip, virtualenv (requires sudo)
shell make prepare-dev
-
virtual environment and python packages (included in previous step)
shell make venv
-
required python packages are listed in requirements
-
activate virtual environment and install aliases
shell source .bash_aliases
Example analysis of the DESY data
the data need to be frist pre-converted:
>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
from HighResAnalysis.src.dut_analysis import *
from HighResAnalysis.plotting.draw import *
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
run4 = DUTAnalysis(4, 0, '201912')
--- 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
def dc(): get_last_canvas().Draw()
Let’s plot a signal distribution
run4.draw_charge_distribution()
dc()
INFO: 10:34:18 --> Creating directory: /Users/hits/Documents/GitHub/HighResAnalysis/HighResAnalysis/results/201912
INFO: 10:34:18 --> saving plot: SignalDist
WARNING: 10:34:19 --> Diamond server is not mounted in /Users/hits/mounts/high-rate
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for HighResAnalysis-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06427a1755fa25ac441a3dbf61ef1fe21cb4dc63f0d3ae46180f5c5dc48d89dc |
|
MD5 | b39dab5fa4c525b794997217a135b189 |
|
BLAKE2b-256 | 28984c1e8f8d929ba880ff737a120ac1c6ad3b15e206c14d796586832641872f |