File indexing completed on 2024-04-06 12:01:07
0001 {
0002
0003 gSystem->Load("libFWCoreFWLite.so");
0004 FWLiteEnabler::enable();
0005
0006 TFile fDisabled("tpDisabled.root");
0007 TTree *tDisabled = (TTree*) fDisabled.Get("Events");
0008 TFile fEnabled("tpEnabled.root");
0009 TTree *tEnabled = (TTree*) fEnabled.Get("Events");
0010
0011
0012 if(tDisabled != 0) tDisabled->Draw("patJets_selectedPatJetsPFlow__PAT.obj.pt()>>h1");
0013 if(tEnabled != 0) tEnabled->Draw("patJets_selectedPatJetsPFlow__PAT.obj.pt()>>h2","","same");
0014
0015 TH1* h1 = 0;
0016 gDirectory->GetObject("h1", h1);
0017 h1->SetStats( false );
0018 h1->Draw();
0019
0020 TH1* h2 = 0;
0021 gDirectory->GetObject("h2", h2);
0022 h2->SetLineColor(4);
0023 h2->Draw("same");
0024
0025 TLegend leg(0.6,0.6,0.8,0.8);
0026 leg.AddEntry( h1, "Muon TP disabled");
0027 leg.AddEntry( h2, "Muon TP enabled");
0028 leg.Draw();
0029 }