void GMResol_merged_20190831() { //=========Macro generated from canvas: c1/ //========= (Sat Aug 31 11:24:22 2019) by ROOT version 6.13/02 TCanvas *c1 = new TCanvas("c1", "",251,77,800,502); c1->Range(-142.4242,-0.08176796,663.6364,0.441989); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetGridx(); c1->SetGridy(); c1->SetLeftMargin(0.1766917); c1->SetRightMargin(0.07894737); c1->SetTopMargin(0.08016878); c1->SetBottomMargin(0.1561181); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); Double_t Graph0_fx1001[15] = { 17.7, 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[15] = { 0.09221624, 0.08764142, 0.08278038, 0.08293071, 0.08323353, 0.08786136, 0.09255653, 0.09989313, 0.1081994, 0.1139619, 0.1235664, 0.128368, 0.1360393, 0.1425697, 0.1471462}; Double_t Graph0_fex1001[15] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1001[15] = { 0.0008533595, 0.0007306544, 0.0007209166, 0.0007633861, 0.00076401, 0.0008096926, 0.0008589272, 0.0008888058, 0.001020103, 0.001073919, 0.00114462, 0.001154394, 0.001280088, 0.001415274, 0.001418276}; TGraphErrors *gre = new TGraphErrors(15,Graph0_fx1001,Graph0_fy1001,Graph0_fex1001,Graph0_fey1001); gre->SetName("Graph0"); gre->SetTitle("GM Resolutin (Module3 Row16)"); gre->SetFillStyle(1000); gre->SetMarkerColor(2); gre->SetMarkerStyle(21); TH1F *Graph_Graph_Graph010011001 = new TH1F("Graph_Graph_Graph010011001","GM Resolutin (Module3 Row16)",100,0,600); Graph_Graph_Graph010011001->SetMinimum(0); Graph_Graph_Graph010011001->SetMaximum(0.4); 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.07); Graph_Graph_Graph010011001->GetXaxis()->SetTitleSize(0.07); Graph_Graph_Graph010011001->GetXaxis()->SetTitleFont(22); Graph_Graph_Graph010011001->GetYaxis()->SetTitle("#sigma_{x} [mm]"); Graph_Graph_Graph010011001->GetYaxis()->SetLabelFont(22); Graph_Graph_Graph010011001->GetYaxis()->SetLabelSize(0.07); Graph_Graph_Graph010011001->GetYaxis()->SetTitleSize(0.07); Graph_Graph_Graph010011001->GetYaxis()->SetTitleOffset(1.2); Graph_Graph_Graph010011001->GetYaxis()->SetTitleFont(22); Graph_Graph_Graph010011001->GetZaxis()->SetLabelFont(42); Graph_Graph_Graph010011001->GetZaxis()->SetLabelSize(0.035); Graph_Graph_Graph010011001->GetZaxis()->SetTitleSize(0.035); Graph_Graph_Graph010011001->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph_Graph010011001); TF1 *fun1002 = new TF1("fun","sqrt([0]**2+[1]**2*x)",200,600, TF1::EAddToList::kNo); fun1002->SetFillColor(19); fun1002->SetFillStyle(0); fun1002->SetLineColor(2); fun1002->SetLineWidth(2); fun1002->SetLineStyle(2); fun1002->SetChisquare(3.959251); fun1002->SetNDF(6); 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.05482223); fun1002->SetParError(0,0.002695263); fun1002->SetParLimits(0,0,0); fun1002->SetParameter(1,0.005813362); fun1002->SetParError(1,7.575227e-05); fun1002->SetParLimits(1,0,0); fun1002->SetParent(gre); gre->GetListOfFunctions()->Add(fun1002); gre->Draw("ap"); TPaveText *pt = new TPaveText(264.6465,0.2950276,554.5455,0.3944751,"br"); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextColor(2); pt->SetTextFont(132); pt->SetTextSize(0.03797469); TText *pt_LaTex = pt->AddText("#chi^{2}/ndf = 3.96/6"); pt_LaTex = pt->AddText("#sigma_{0} = 54.8 #pm 2.7 [#mum]"); pt_LaTex = pt->AddText("C_{D}/#sqrt{N_{eff}} = 18.4 #pm 0.24 [#mum/#sqrt{cm}]"); pt->Draw(); TLatex * tex = new TLatex(33.33334,0.2298343,"#sigma_{x} = #sqrt{#sigma_{0}^{2}+(C_{D}^{2}/N_{eff}) z}"); tex->SetTextAlign(12); tex->SetTextFont(132); tex->SetLineWidth(2); tex->Draw(); pt = new TPaveText(0.2656892,0.9367722,0.7343108,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(22); pt_LaTex = pt->AddText("GM Resolutin (Module3 Row16)"); pt->Draw(); 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.08563863, 0.08191522, 0.08121345, 0.08380225, 0.08350011, 0.08673255, 0.09586702, 0.1035938, 0.111572, 0.116495, 0.1217842, 0.1311977, 0.1354683, 0.144201}; Double_t Graph0_fex1003[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph0_fey1003[14] = { 0.0007124726, 0.0007392215, 0.0007407291, 0.0007681986, 0.000771378, 0.0008172548, 0.0008984925, 0.0009894907, 0.001037199, 0.00105911, 0.001146707, 0.001176321, 0.001280444, 0.001342986}; gre = new TGraphErrors(14,Graph0_fx1003,Graph0_fy1003,Graph0_fex1003,Graph0_fey1003); gre->SetName("Graph0"); gre->SetTitle("GM Resolutin (Module3 Row16)"); gre->SetFillStyle(1000); gre->SetMarkerStyle(22); TH1F *Graph_Graph01003 = new TH1F("Graph_Graph01003","GM Resolutin (Module3 Row16)",100,0,608.6); Graph_Graph01003->SetMinimum(0.07396559); Graph_Graph01003->SetMaximum(0.1520511); 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","sqrt([0]**2+[1]**2*x)",200,600, TF1::EAddToList::kNo); fun1004->SetFillColor(19); fun1004->SetFillStyle(0); fun1004->SetLineWidth(2); fun1004->SetLineStyle(2); fun1004->SetChisquare(10.10654); fun1004->SetNDF(6); 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.05153811); fun1004->SetParError(0,0.002688009); fun1004->SetParLimits(0,0,0); fun1004->SetParameter(1,0.005604304); fun1004->SetParError(1,7.23024e-05); fun1004->SetParLimits(1,0,0); fun1004->SetParent(gre); gre->GetListOfFunctions()->Add(fun1004); gre->Draw("p,"); pt = new TPaveText(270.7071,0.1922652,560.6061,0.2828729,"br"); pt->SetFillColor(0); pt->SetTextAlign(12); pt->SetTextFont(132); pt->SetTextSize(0.03797469); pt_LaTex = pt->AddText("#chi^{2}/ndf = 10.1/6"); pt_LaTex = pt->AddText("#sigma_{0} = 51.5 #pm 2.7 [#mum]"); pt_LaTex = pt->AddText("C_{D}/#sqrt{N_{eff}} = 17.7 #pm 0.23 [#mum/#sqrt{cm}]"); pt->Draw(); pt = new TPaveText(0.2656892,0.9367722,0.7343108,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(22); pt_LaTex = pt->AddText("GM Resolutin (Module3 Row16)"); pt->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); }