File indexing completed on 2024-04-06 12:01:07
0001 {
0002
0003
0004 gSystem->Load("libFWCoreFWLite.so");
0005 FWLiteEnabler::enable();
0006 TFile f("patTuple_PF2PAT.root");
0007
0008 TTree *Events = 0;
0009 gDirectory->GetObject("Events", Events);
0010 Events->Draw("patJets_selectedPatJets__PAT.obj.pt()>>h1");
0011 Events->Draw("patJets_selectedPatJetsPFlow__PAT.obj.pt()>>h2","","same");
0012
0013 TH1* h1 = 0;
0014 gDirectory->GetObject("h1", h1);
0015 h1->SetStats( false );
0016 h1->Draw();
0017
0018 TH1* h2 = 0;
0019 gDirectory->GetObject("h2", h2);
0020 h2->SetLineColor(4);
0021 h2->Draw("same");
0022
0023 TLegend leg(0.6,0.6,0.8,0.8);
0024 leg.AddEntry( h1, "std PAT");
0025 leg.AddEntry( h2, "PF2PAT+PAT");
0026 leg.Draw();
0027 }