{ leg=new TLegend(0.6,0.7,0.89,0.89); TFile *_file = TFile::Open("ZHH-BP3-50k_1.5TeV.root"); leg->AddEntry(Zmass,"ZHH","LP"); Zmass->SetLineColor(2); Zmass->SetLineWidth(3); Zmass->SetLineStyle(1); //Zmass->SetFillColor(2); Double_t scale=1./Zmass->Integral(); Zmass->Scale(scale); Zmass->GetXaxis()->SetTitle("#bf{m_{H} [GeV]}"); Zmass->GetYaxis()->SetTitle("#bf{Normalized to 1}"); Zmass->GetXaxis()->CenterTitle(true); Zmass->GetYaxis()->CenterTitle(true); Zmass->Draw("same"); _file = TFile::Open("ZAA-BP3-50k_1.5TeV.root"); leg->AddEntry(Zmass,"ZAA","LP"); Zmass->SetLineColor(3); Zmass->SetLineWidth(3); Zmass->SetLineStyle(2); //Zmass->SetFillColor(3); //Double_t scale=1./Zmass->Integral(); Zmass->Scale(scale); Zmass->Draw("same"); _file = TFile::Open("Zhh-BP3-50k_1.5TeV.root"); leg->AddEntry(Zmass,"Zhh","LP"); Zmass->SetLineColor(4); Zmass->SetLineWidth(3); Zmass->SetLineStyle(3); //Zmass->SetFillColor(4); //Double_t scale=1./Zmass->Integral(); Zmass->Scale(scale); Zmass->Draw("same"); //mg->GetXaxis()->SetLimits(2,14); //mg->GetYaxis()->SetLimits(0,550); gStyle->SetOptStat(0); leg->SetLineWidth(0); leg->SetFillStyle(0); leg->SetMargin(0.2); leg->Draw(); }