/* Compare two root files */ { gROOT->Reset(); gROOT->ProcessLine(".L compareQuantities.C"); // gROOT->ProcessLine(".L compare4rootfileTitle.C"); TCanvas *c1 = new TCanvas("c1236","Muon",200,10,800,700); const string Cut = "(abs(jgenEta[0])<5.0)&&(abs(jgenEta[1])<5.0)&&(jgenPt[0]>25)&&(jgenPt[1]>25)&&(abs(jgenEta[0]-jgenEta[1])>4.2)"; ////////////////////////////////////////////////////////////////////////////////////////////// c1->Divide(1,2); c1->cd(1); compareQuantities("pp_WWJJ_notop_LL_8TeV.root","pp_WWJJ_phantom_mupv.root","genMuonPt","genMuonPt","jgenEta",100,0,500); c1->cd(2); compareQuantities("pp_WWJJ_notop_LL_8TeV.root","pp_WWJJ_phantom_mupv.root","genMuonPt","genMuonPt","jgenEta",100,0,500); c1->SaveAs("Leading_Jet_Eta.pdf"); c1->Clear(); ////////////////////////////////////////////////////////////////////////////////////////////// }