Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:00

0001 {
0002 TFile f("testPFPAT.root");
0003 
0004 Events.Draw("recoMETs_pfMET__PFPAT.obj.pt_>>h1","recoMETs_pfMET__PFPAT.obj.pt_<100","");
0005 Events.Draw("recoMETs_htMetIC5__PROD.obj.pt_>>h2","","same");
0006 
0007 h1.SetLineColor(4);
0008 h1.SetLineWidth(3);
0009 h1.SetFillStyle(3005);
0010 h1.SetFillColor(4);
0011 h1.SetStats(0);
0012 
0013 h1.SetTitle("MET, di-pion p_{T}=100 GeV, -5<#eta<5; MET (GeV)");
0014 
0015 h2.SetLineWidth(3);
0016 
0017 TLegend leg(0.35, 0.6, 0.89,0.89);
0018 leg.AddEntry(&h1, "PFlow MET","lf");
0019 leg.AddEntry(&h2, "recoMETs_htMetIC5","lf");
0020 leg.Draw();
0021 
0022 gPad->SaveAs("met.eps");
0023 
0024 }
0025