{ gROOT->LoadMacro("AtlasUtils.C"); ATLAS->SetPadTickX(1); ATLAS->SetPadTickY(1); ATLAS->SetPadRightMargin(0.05); c1 = new TCanvas("c1","A Simple Graph",0,0,700,500); c1->SetFillStyle(4100); //c1->SetGrid(); // double ymin = 1.0; double ymax = 2.8; // TFile *f = new TFile("missF_D.root"); leg = new TLegend(0.63 ,0.74,0.93,0.92, "case A"); // tot_0->SetTitle(); tot_0->GetXaxis()->SetTitle("time over threshold [ns]"); tot_0->GetXaxis()->SetTitleOffset(1.1); //tot_0->GetYaxis()->SetTitle(""); tot_0->GetYaxis()->SetTitleOffset(1.3); //tot_0->SetMinimum(ymin); //tot_0->SetMaximum(ymax); tot_0_miss->SetMarkerSize(0.8); tot_m10_miss->SetMarkerSize(0.8); tot_0->SetMarkerSize(0.8); tot_0_miss->SetMarkerColor(2); tot_m10_miss->SetMarkerColor(4); tot_0->SetMarkerColor(1); tot_0_miss->SetLineColor(2); tot_m10_miss->SetLineColor(4); tot_0->SetLineColor(1); tot_0->Draw(); tot_0_miss->Draw("SAME"); tot_m10_miss->Draw("SAME"); tot_0->Draw("SAME"); // leg->AddEntry(tot_0,"all signals","l"); leg->AddEntry(tot_m10_miss,"missed at t_{cl}=-10ns","l"); leg->AddEntry(tot_0_miss,"missed at t_{cl}=0ns","l"); leg->SetFillColor(10); leg->SetBorderSize(0); leg->Draw(); // z1=new TLine(25,0,25,80); z1->SetLineColor(1); z1->SetLineWidth(2);z1->Draw(); t=new TText(26,85,"clock cycle"); t->SetTextSize(0.04); t->SetTextAngle(90); t->Draw(); // c1.Print("tot_D.png"); }