1 #ifndef TRACKSPLITPLOT_H
2 #define TRACKSPLITPLOT_H
12 #include "TGraph2DErrors.h"
13 #include "TGraphErrors.h"
18 #include "TLegendEntry.h"
21 #include "TMultiGraph.h"
48 TString
xvariables[
xsize] = {
"",
"pt",
"eta",
"phi",
"dz",
"dxy",
"theta",
"qoverpt"};
49 TString
yvariables[
ysize] = {
"pt",
"pt",
"eta",
"phi",
"dz",
"dxy",
"theta",
"qoverpt",
""};
78 Bool_t
relative =
false,Bool_t pull =
false,TString saveas =
"");
83 Bool_t
relative =
false,Bool_t pull =
false,
85 void placeholder(TString saveas =
"",Bool_t wide =
false);
98 Int_t
nFiles,TString *
names,TString misalignment,Double_t *
values,Double_t *phases,TString xvar,TString yvar,
99 TF1 *
function,Int_t
parameter,TString parametername =
"",TString functionname =
"",
101 TString saveas =
"");
103 Int_t
nFiles,TString *
names,TString misalignment,Double_t *
values,Double_t *phases,TString xvar,TString yvar,
104 TF1 *
function,Int_t nParameters,Int_t *
parameters,TString *parameternames,TString functionname =
"",
106 TString saveas =
"");
108 TF1 *
function,Int_t
parameter,TString parametername =
"",TString functionname =
"",
110 TString saveas =
"");
112 TF1 *
function,Int_t nParameters,Int_t *
parameters,TString *parameternames,TString functionname =
"",
114 TString saveas =
"");
116 Int_t
nFiles,TString *
names,TString misalignment,Double_t *
values,Double_t *phases,TString xvar,TString yvar,
117 TString
function,Int_t
parameter,TString parametername =
"",TString functionname =
"",
119 TString saveas =
"");
121 Int_t
nFiles,TString *
names,TString misalignment,Double_t *
values,Double_t *phases,TString xvar,TString yvar,
122 TString
function,Int_t nParameters,Int_t *
parameters,TString *parameternames,TString functionname =
"",
124 TString saveas =
"");
126 TString
function,Int_t
parameter,TString parametername =
"",TString functionname =
"",
128 TString saveas =
"");
130 TString
function,Int_t nParameters,Int_t *
parameters,TString *parameternames,TString functionname =
"",
132 TString saveas =
"");
134 Int_t
nFiles,TString *
names,TString misalignment,Double_t *
values,Double_t *phases,TString xvar,TString yvar,
135 Bool_t drawfits =
true,
137 TString saveas =
"");
139 Bool_t drawfits =
true,
141 TString saveas =
"");
142 Bool_t
hasFit(TString misalignment,TString xvar,TString yvar,Bool_t
relative =
false,Bool_t
resolution =
false,Bool_t pull =
false);
156 TString xvar,TString yvar);
168 TString
units(TString variable,Char_t axis);
172 TString
nPart(Int_t
part,TString
string,TString delimit =
";",Bool_t removerest =
true);
194 Double_t
placeLegend(TLegend *
l, Double_t
width, Double_t height, Double_t x1min, Double_t y1min, Double_t x2max, Double_t y2max);
195 Bool_t
fitsHere(TLegend *
l,Double_t x1, Double_t y1, Double_t x2, Double_t y2);
TString yvariables[ysize]
TString xvariables[xsize]
Double_t findStatistic(Statistic what, Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
static const HistoName names[]
void axislimits(Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative, Bool_t pull, Double_t &min, Double_t &max, Double_t &bins)
Double_t findRMS(Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
void deleteCanvas(TObject *canvas)
TString fancyname(TString variable)
void setAxisLabels(TH1 *p, PlotType type, TString xvar, TString yvar, Bool_t relative, Bool_t pull)
void placeholder(TString saveas="", Bool_t wide=false)
void runNumberZoomed(Int_t nFiles, TString *files, TString *names, TString yvar, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, Int_t firstRun=-1, Int_t lastRun=-1, TString saveas="")
TCanvas * trackSplitPlot(Int_t nFiles, TString *files, TString *names, TString xvar, TString yvar, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")
void saveplot(TCanvas *c1, TString saveas)
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
Double_t findMin(Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
Bool_t hasFit(TString misalignment, TString xvar, TString yvar, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false)
TString units(TString variable, Char_t axis)
Bool_t relativearray[ysize]
Bool_t fitsHere(TLegend *l, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Double_t placeLegend(TLegend *l, Double_t width, Double_t height, Double_t x1min, Double_t y1min, Double_t x2max, Double_t y2max)
Double_t findMax(Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
void makePlots(Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString directory, Bool_t matrix[xsize][ysize])
TString axislabel(TString variable, Char_t axis, Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false)
Double_t findAverage(Int_t nFiles, TString *files, TString var, Char_t axis, Bool_t relative=false, Bool_t pull=false)
void misalignmentDependence(TCanvas *c1old, Int_t nFiles, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString xvar, TString yvar, TF1 *function, Int_t parameter, TString parametername="", TString functionname="", Bool_t relative=false, Bool_t resolution=false, Bool_t pull=false, TString saveas="")