File indexing completed on 2023-03-17 10:45:23
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
0011 Events->Draw("patMuons_selectedPatMuons__PAT.obj.pt()>>h1");
0012 Events->Draw("patMuons_selectedPatMuonsPFlow__PAT.obj.pt()>>h2","","same");
0013
0014 TH1* h1 = 0;
0015 gDirectory->GetObject("h1", h1);
0016 h1->SetStats( false );
0017 h1->Draw();
0018
0019 TH1* h2 = 0;
0020 gDirectory->GetObject("h2", h2);
0021 h2->SetLineColor(4);
0022 h2->Draw("same");
0023
0024 TLegend leg(0.6,0.6,0.8,0.8);
0025 leg.AddEntry( h1, "std PAT");
0026 leg.AddEntry( h2, "PF2PAT+PAT");
0027 leg.Draw();
0028 }