{ gStyle->SetStatBorderSize(1); gStyle->SetStatColor(0); gStyle->SetTitleFillColor(0); gStyle->SetCanvasColor(0); gStyle->SetDrawBorder(0); gStyle->SetPadColor(0); gStyle->SetPadBorderMode(0); gStyle->SetFrameBorderMode(0); gStyle->SetPalette(1,0); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); TFile* ff = new TFile("tree_cu63.root","r"); TTree* T_bl = (TTree*)gROOT->FindObject("T_bl"); TTree* T_dl = (TTree*)gROOT->FindObject("T_dl"); TTree* T_bs = (TTree*)gROOT->FindObject("T_bs"); TTree* T_ds = (TTree*)gROOT->FindObject("T_ds"); TH1F* hbl1 = new TH1F("hbl1","Invariant Mass of pKpi",500,1.5,2.5); TH1F* hbl2 = new TH1F("hbl2","Invariant Mass of pKpi",500,1.5,2.5); TH1F* hbs1 = new TH1F("hbs1","Invariant Mass of pKpi",500,1.5,2.5); TH1F* hbs2 = new TH1F("hbs2","Invariant Mass of pKpi",500,1.5,2.5); TH1F* hdl = new TH1F("hdl","Invariant Mass of pKpi",500,1.5,2.5); TH1F* hds = new TH1F("hds","Invariant Mass of pKpi",500,1.5,2.5); c1 = new TCanvas("c1","",800,600); T_bl->Draw("M1>>hbl1","w.pf*w.lk*w.ppi*w.nf/100."); T_bl->Draw("M2>>hbl2","w.pf*w.lk*w.ppi*w.nf/100."); T_bs->Draw("M1>>hbs1","w.pf*w.sk*w.lg*w.ppi*w.nf/100."); T_bs->Draw("M2>>hbs2","w.pf*w.sk*w.lg*w.ppi*w.nf/100."); T_dl->Draw("M1>>hdl","w.lk*w.ppi/100"); T_ds->Draw("M1>>hds","w.sk*w.lg*w.ppi/100"); // hbl2->SetTitle("Invariant Mass of pK^{+}#pi^{-}"); hbl2->SetXTitle("Invariant Mass of pK^{+}#pi^{-} (GeV/c^{2})"); hbl2->SetYTitle("Arbitary Scale"); hbl2->GetXaxis()->SetLabelSize(0.035); hbl2->GetYaxis()->SetLabelSize(0.035); hbl2->SetLineColor(2); hbl1->SetLineColor(6); hbs2->SetLineColor(7); hbs1->SetLineColor(1); hdl->SetLineColor(4); hds->SetLineColor(8); hbl2->SetLineWidth(1); hbl1->SetLineWidth(1); hbs2->SetLineWidth(1); hbs1->SetLineWidth(1); hdl->SetLineWidth(1); hds->SetLineWidth(1); hbl2->SetMaximum(100); hbl2->Draw(); hbl1->Draw("same"); hbs1->Draw("same"); hbs2->Draw("same"); hdl->Draw("same"); hds->Draw("same"); TLegend* leg = new TLegend(0.63,0.5,0.88,0.88,"Invariant Mass of pK^{+}#pi^{-}"); leg->SetFillColor(0); leg->SetEntrySeparation(0.5); leg->AddEntry(hbl2,"#phi-N to #Lambda^{o}","l"); leg->AddEntry(hbl1,"#phi-N to #Lambda^{o} w/ recoil p","l"); leg->AddEntry(hbs2,"#phi-N to #Sigma^{o}","l"); leg->AddEntry(hbs1,"#phi-N to #Sigma^{o} w/ recoil p","l"); leg->AddEntry(hdl,"Direct #Lambda^{o} production","l"); leg->AddEntry(hds,"Direct #Sigma^{o} production","l"); leg->Draw(); }