19 gStyle->SetLabelSize(0.06,
"x");
20 gStyle->SetLabelSize(0.06,
"y");
21 gStyle->SetFrameFillColor(38);
22 gStyle->SetTitleW(0.6);
23 gStyle->SetTitleH(0.1);
26 TString dir = gROOT->GetTutorialDir();
27 dir.Append(
"/hsimple.C");
28 dir.ReplaceAll(
"/./",
"/");
29 if (!gInterpreter->IsLoaded(dir.Data())) gInterpreter->LoadMacro(dir.Data());
30 TFile *hsimpleFile = (TFile*)gROOT->ProcessLineFast(
"hsimple(1)");
31 if (!hsimpleFile)
return;
32 TH2F *hpxpy = (TH2F*)hsimpleFile->Get(
"hpxpy");
35 TCanvas *c1 =
new TCanvas(
"c1",
"c1",700,500);
38 TPad *leftPad = (TPad*)c1->cd(1);;
43 gPad->SetTopMargin(0.12);
44 gPad->SetFillColor(33);
46 hpxpy->GetXaxis()->SetLabelSize(0.06);
47 hpxpy->GetYaxis()->SetLabelSize(0.06);
48 hpxpy->SetMarkerColor(kYellow);
51 hpxpy->FitSlicesY(0,7,32,20);
55 gPad->SetFillColor(33);
56 TH2F *hpxpy_0 = (TH2F*)hsimpleFile->Get(
"hpxpy_0");
58 TPad *rightPad = (TPad*)c1->cd(2);
59 rightPad->Divide(1,2);
61 gPad->SetTopMargin(0.12);
62 gPad->SetLeftMargin(0.15);
63 gPad->SetFillColor(33);
64 TH2F *hpxpy_1 = (TH2F*)hsimpleFile->Get(
"hpxpy_1");
69 gPad->SetTopMargin(0.12);
70 gPad->SetLeftMargin(0.15);
71 gPad->SetFillColor(33);
72 TH2F *hpxpy_2 = (TH2F*)hsimpleFile->Get(
"hpxpy_2");
73 hpxpy_2->SetMinimum(0.8);
77 hpxpy_0->SetLineColor(5);
78 hpxpy_1->SetLineColor(5);
79 hpxpy_2->SetLineColor(5);
80 hpxpy_0->SetMarkerColor(2);
81 hpxpy_1->SetMarkerColor(2);
82 hpxpy_2->SetMarkerColor(2);
83 hpxpy_0->SetMarkerStyle(21);
84 hpxpy_1->SetMarkerStyle(21);
85 hpxpy_2->SetMarkerStyle(21);
86 hpxpy_0->SetMarkerSize(0.6);
87 hpxpy_1->SetMarkerSize(0.6);
88 hpxpy_2->SetMarkerSize(0.6);