-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeThesePlots.C
73 lines (61 loc) · 2.75 KB
/
makeThesePlots.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#include "-----directory of track splitting code-----/makePlots.C"
const int nFiles = -----number of files-----;
TString files[nFiles] = {
"root://eoscms//eos/cms/store/caf/user/$USER/AlignmentValidation/-----validation name-----/TrackSplitting_-----split name-----_-----alignment name-----.root",
"root://eoscms//eos/cms/store/caf/user/$USER/AlignmentValidation/-----validation name-----/TrackSplitting_-----split name-----_-----alignment name-----.root",
...
};
TString names[nFiles] = {
"-----name1-----",
"-----name2-----", //these are used in the legend
...
};
TString plotdirectory = "-----directory to save plots-----";
/*******************************
To make ALL plots (313 in total)
*******************************/
void makeThesePlots()
{
makePlots(nFiles,files,names,"",0,0,plotdirectory);
}
/**************************************************************************
to make all plots involving a single x or y variable, or both
xvar = "nHits", yvar = "ptrel" - makes plots of nHits vs Delta_pt/pt_org
(4 total - profile and resolution,
of Delta_pt/pt_org and its pull
distribution)
xvar = "all", yvar = "pt" - makes all plots involving Delta_pt
(not Delta_pt/pt_org)
(38 plots total:
histogram and pull distribution, and
their mean and width as a function
of the 9 x variables)
xvar = "", yvar = "all" - makes all histograms of all y variables
(including Delta_pt/pt_org)
(16 plots total - 8 y variables,
regular and pull histograms)
**************************************************************************/
void makeThesePlots(TString xvar,TString yvar)
{
makePlots(nFiles,files,names,"",0,0,plotdirectory,xvar,yvar);
}
/*************************************************************************************
To make a custom selection of plots
The matrix should look like this - use true to make that plot, and false not to make it.
y var pt rel pt eta phi dz dxy theta q/pt (hist)
x var +---------------------------------------------------------------------------
pt |
eta |
phi |
dz |
dxy |
theta |
q/pt |
run # |
nHits |
(hist) |
*************************************************************************************/
void makeThesePlots(Bool_t matrix[xsize][ysize])
{
makePlots(nFiles,files,names,"",0,0,plotdirectory,matrix);
}