1 #ifndef TRACKSPLITPLOT_H 2 #define TRACKSPLITPLOT_H 14 #include "TGraph2DErrors.h" 15 #include "TGraphErrors.h" 20 #include "TLegendEntry.h" 23 #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",
""};
89 ostream &summaryfile =
devnull);
97 ostream &summaryfile =
devnull);
106 ostream &summaryfile =
devnull);
112 ostream &summaryfile =
devnull);
113 void placeholder(TString saveas =
"", Bool_t wide =
false);
126 TString saveas =
"");
135 TString misalignment,
142 TString parametername =
"",
143 TString functionname =
"",
147 TString saveas =
"");
151 TString misalignment,
159 TString *parameternames,
160 TString functionname =
"",
164 TString saveas =
"");
168 TString misalignment,
175 TString parametername =
"",
176 TString functionname =
"",
180 TString saveas =
"");
184 TString misalignment,
192 TString *parameternames,
193 TString functionname =
"",
197 TString saveas =
"");
201 TString misalignment,
208 TString parametername =
"",
209 TString functionname =
"",
213 TString saveas =
"");
217 TString misalignment,
225 TString *parameternames,
226 TString functionname =
"",
230 TString saveas =
"");
234 TString misalignment,
241 TString parametername =
"",
242 TString functionname =
"",
246 TString saveas =
"");
250 TString misalignment,
258 TString *parameternames,
259 TString functionname =
"",
263 TString saveas =
"");
267 TString misalignment,
272 Bool_t drawfits =
true,
276 TString saveas =
"");
280 TString misalignment,
285 Bool_t drawfits =
true,
289 TString saveas =
"");
290 Bool_t
hasFit(TString misalignment,
295 Bool_t pull =
false);
304 TString misalignment,
311 TString misalignment,
320 TString misalignment,
328 TString misalignment,
338 TString misalignment,
360 TString
nPart(Int_t
part, TString
string, TString delimit =
";", Bool_t removerest =
true);
372 Bool_t pull =
false);
399 TLegend *
l, Double_t
width, Double_t height, Double_t x1min, Double_t y1min, Double_t x2max, Double_t y2max);
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)
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)
TString latexunits(TString variable, Char_t axis)
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)
const std::string names[nVars_]
TString fancyname(TString variable)
ofstream devnull("/dev/null")
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="", ostream &summaryfile=devnull)
void saveplot(TCanvas *c1, TString saveas)
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
std::vector< int > phases
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)
TString latexlabel(TString variable, Char_t axis, Bool_t relative=false, Bool_t resolution=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="")
TString plainunits(TString variable, Char_t axis)