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("recoPFTaus_pfRecoTauProducer__PFPAT.obj.pt()>>h1","recoPFTaus_pfRecoTauProducer__PFPAT.obj.pt()<80","");
0005 Events.Draw("recoPFTaus_pfTauID__PFPAT.obj.pt()>>h2","","same");
0006 
0007 h2.SetLineColor(4);
0008 h2.SetLineWidth(3);
0009 h2.SetFillStyle(3005);
0010 h2.SetFillColor(4);
0011 h1.SetStats(0);
0012 
0013 h1.SetTitle("tau ID. p_{T}(tau) = 50 GeV, |#eta|<1; p_{T} tau jet (GeV)");
0014 
0015 h2.SetLineWidth(3);
0016 
0017 TLegend leg(0.35, 0.6, 0.89,0.89);
0018 leg.AddEntry(&h1, "PFTaus","lf");
0019 leg.AddEntry(&h2, "ConeIsolated PFTaus","lf");
0020 leg.Draw();
0021 
0022 gPad->SaveAs("tauID.eps");
0023 
0024 }
0025