void ActivationExpoParticularMod5_Fit_AVG_perRun_E3_EBA() { //=========Macro generated from canvas: canvas/ //========= (Tue Jun 30 09:34:36 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.003375,850.3125,0.019125); 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_fx1070[35] = { 16.00977, 18.71117, 20.16317, 25.014, 25.13183, 26.671, 26.89967, 35.11733, 41.26917, 45.54917, 62.02367, 64.54183, 65.263, 140.306, 162.0152, 170.4933, 188.0883, 196.7183, 199.3017, 216.1683, 217.655, 254.1583, 275.2333, 278.1117, 282.6483, 307.8317, 314.485, 333.8317, 347.7017, 376.63, 406.2117, 407.5883, 418.3583, 552.8683, 694.4017}; Double_t Graph_fy1070[35] = { 0.00532086, 0.00516928, 0.00492837, 0.00682779, 0.00636354, 0.0075068, 0.00588865, 0.00734335, 0.00681655, 0.00796453, 0.00845815, 0.00848301, 0.00821309, 0.00931693, 0.00988298, 0.00888811, 0.00990831, 0.00980409, 0.00778221, 0.00855374, 0.00836264, 0.00870412, 0.00881367, 0.0105608, 0.00956197, 0.0102253, 0.00785769, 0.0102748, 0.00750021, 0.00984225, 0.011158, 0.0106181, 0.00766427, 0.0095109, 0.0093204}; Double_t Graph_fex1070[35] = { 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, 0}; Double_t Graph_fey1070[35] = { 0.0002867625, 0.0008471875, 0.000640582, 0.0003610775, 0.0005968, 0.0003751375, 0.0007045275, 0.001109765, 0.00026903, 0.0004533875, 0.000356775, 0.0002555625, 0.000864729, 0.0003670175, 0.000379835, 0.0006046225, 0.000510695, 0.0003228125, 0.0004938475, 0.00069915, 0.0004523375, 0.000910837, 0.0007054825, 0.00113649, 0.000579335, 0.0008981975, 0.0005896475, 0.0007870025, 0.00193674, 0.000375665, 0.001168755, 0.000854619, 0.0004217175, 0.000519104, 0.000497675}; TGraphErrors *gre = new TGraphErrors(35,Graph_fx1070,Graph_fy1070,Graph_fex1070,Graph_fey1070); 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_Graph1070 = new TH1F("Graph_Graph1070","Graph",100,0,762.2409); Graph_Graph1070->SetMinimum(0.003483891); Graph_Graph1070->SetMaximum(0.01313065); Graph_Graph1070->SetDirectory(0); Graph_Graph1070->SetStats(0); Graph_Graph1070->SetLineWidth(2); Graph_Graph1070->SetMarkerStyle(20); Graph_Graph1070->SetMarkerSize(1.2); Graph_Graph1070->GetXaxis()->SetLabelFont(42); Graph_Graph1070->GetXaxis()->SetLabelSize(0.05); Graph_Graph1070->GetXaxis()->SetTitleSize(0.05); Graph_Graph1070->GetXaxis()->SetTitleOffset(1.4); Graph_Graph1070->GetXaxis()->SetTitleFont(42); Graph_Graph1070->GetYaxis()->SetLabelFont(42); Graph_Graph1070->GetYaxis()->SetLabelSize(0.05); Graph_Graph1070->GetYaxis()->SetTitleSize(0.05); Graph_Graph1070->GetYaxis()->SetTitleOffset(1.4); Graph_Graph1070->GetYaxis()->SetTitleFont(42); Graph_Graph1070->GetZaxis()->SetLabelFont(42); Graph_Graph1070->GetZaxis()->SetLabelSize(0.05); Graph_Graph1070->GetZaxis()->SetTitleSize(0.05); Graph_Graph1070->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1070); multigraph->Add(gre,""); Double_t Graph_fx1071[31] = { 8.799267, 13.66852, 16.55328, 18.5385, 20.79817, 43.99233, 60.31317, 64.3295, 68.50517, 81.21633, 83.49883, 105.3705, 115.9203, 123.9185, 133.7488, 137.9382, 143.9987, 179.58, 188.685, 208.6717, 220.3333, 257.1583, 258.3467, 304.92, 308.5767, 342.185, 385.0783, 407.9283, 551.25, 576.615, 742.75}; Double_t Graph_fy1071[31] = { 0.00498876, 0.00613353, 0.00588702, 0.00641116, 0.00628557, 0.00793088, 0.00863737, 0.00864321, 0.00883334, 0.00953563, 0.00763061, 0.00939491, 0.00800809, 0.00888536, 0.00777503, 0.00771097, 0.00951311, 0.00992312, 0.00900164, 0.0106976, 0.00864974, 0.00929427, 0.00891499, 0.00928487, 0.00866552, 0.00828149, 0.0102327, 0.0108233, 0.00802288, 0.00953312, 0.010479}; Double_t Graph_fex1071[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_fey1071[31] = { 0.00047565, 0.0002518975, 0.000277535, 0.00031723, 0.0004585475, 0.000327875, 0.0001291152, 0.0009513025, 0.0001388817, 0.0004862025, 0.0006019375, 0.000676415, 0.0002386545, 0.0004100225, 0.000192379, 0.0003596775, 0.000357035, 0.0004441175, 0.0005986225, 0.00103219, 0.0006474125, 0.00078514, 0.0004388525, 0.0008896575, 0.0006812925, 0.0006367775, 0.000403375, 0.00061157, 0.00089194, 0.000617149, 0.000438455}; gre = new TGraphErrors(31,Graph_fx1071,Graph_fy1071,Graph_fex1071,Graph_fey1071); 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_Graph1071 = new TH1F("Graph_Graph1071","Graph",100,0,816.1451); Graph_Graph1071->SetMinimum(0.003791442); Graph_Graph1071->SetMaximum(0.01245146); Graph_Graph1071->SetDirectory(0); Graph_Graph1071->SetStats(0); Graph_Graph1071->SetLineWidth(2); Graph_Graph1071->SetMarkerStyle(20); Graph_Graph1071->SetMarkerSize(1.2); Graph_Graph1071->GetXaxis()->SetLabelFont(42); Graph_Graph1071->GetXaxis()->SetLabelSize(0.05); Graph_Graph1071->GetXaxis()->SetTitleSize(0.05); Graph_Graph1071->GetXaxis()->SetTitleOffset(1.4); Graph_Graph1071->GetXaxis()->SetTitleFont(42); Graph_Graph1071->GetYaxis()->SetLabelFont(42); Graph_Graph1071->GetYaxis()->SetLabelSize(0.05); Graph_Graph1071->GetYaxis()->SetTitleSize(0.05); Graph_Graph1071->GetYaxis()->SetTitleOffset(1.4); Graph_Graph1071->GetYaxis()->SetTitleFont(42); Graph_Graph1071->GetZaxis()->SetLabelFont(42); Graph_Graph1071->GetZaxis()->SetLabelSize(0.05); Graph_Graph1071->GetZaxis()->SetTitleSize(0.05); Graph_Graph1071->GetZaxis()->SetTitleFont(42); gre->SetHistogram(Graph_Graph1071); 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 = 1386; 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,"E3 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 = (8.83 #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 = (15.8 #pm 0.6) 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} = 3.9"); tex->SetNDC(); tex->SetTextAlign(13); tex->SetTextFont(42); tex->SetTextSize(0.04); tex->SetLineWidth(2); tex->Draw(); TF1 *fit3 = new TF1("fit","[0]*(1-exp([1]*x))",-50,800, TF1::EAddToList::kDefault); fit3->SetFillColor(19); fit3->SetFillStyle(0); fit3->SetMarkerStyle(20); fit3->SetMarkerSize(1.2); ci = TColor::GetColor("#ff0000"); fit3->SetLineColor(ci); fit3->SetLineWidth(3); fit3->SetChisquare(246.7591); fit3->SetNDF(64); fit3->GetXaxis()->SetLabelFont(42); fit3->GetXaxis()->SetLabelSize(0.05); fit3->GetXaxis()->SetTitleSize(0.05); fit3->GetXaxis()->SetTitleOffset(1.4); fit3->GetXaxis()->SetTitleFont(42); fit3->GetYaxis()->SetLabelFont(42); fit3->GetYaxis()->SetLabelSize(0.05); fit3->GetYaxis()->SetTitleSize(0.05); fit3->GetYaxis()->SetTitleOffset(1.4); fit3->GetYaxis()->SetTitleFont(42); fit3->SetParameter(0,0.008832784); fit3->SetParError(0,5.97973e-05); fit3->SetParLimits(0,0,0); fit3->SetParameter(1,-0.06332134); fit3->SetParError(1,0.002580058); fit3->SetParLimits(1,0,0); fit3->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); }