#include #include #include #include "TCanvas.h" #include "TH1F.h" #include "AtlasUtils.h" #include "AtlasStyle.C" #include "AtlasLabels.C" #define nrT 100 void readUnfoldingBreakdown2(std::string hname, bool saving=false) { if (hname=="XXX"){ std::cout<<"No histogram selected - possible choices are: \n"; std::cout<<"\"j_bjet_Pt_binned\""<LoadMacro("AtlasUtils.C"); SetAtlasStyle(); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); std::string filen="../data/UnfoldingBreakdownNumbers2.txt"; Double_t MR[nrT], NR[nrT], MmatchR[nrT], NmatchR[nrT], Mfake[nrT], Nfake[nrT], MT[nrT], NT[nrT], MmatchT[nrT], NmatchT[nrT], Meff[nrT], Neff[nrT]; Double_t MT_NT[nrT], MTm_NTm[nrT], MRm_NRm[nrT], MR_NR[nrT], Mbbb[nrT], Nbbb[nrT], Mbbb_Nbbb[nrT]; int m_debug; //Int_t nr = 0; if (m_debug>1) std::cout<<" file to be read = <"<"<SetBinContent(j, MT_NT [index]); h_MTm_NTm ->SetBinContent(j, MTm_NTm [index]); h_MRm_NRm ->SetBinContent(j, MRm_NRm [index]); h_MR_NR ->SetBinContent(j, MR_NR [index]); h_Mbbb ->SetBinContent(j, Mbbb [index]); h_Nbbb ->SetBinContent(j, Nbbb [index]); h_Mbbb_Nbbb ->SetBinContent(j, Mbbb_Nbbb[index]); // std::cout<<"at index "<GetYaxis()->SetRangeUser(0.5,1.5); h_MT_NT->GetXaxis()->SetTitle(hname.c_str()); h_MT_NT->GetYaxis()->SetRangeUser(0.98,1.02); h_MT_NT->SetLineColor(1); h_MT_NT->SetMarkerColor(1); h_MT_NT->SetMarkerStyle(20); h_MT_NT->Draw("CP"); h_MTm_NTm->SetLineColor(4); h_MTm_NTm->SetMarkerColor(4); h_MTm_NTm->SetMarkerStyle(20); h_MTm_NTm->Draw("CPSAME"); h_MRm_NRm->SetLineColor(2); h_MRm_NRm->SetMarkerColor(2); h_MRm_NRm->SetMarkerStyle(23); h_MRm_NRm->Draw("CPSAME"); h_MR_NR->SetLineColor(6); h_MR_NR->SetMarkerColor(6); h_MR_NR->SetMarkerStyle(23); h_MR_NR->Draw("CPSAME"); TLegend* myLegend = new TLegend(0.6,0.7,0.95,0.90); myLegend->SetShadowColor(1); myLegend->SetBorderSize(0); myLegend->SetFillStyle(0); myLegend->SetTextSize(0.03); myLegend->AddEntry(h_MT_NT, "Truth - an.1/an.2","EPL"); myLegend->AddEntry(h_MTm_NTm, "Matched Truth - an.1/an.2","EPL"); myLegend->AddEntry(h_MRm_NRm, "Matched Reco - an.1/an.2","EPL"); myLegend->AddEntry(h_MR_NR, "Reco - an.1/an.2","EPL"); myLegend->Draw(); c0->SaveAs(std::string("temporary/UnfBreak_"+hname+".eps").c_str()); return; }