This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------- | |
FROM ubuntu:18.04 | |
USER root | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && \ | |
apt-get -y install \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |