{ #include #include gROOT->LoadMacro("AtlasUtils.C"); c1 = new TCanvas("c1","A Simple Graph",0,0,700,500); c1->SetFillStyle(4100); c1->SetGrid(); // Double_t time[50], pulse[50]; // leg = new TLegend(0.20,0.60,0.40,0.90); leg->SetHeader("(x,y)=( 30,250)#mum"); // //TFile *f = new TFile("testmap_hist.aan.root"); //TFile *f = new TFile("testmap_0_250.aan.root"); //TFile *f = new TFile("testmap_0_30.aan.root"); //TFile *f = new TFile("testmap_30_30.aan.root"); TFile *f = new TFile("testmap_30_250.aan.root"); m_ht00->SetTitle(); m_ht00->GetXaxis()->SetTitle("time [ns]"); m_ht00->GetXaxis()->SetTitleOffset(1.1); m_ht00->GetYaxis()->SetTitle("pulse height"); m_ht00->GetYaxis()->SetTitleOffset(1.3); m_ht00->SetMinimum(-0.1); m_ht00->SetMaximum(1.0); m_ht00->SetLineColor(3); m_ht00->Draw("L"); m_htm2->SetLineColor(1); m_htm2->Draw("SAME L"); m_htm1->SetLineColor(2); m_htm1->Draw("SAME L"); m_htp1->SetLineColor(4); m_htp1->Draw("SAME L"); m_htp2->SetLineColor(6); m_htp2->Draw("SAME L"); // cid = new char[45];sprintf(cid,"strip -2");cid[44]=0; leg->AddEntry(m_htm2,cid,"L"); cid = new char[45];sprintf(cid,"strip -1");cid[44]=0; leg->AddEntry(m_htm1,cid,"L"); cid = new char[45];sprintf(cid,"strip 0");cid[44]=0; leg->AddEntry(m_ht00,cid,"L"); cid = new char[45];sprintf(cid,"strip 1");cid[44]=0; leg->AddEntry(m_htp1,cid,"L"); cid = new char[45];sprintf(cid,"strip 2");cid[44]=0; leg->AddEntry(m_htp2,cid,"L"); // leg->SetBorderSize(1); leg->SetFillColor(10); leg->SetTextSize(0.04); leg->Draw(); // c1.Print("induced_5.pdf"); //----------------SCT digitization------------ }