#include "TH2.h"
#include "TCanvas.h"
#include "TFile.h"
#include "TString.h"
Go to the source code of this file.
◆ make_eop_maps()
void make_eop_maps |
( |
TString |
path, |
|
|
Float_t |
range = 0.2 |
|
) |
| |
Definition at line 21 of file make_eop_maps.cxx.
24 TFile *
f =
new TFile(
path);
25 TH2D *
h1 = (TH2D*)
f->Get(
"meanPlotPos");
26 TH2D *h2 = (TH2D*)
f->Get(
"meanPlotNeg");
31 TCanvas *
c1 =
new TCanvas(
"c1",
"c1",800,600);
32 c1->SetRightMargin(0.13);
39 outhist->SetTitle(
"E/p ratio <+>/<->");
41 outhist->GetXaxis()->SetTitle(
"#eta");
42 outhist->GetXaxis()->SetTitleOffset(1);
43 outhist->GetYaxis()->SetTitle(
"#phi [rad]");
44 outhist->GetYaxis()->SetTitleOffset(.7);
45 TPaletteAxis *palette = (TPaletteAxis*)
outhist->GetListOfFunctions()->FindObject(
"palette");
46 palette->SetX1NDC(0.87);
47 palette->SetX2NDC(0.92);
48 palette->SetY1NDC(0.1);
49 palette->SetY2NDC(0.9);
53 c1->Print(
"EoverP.pdf",
"Portrait pdf");
◆ make_sagitta_maps()
void make_sagitta_maps |
( |
TString |
path, |
|
|
Float_t |
range = 0.004 |
|
) |
| |
Definition at line 58 of file make_eop_maps.cxx.
61 TFile *
f =
new TFile(
path);
62 TH2D *
outhist = (TH2D*)
f->Get(
"FinalCorrections");
65 TCanvas *
c1 =
new TCanvas(
"c1",
"c1",800,600);
66 c1->SetRightMargin(0.16);
74 outhist->SetTitle(
"Sagitta Bias");
76 outhist->GetXaxis()->SetTitle(
"#eta");
77 outhist->GetXaxis()->SetTitleOffset(1);
78 outhist->GetYaxis()->SetTitle(
"#phi [rad]");
79 outhist->GetYaxis()->SetTitleOffset(.7);
80 TPaletteAxis *palette = (TPaletteAxis*)
outhist->GetListOfFunctions()->FindObject(
"palette");
81 palette->SetX1NDC(0.84);
82 palette->SetX2NDC(0.89);
83 palette->SetY1NDC(0.1);
84 palette->SetY2NDC(0.9);
85 TGaxis::SetMaxDigits(2);
89 c1->Print(
"Sagitta.pdf",
"Portrait pdf");