Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View acidbourbon's full-sized avatar

Michael Wiebusch acidbourbon

View GitHub Profile
@acidbourbon
acidbourbon / Dockerfile
Last active September 3, 2019 14:21
pyROOT_with_python3_Dockerfile
#---------------------------
FROM ubuntu:18.04
USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install \
@acidbourbon
acidbourbon / invert_TGraphErrors_example.C
Last active January 22, 2018 18:08
Invert TGraphErrors/TGraph ROOT Graph, swap axes
// This function takes a ROOT TGraphErrors Object and swaps the x and y coordinates
// of the data points. This is especially useful if you want to use the TGraph/TGraphErrors built-in interpolation
// functionality. Say you have measured a calibration function to get from x values to y values. But now
// you measure new y values and want to determine the corresponding x values ...
TGraphErrors* invert_tge(TGraphErrors* orig){
TGraphErrors* tge = (TGraphErrors*) orig->Clone();
Double_t x,y,xe,ye;