void ActivationExpoParticularMod5_Fit_AVG_perRun_E4_EBA() { //=========Macro generated from canvas: canvas/ //========= (Tue Jun 30 09:34:39 2020) by ROOT version 6.14/04 TCanvas *canvas = new TCanvas("canvas", "",0,0,1132,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); canvas->Range(-155.9375,-0.001875,850.3125,0.010625); canvas->SetFillColor(0); canvas->SetBorderMode(0); canvas->SetBorderSize(2); canvas->SetTickx(1); canvas->SetTicky(1); canvas->SetLeftMargin(0.15); canvas->SetRightMargin(0.05); canvas->SetTopMargin(0.05); canvas->SetBottomMargin(0.15); canvas->SetFrameBorderMode(0); canvas->SetFrameBorderMode(0); TMultiGraph *multigraph = new TMultiGraph(); multigraph->SetName(""); multigraph->SetTitle(""); Double_t Graph_fx1142[34] = { 18.71117, 20.16317, 25.01383, 25.13183, 26.67067, 26.89967, 35.11717, 41.26917, 45.54917, 62.02367, 64.54183, 65.26317, 140.306, 162.015, 170.4917, 188.0883, 196.7183, 199.3017, 216.1683, 217.655, 254.1583, 275.2333, 278.1117, 282.6467, 307.8317, 314.485, 333.83, 347.7017, 376.63, 406.2117, 407.5883, 418.3583, 552.8683, 694.4017}; Double_t Graph_fy1142[34] = { 0.0034402, 0.0025861, 0.00345192, 0.00329393, 0.00310174, 0.00246292, 0.0037569, 0.0033587, 0.00379848, 0.00394014, 0.00385953, 0.0031342, 0.00427014, 0.00417106, 0.00451868, 0.00447103, 0.00483344, 0.00379253, 0.00401168, 0.00407613, 0.00391025, 0.00407473, 0.00486585, 0.00471155, 0.00489741, 0.00355249, 0.00513808, 0.00480174, 0.00459057, 0.00513831, 0.00415955, 0.00353783, 0.00506602, 0.00396942}; Double_t Graph_fex1142[34] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph_fey1142[34] = { 0.000451485, 0.00044744, 0.0006020325, 0.000525072, 0.00066028, 0.0004343425, 0.000823995, 0.000368845, 0.000627575, 0.0003895975, 0.00031341, 0.000728158, 0.0008905325, 0.0003702225, 0.000425795, 0.000466045, 0.000389325, 0.0001507575, 0.0002392083, 0.00041837, 0.000745444, 0.0006209925, 0.00078473, 0.0005236875, 0.0006406225, 0.00035692, 0.00077952, 0.000871301, 0.0003076475, 0.00108085, 0.000679786, 0.0004552425, 0.000661966, 0.00065617}; TGraphErrors *gre = new TGraphErrors(34,Graph_fx1142,Graph_fy1142,Graph_fex1142,Graph_fey1142); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#0000ff"); gre->SetLineColor(ci); gre->SetLineWidth(3); ci = TColor::GetColor("#0000ff"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(22); gre->SetMarkerSize(2); TH1F *Graph_Graph1142 = new TH1F("Graph_Graph1142","Graph",100,0,761.9707); Graph_Graph1142->SetMinimum(0.001609519); Graph_Graph1142->SetMaximum(0.006638218); Graph_Graph1142->SetDirectory(0); Graph_Graph1142->SetStats(0); Graph_Graph1142->SetLineWidth(2); Graph_Graph1142->SetMarkerStyle(20); Graph_Graph1142->SetMarkerSize(1.2); Graph_Graph1142->GetXaxis()->SetLabelFont(42); Graph_Graph1142->GetXaxis()->SetLabelSize(0.05); Graph_Graph1142->GetXaxis()->SetTitleSize(0.05); Graph_Graph1142->GetXaxis()->SetTitleOffset(1.4); Graph_Graph1142->GetXaxis()->SetTitleFont(42); Graph_Graph1142->GetYaxis()->SetLabelFont(42); Graph_Graph1142->GetYaxis()->SetLabelSize(0.05); Graph_Graph1142->GetYaxis()->SetTitleSize(0.05); Graph_Graph1142->GetYaxis()->SetTitleOffset(1.4); Graph_Graph1142->GetYaxis()->SetTitleFont(42); Graph_Graph1142->GetZaxis()->SetLabelFont(42); Graph_Graph1142->GetZaxis()->SetLabelSize(0.05); Graph_Graph1142->GetZaxis()->SetTitleSize(0.05); Graph_Graph1142->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1142); multigraph->Add(gre,""); Double_t Graph_fx1143[31] = { 8.801, 13.66837, 16.55327, 18.54017, 20.79833, 43.99317, 60.3135, 64.33117, 68.50517, 81.21633, 83.49883, 105.3707, 115.9203, 123.9185, 133.7488, 137.938, 143.9997, 179.58, 188.685, 208.6717, 220.3333, 257.1567, 258.3467, 304.92, 308.5767, 342.185, 385.0783, 407.9283, 551.2517, 576.615, 742.75}; Double_t Graph_fy1143[31] = { 0.00252994, 0.00265821, 0.00268417, 0.0028094, 0.00314302, 0.00393667, 0.00416093, 0.00465583, 0.00418573, 0.00451536, 0.0031407, 0.00429079, 0.00371149, 0.00428163, 0.00367771, 0.00361446, 0.00455157, 0.00472576, 0.00392473, 0.00455483, 0.003605, 0.00414763, 0.00394856, 0.00456506, 0.00377576, 0.00367343, 0.00477446, 0.00410505, 0.00430345, 0.00294779, 0.00514379}; Double_t Graph_fex1143[31] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Double_t Graph_fey1143[31] = { 0.0004660575, 0.000213905, 0.000221134, 0.0002480797, 0.0004775075, 0.000360745, 0.00039861, 0.0008883475, 0.000194905, 0.000681985, 0.00061186, 0.00063247, 0.000474, 0.000473505, 0.0003634675, 0.0001819405, 0.0004118475, 0.000456135, 0.000452255, 0.0007152425, 0.0003977925, 0.0007084325, 0.0002994025, 0.00102486, 0.0004352725, 0.0005203725, 0.000517915, 0.001199205, 0.0009978325, 0.00059594, 0.0006055125}; gre = new TGraphErrors(31,Graph_fx1143,Graph_fy1143,Graph_fex1143,Graph_fey1143); gre->SetName("Graph"); gre->SetTitle("Graph"); gre->SetFillStyle(1000); ci = TColor::GetColor("#006600"); gre->SetLineColor(ci); gre->SetLineWidth(3); ci = TColor::GetColor("#006600"); gre->SetMarkerColor(ci); gre->SetMarkerStyle(23); gre->SetMarkerSize(2); TH1F *Graph_Graph1143 = new TH1F("Graph_Graph1143","Graph",100,0,816.1449); Graph_Graph1143->SetMinimum(0.001695341); Graph_Graph1143->SetMaximum(0.006117844); Graph_Graph1143->SetDirectory(0); Graph_Graph1143->SetStats(0); Graph_Graph1143->SetLineWidth(2); Graph_Graph1143->SetMarkerStyle(20); Graph_Graph1143->SetMarkerSize(1.2); Graph_Graph1143->GetXaxis()->SetLabelFont(42); Graph_Graph1143->GetXaxis()->SetLabelSize(0.05); Graph_Graph1143->GetXaxis()->SetTitleSize(0.05); Graph_Graph1143->GetXaxis()->SetTitleOffset(1.4); Graph_Graph1143->GetXaxis()->SetTitleFont(42); Graph_Graph1143->GetYaxis()->SetLabelFont(42); Graph_Graph1143->GetYaxis()->SetLabelSize(0.05); Graph_Graph1143->GetYaxis()->SetTitleSize(0.05); Graph_Graph1143->GetYaxis()->SetTitleOffset(1.4); Graph_Graph1143->GetYaxis()->SetTitleFont(42); Graph_Graph1143->GetZaxis()->SetLabelFont(42); Graph_Graph1143->GetZaxis()->SetLabelSize(0.05); Graph_Graph1143->GetZaxis()->SetTitleSize(0.05); Graph_Graph1143->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1143); multigraph->Add(gre,""); multigraph->Draw("ap"); multigraph->GetXaxis()->SetTitle("Time in colliding beams [min]"); multigraph->GetXaxis()->SetLabelFont(42); multigraph->GetXaxis()->SetLabelSize(0.045); multigraph->GetXaxis()->SetTitleSize(0.045); multigraph->GetXaxis()->SetTitleOffset(1.4); multigraph->GetXaxis()->SetTitleFont(42); multigraph->GetYaxis()->SetTitle("Fraction of signal from activation"); multigraph->GetYaxis()->SetLabelFont(42); multigraph->GetYaxis()->SetLabelSize(0.045); multigraph->GetYaxis()->SetTitleSize(0.045); multigraph->GetYaxis()->SetTitleOffset(1.6); multigraph->GetYaxis()->SetTitleFont(42); TLegend *leg = new TLegend(0.185,0.66,0.4,0.75,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextSize(0.05); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); ci = 1525; color = new TColor(ci, 0.999, 0.999, 0.999, " ", 0); leg->SetFillColor(ci); leg->SetFillStyle(1001); TLegendEntry *entry=leg->AddEntry("Graph"," 2017","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#0000ff"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(22); entry->SetMarkerSize(2); entry->SetTextFont(42); entry=leg->AddEntry("Graph"," 2018","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); ci = TColor::GetColor("#006600"); entry->SetMarkerColor(ci); entry->SetMarkerStyle(23); entry->SetMarkerSize(2); entry->SetTextFont(42); leg->Draw(); TLatex * tex = new TLatex(0.18,0.855,"Tile Calorimeter"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.18,0.81,"E4 EBA06, #sqrt{s} = 13 TeV"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.92,"#bf{f(t) = A #upoint (1 - exp(-t/#tau))}"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.87,"A = (4.03 #pm 0.06) #times 10^{-3}"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.7,0.82,"#tau = (14 #pm 1) min"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.8,0.77,"#frac{#chi^{2}}{ndf} = 1.1"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); TF1 *fit6 = new TF1("fit","[0]*(1-exp([1]*x))",-50,800, TF1::EAddToList::kDefault); fit6->SetFillColor(19); fit6->SetFillStyle(0); fit6->SetMarkerStyle(20); fit6->SetMarkerSize(1.2); ci = TColor::GetColor("#ff0000"); fit6->SetLineColor(ci); fit6->SetLineWidth(3); fit6->SetChisquare(67.16839); fit6->SetNDF(63); fit6->GetXaxis()->SetLabelFont(42); fit6->GetXaxis()->SetLabelSize(0.05); fit6->GetXaxis()->SetTitleSize(0.05); fit6->GetXaxis()->SetTitleOffset(1.4); fit6->GetXaxis()->SetTitleFont(42); fit6->GetYaxis()->SetLabelFont(42); fit6->GetYaxis()->SetLabelSize(0.05); fit6->GetYaxis()->SetTitleSize(0.05); fit6->GetYaxis()->SetTitleOffset(1.4); fit6->GetYaxis()->SetTitleFont(42); fit6->SetParameter(0,0.004032508); fit6->SetParError(0,5.815903e-05); fit6->SetParLimits(0,0,0); fit6->SetParameter(1,-0.06899631); fit6->SetParError(1,0.005663276); fit6->SetParLimits(1,0,0); fit6->Draw("same"); tex = new TLatex(0.18,0.88,"ATLAS"); tex->SetNDC(); tex->SetTextFont(72); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.2810242,0.88,"Preliminary"); tex->SetNDC(); tex->SetTextFont(42); tex->SetLineWidth(2); tex->Draw(); canvas->Modified(); canvas->cd(); canvas->SetSelected(canvas); }