1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
gSystem->Load("libFWCoreFWLite.so");
FWLiteEnabler::enable();
TFile f("patTuple_PF2PAT.root");
TTree *Events = 0;
gDirectory->GetObject("Events", Events);
Events->Draw("patJets_selectedPatJets__PAT.obj.pt()>>h1");
Events->Draw("patJets_selectedPatJetsPFlow__PAT.obj.pt()>>h2","","same");
TH1* h1 = 0;
gDirectory->GetObject("h1", h1);
h1->SetStats( false );
h1->Draw();
TH1* h2 = 0;
gDirectory->GetObject("h2", h2);
h2->SetLineColor(4);
h2->Draw("same");
TLegend leg(0.6,0.6,0.8,0.8);
leg.AddEntry( h1, "std PAT");
leg.AddEntry( h2, "PF2PAT+PAT");
leg.Draw();
}
|