11 float calc_min(
float b1,
float b2)
19 TCanvas *c1 =
new TCanvas(
"c1",
"ps",200,10,700,500);
21 TStyle *plain =
new TStyle(
"Plain",
"Plain Style (no colors/fill areas)");
22 plain->SetTitleOffset(1.25);
23 plain->SetCanvasBorderMode(0);
24 plain->SetPadBorderMode(0);
25 plain->SetPadColor(0);
26 plain->SetCanvasColor(0);
27 plain->SetTitleColor(0);
28 plain->SetStatColor(0);
30 plain->SetOptStat(0000000);
31 plain->SetOptFit(00000000);
34 TH2F *hr =
new TH2F(
"hr",
"",10,-0.1,0.7,10,0.005,0.03);
36 hr->SetTitle(
"#sigma_{res} vs. t_{0}");
37 hr->GetYaxis()->SetTitleOffset(1.2);
38 hr->GetYaxis()->SetTitle(
"#sigma_{res}");
39 hr->GetXaxis()->SetTitleOffset(1.2);
40 hr->GetXaxis()->SetTitle(
"t_{0}");
48 Double_t t0[6] = { 0.1, 0.2,0.3,0.4,0.5,0.6};
49 Double_t resphi[6] = {0.01383,0.01184,0.009826,0.01083,0.01498,0.01891 };
50 Double_t resrad[6] = {0.01922,0.01802,0.01607,0.01665,0.02196,0.02338};
55 Double_t t0[6] = { 0, 0.1, 0.2,0.3,0.4,0.5};
56 Double_t resphi[6] = {0.0239,0.0223,0.021,0.02033,0.01999,0.02347};
57 Double_t resrad[6] = {0.021,0.0178,0.01645,0.01656,0.01895,0.0211};
64 TF1 *g=
new TF1(
"g",
"pol2",-0.1,0.7);
67 TGraph *gerad =
new TGraph(6,t0,resphi);
68 gerad->SetMarkerStyle(22);
69 gerad->SetMarkerColor(2);
70 gerad->SetMarkerSize(1);
74 cout<<
"Min phi = "<<calc_min(g->GetParameter(1),g->GetParameter(2))<<endl;
76 TGraph *gerad1 =
new TGraph(6,t0,resrad);
77 gerad1->SetMarkerStyle(23);
78 gerad1->SetMarkerColor(3);
79 gerad1->SetMarkerSize(1);
85 cout<<
"Min rad = "<<calc_min(g->GetParameter(1),g->GetParameter(2))<<endl;
87 leg =
new TLegend(0.46,0.72,0.72,0.86);
88 leg->SetTextSize(0.05);
89 leg->AddEntry(gerad,
"#sigma_{res,#phi}",
"P");
90 leg->AddEntry(gerad1,
"#sigma_{res,r}",
"P");