-
Notifications
You must be signed in to change notification settings - Fork 0
/
corrHistogramMaker.h
54 lines (34 loc) · 1.36 KB
/
corrHistogramMaker.h
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
//-------------------------------------------Functions------------------------------------------------------------------//
void formatCorrHist(TH2D* hist) {
hist->GetXaxis()->SetTitle("#Delta#eta");
hist->GetYaxis()->SetTitle("#Delta#phi");
hist->GetXaxis()->CenterTitle();
hist->GetYaxis()->CenterTitle();
//hist->GetXaxis()->SetFontSize();
//hist->GetYaxis()->CenterTitle();
hist->GetZaxis()->SetTitle("#frac{#Delta#rho}{#rho_{ref}}");
hist->GetXaxis()->SetTitleSize(.065);
hist->GetYaxis()->SetTitleSize(.065);
hist->GetZaxis()->SetTitleSize(.03);
hist->GetXaxis()->SetTitleOffset(1.5);
hist->GetYaxis()->SetTitleOffset(1.5);
hist->GetZaxis()->SetTitleOffset(1.62);
return;
}
void formatCorrHist(TH1D* hist) {
hist->GetXaxis()->SetTitle("#Delta#phi");
hist->GetXaxis()->SetTitleOffset(1.3);
return;
}
void formatCorrHist(TH2D* hist, TString title) {
hist->GetXaxis()->SetTitle("#Delta#eta");
hist->GetYaxis()->SetTitle("#Delta#phi");
hist->GetXaxis()->SetTitleOffset(1.3);
hist->GetYaxis()->SetTitleOffset(1.3);
hist->GetXaxis()->SetTitle("#Delta#eta");
hist->GetYaxis()->SetTitle("#Delta#phi");
hist->GetXaxis()->SetTitleOffset(1.3);
hist->GetYaxis()->SetTitleOffset(1.3);
hist->SetNameTitle(title, title);
return;
}