{ #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.70,0.60,0.90,0.90); leg->SetHeader("(x,y)=(-35,30)#mum"); // TFile *f = new TFile("testmap_m35_30.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("charge / 0.5ns"); m_ht00->GetYaxis()->SetTitleOffset(1.3); m_ht00->SetMinimum(-0.1); m_ht00->SetMaximum(0.4); m_ht00->SetLineColor(3); m_ht00->Draw(); m_htm2->SetLineColor(1); m_htm2->Draw("SAME"); m_htm1->SetLineColor(2); m_htm1->Draw("SAME"); m_htp1->SetLineColor(4); m_htp1->Draw("SAME"); m_htp2->SetLineColor(6); m_htp2->Draw("SAME"); // 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("testmap_m35_30.pdf"); //----------------SCT digitization------------ }