5#include <TSystemDirectory.h>
21 static string ListFiles(
const char*,
const char*);
27 static int rcolor(
unsigned int);
30 static void SetRangeCanvas(TCanvas*&,
double,
double,
double = -999,
double = -999);
32 static void SplitCanvas(TCanvas*&, vector<int>, vector<int>);
35 static double*
gety(TH1F*);
37 static double*
gety(TH1F*,
int,
int);
static void SplitCanvas(TCanvas *&, vector< int >, vector< int >)
Helper to split canvas according to the number of channels to be plotted.
static void SetRangeCanvas(TCanvas *&, double, double, double=-999, double=-999)
Set consistent x-axis and y-axis range for all TH1 histograms on a canvas.
static void ShiftTH1F(TH1F *&, int=0)
Shift a histogram in x.
static int rcolor(unsigned int)
Translate a random number into a useful root color https://root.cern.ch/doc/master/classTColor....
static void PrintProgressBar(int, int)
Print progress bar for a loop in steps of 10 percent.
static double * gety(TH1F *)
Get array of y values for a histogram.
static string ListFiles(const char *, const char *)
Helper. Creates a list of .bin data files in data folder to be read in.