void Padres_row16_20190921_merged() { //=========Macro generated from canvas: c1/ //========= (Mon Sep 23 02:11:25 2019) by ROOT version 6.13/02 TCanvas *c1 = new TCanvas("c1", "",268,234,625,500); c1->Range(-121.5421,-0.3123288,576.2321,1.635616); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetGridx(); c1->SetGridy(); c1->SetLeftMargin(0.1741855); c1->SetRightMargin(0.03759398); c1->SetTopMargin(0.06962025); c1->SetBottomMargin(0.1603376); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t Graph0_fx1001[14] = { 30.2, 55.2, 80.2, 105.2, 130.2, 155.2, 205.2, 255.2, 305.2, 355.2, 405.2, 455.2, 505.2, 555.2}; Double_t Graph0_fy1001[14] = { 0.2804405, 0.294605, 0.3143195, 0.3287027, 0.3436807, 0.3628712, 0.3986917, 0.436884, 0.4733962, 0.5137641, 0.5564529, 0.6012643, 0.6426897, 0.6846068}; Double_t Graph0_fex1001[14] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; Double_t Graph0_fey1001[14] = { 0.0004095091, 0.0004016494, 0.0004558756, 0.0005025907, 0.0005433921, 0.0006236724, 0.0007509505, 0.0008639401, 0.001009799, 0.001217051, 0.001393339, 0.001590305, 0.001807048, 0.00210148}; TGraphErrors *gre = new TGraphErrors(14,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001); gre->SetName("Graph0"); gre->SetTitle("Pad Response (Module3 Row16)"); gre->SetFillStyle(1000); gre->SetMarkerColor(2); gre->SetMarkerStyle(21); TH1F *Graph_Graph_Graph010011001 = new TH1F("Graph_Graph_Graph010011001","Pad Response (Module3 Row16)",100,0,550); Graph_Graph_Graph010011001->SetMinimum(0); Graph_Graph_Graph010011001->SetMaximum(1.5); Graph_Graph_Graph010011001->SetDirectory(0); Graph_Graph_Graph010011001->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); Graph_Graph_Graph010011001->SetLineColor(ci); Graph_Graph_Graph010011001->GetXaxis()->SetTitle("Drift Length: z [mm]"); Graph_Graph_Graph010011001->GetXaxis()->SetLabelFont(22); Graph_Graph_Graph010011001->GetXaxis()->SetLabelSize(0.05); Graph_Graph_Graph010011001->GetXaxis()->SetTitleSize(0.07); Graph_Graph_Graph010011001->GetXaxis()->SetTitleFont(22); Graph_Graph_Graph010011001->GetYaxis()->SetTitle("#sigma_{PR}^{2} [mm^{2}]"); Graph_Graph_Graph010011001->GetYaxis()->SetLabelFont(22); Graph_Graph_Graph010011001->GetYaxis()->SetLabelSize(0.05); Graph_Graph_Graph010011001->GetYaxis()->SetTitleSize(0.07); Graph_Graph_Graph010011001->GetYaxis()->SetTitleOffset(0.69); Graph_Graph_Graph010011001->GetYaxis()->SetTitleFont(22); Graph_Graph_Graph010011001->GetZaxis()->SetLabelFont(42); Graph_Graph_Graph010011001->GetZaxis()->SetLabelSize(0.05); Graph_Graph_Graph010011001->GetZaxis()->SetTitleSize(0.07); Graph_Graph_Graph010011001->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph_Graph010011001); TF1 *fun1002 = new TF1("fun","[0]**2+[1]**2*x",200,550, TF1::EAddToList::kNo); fun1002->SetFillColor(19); fun1002->SetFillStyle(0); fun1002->SetLineColor(2); fun1002->SetLineWidth(2); fun1002->SetLineStyle(2); fun1002->SetChisquare(27.02836); fun1002->SetNDF(5); fun1002->GetXaxis()->SetLabelFont(42); fun1002->GetXaxis()->SetLabelSize(0.035); fun1002->GetXaxis()->SetTitleSize(0.035); fun1002->GetXaxis()->SetTitleFont(42); fun1002->GetYaxis()->SetLabelFont(42); fun1002->GetYaxis()->SetLabelSize(0.035); fun1002->GetYaxis()->SetTitleSize(0.035); fun1002->GetYaxis()->SetTitleOffset(0); fun1002->GetYaxis()->SetTitleFont(42); fun1002->SetParameter(0,0.4798158); fun1002->SetParError(0,0.001947563); fun1002->SetParLimits(0,0,0); fun1002->SetParameter(1,0.02843318); fun1002->SetParError(1,9.93581e-05); fun1002->SetParLimits(1,0,0); fun1002->SetParent(gre); gre->GetListOfFunctions()->Add(fun1002); gre->Draw("ap"); Double_t Graph0_fx1003[14] = { 31.1, 56.1, 81.1, 106.1, 131.1, 156.1, 206.1, 256.1, 306.1, 356.1, 406.1, 456.1, 506.1, 556.1}; Double_t Graph0_fy1003[14] = { 0.2770874, 0.295599, 0.3122717, 0.3325935, 0.3456454, 0.3651944, 0.4054309, 0.441763, 0.4880468, 0.5339308, 0.5793159, 0.6214306, 0.6620659, 0.706989}; Double_t Graph0_fex1003[14] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; Double_t Graph0_fey1003[14] = { 0.0003696265, 0.0004200895, 0.0004447372, 0.000519072, 0.0005250005, 0.0006141253, 0.0007518202, 0.0008760954, 0.001051095, 0.001181275, 0.001428369, 0.001607368, 0.001760089, 0.001999298}; gre = new TGraphErrors(14,Graph0_fx1003,Graph0_fy1003,Graph0_fex1003,Graph0_fey1003); gre->SetName("Graph0"); gre->SetTitle("Pad Response (Module3 Row16)"); gre->SetFillStyle(1000); gre->SetMarkerStyle(22); TH1F *Graph_Graph01003 = new TH1F("Graph_Graph01003","Pad Response (Module3 Row16)",100,0,609.8); Graph_Graph01003->SetMinimum(0.2334907); Graph_Graph01003->SetMaximum(0.7522154); Graph_Graph01003->SetDirectory(0); Graph_Graph01003->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph01003->SetLineColor(ci); Graph_Graph01003->GetXaxis()->SetLabelFont(42); Graph_Graph01003->GetXaxis()->SetLabelSize(0.035); Graph_Graph01003->GetXaxis()->SetTitleSize(0.035); Graph_Graph01003->GetXaxis()->SetTitleFont(42); Graph_Graph01003->GetYaxis()->SetLabelFont(42); Graph_Graph01003->GetYaxis()->SetLabelSize(0.035); Graph_Graph01003->GetYaxis()->SetTitleSize(0.035); Graph_Graph01003->GetYaxis()->SetTitleOffset(0); Graph_Graph01003->GetYaxis()->SetTitleFont(42); Graph_Graph01003->GetZaxis()->SetLabelFont(42); Graph_Graph01003->GetZaxis()->SetLabelSize(0.035); Graph_Graph01003->GetZaxis()->SetTitleSize(0.035); Graph_Graph01003->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph01003); TF1 *fun1004 = new TF1("fun","[0]**2+[1]**2*x",200,550, TF1::EAddToList::kNo); fun1004->SetFillColor(19); fun1004->SetFillStyle(0); fun1004->SetLineWidth(2); fun1004->SetLineStyle(2); fun1004->SetChisquare(23.73151); fun1004->SetNDF(5); fun1004->GetXaxis()->SetLabelFont(42); fun1004->GetXaxis()->SetLabelSize(0.035); fun1004->GetXaxis()->SetTitleSize(0.035); fun1004->GetXaxis()->SetTitleFont(42); fun1004->GetYaxis()->SetLabelFont(42); fun1004->GetYaxis()->SetLabelSize(0.035); fun1004->GetYaxis()->SetTitleSize(0.035); fun1004->GetYaxis()->SetTitleOffset(0); fun1004->GetYaxis()->SetTitleFont(42); fun1004->SetParameter(0,0.4720316); fun1004->SetParError(0,0.002038458); fun1004->SetParLimits(0,0,0); fun1004->SetParameter(1,0.02951824); fun1004->SetParError(1,9.75315e-05); fun1004->SetParLimits(1,0,0); fun1004->SetParent(gre); gre->GetListOfFunctions()->Add(fun1004); gre->Draw("p, "); TPaveText *pt = new TPaveText(311.2878,0.04931506,536.0095,0.3780822,"br"); pt->SetTextAlign(12); pt->SetTextColor(2); pt->SetTextFont(132); TText *pt_LaTex = pt->AddText("#chi^{2}/ndf = 27/5"); pt_LaTex = pt->AddText("#sigma_{PR}(0) = 479.8 #pm 1.9 [#mum]"); pt_LaTex = pt->AddText("C_{D} = 89.91 #pm 0.31 [#mum/#sqrt{cm}]"); pt->Draw(); TLatex * tex = new TLatex(50,0.75,"#sigma_{PR}^{2} = #sigma_{PR}(0)^{2}+(C_{D}^{2}) z"); tex->SetTextAlign(12); tex->SetTextFont(132); tex->SetLineWidth(2); tex->Draw(); pt = new TPaveText(0.258797,0.9342405,0.741203,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(22); pt_LaTex = pt->AddText("Pad Response (Module3 Row16)"); pt->Draw(); pt = new TPaveText(309.5389,1.113699,538.6327,1.450685,"br"); pt->SetTextAlign(12); pt->SetTextFont(132); pt_LaTex = pt->AddText("#chi^{2}/ndf = 23.7/5"); pt_LaTex = pt->AddText("#sigma_{PR}(0) = 472 #pm 2 [#mum]"); pt_LaTex = pt->AddText("C_{D} = 93.34 #pm 0.31 [#mum/#sqrt{cm}]"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }