#include #include #include "Rtypes.h" #include "atlasstyle-00-03-01/AtlasUtils.h" // #ifndef __CINT__ #include "atlasstyle-00-03-01/AtlasStyle.C" // #endif #include "TCanvas.h" #include "TFile.h" #include "TROOT.h" #include "TH1F.h" #include "TRandom.h" #include "TGraphErrors.h" using namespace std; void EFMu6 () { #ifdef __CINT__ gROOT->LoadMacro("atlasstyle-00-03-01/AtlasUtils.C"); #endif SetAtlasStyle(); Int_t icol1=5; Int_t icol2=5; TFile * file = TFile::Open("../LowPt_jpsi_note/Efficiency_EFMu4EFMu6_combcomb.root"); TCanvas *c1 = new TCanvas("c1","",10,10,700,500); //c1->Divide(1,2); // c1->cd(1); file->cd(); heff->SetTitle("BARREL"); heff->SetMinimum(0.); heff->SetMaximum(1.1); heff->SetLineColor(1); heff->SetMarkerColor(1); heff->SetMarkerStyle(20); heff->Draw("AP"); heff->GetXaxis()->SetTitle("p_{T} (GeV)"); heff->GetYaxis()->SetTitle("#font[42]{EF_MU6 efficiency w.r.t. to offline and L1}"); ATLAS_LABEL(0.55,0.45); myText( 0.67,0.45,1,"Preliminary"); myText( 0.6,0.4,1,"CB muons"); myText( 0.6,0.35,1,"barrel"); myMarkerText(0.6,0.3,1,20,"Data 2010",1.3); // myBoxText( 0.6,0.25,0.05,icol1,"MC: prompt J/#psi->#mu0#mu0"); c1->Print("../LowPt_jpsi_note/figure/TurnOn_EFMu6_data_combcomb.eps"); /////ENDCAP TCanvas *c2 = new TCanvas("c2","",10,10,700,500); file->cd(); /* heff_bkgsub_ec->SetMinimum(0.); heff_bkgsub_ec->SetMaximum(1.1); heff_bkgsub_ec->SetLineColor(1); heff_bkgsub_ec->SetMarkerColor(1); heff_bkgsub_ec->SetMarkerStyle(20); heff_bkgsub_ec->Draw("AP"); heff_bkgsub_ec->GetXaxis()->SetTitle("p_{T} (GeV)"); heff_bkgsub_ec->GetYaxis()->SetTitle("#font[42]{EF_MU6 efficiency w.r.t. to offline and L1}");*/ heff_ec->SetMinimum(0.); heff_ec->SetMaximum(1.1); heff_ec->SetLineColor(1); heff_ec->SetMarkerColor(1); heff_ec->SetMarkerStyle(20); heff_ec->Draw("AP"); heff_ec->GetXaxis()->SetTitle("p_{T} (GeV)"); heff_ec->GetYaxis()->SetTitle("#font[42]{EF_MU6 efficiency w.r.t. to offline and L1}"); ATLAS_LABEL(0.55,0.45); myText( 0.67,0.45,1,"Preliminary"); myText( 0.6,0.4,1,"CB muons"); myText( 0.6,0.35,1,"endcaps"); myMarkerText(0.6,0.3,1,20,"Data 2010",1.3); // myBoxText( 0.6,0.25,0.05,icol1,"MC: prompt J/#psi->#mu0#mu0"); c2->Print("../LowPt_jpsi_note/figure/TurnOn_EFMu6_data_endcap_combcomb.eps"); }