void test() { const Int_t m=2; Float_t x[m],y[m]; x[0]=0.0; x[1]=20.0; y[0]=0.9; y[1]=1.1; TGraph *g = new TGraph(m,x,y); g->SetTitle("Efficiency vs.Threshold for CEM(1,x) CJT(2,7 or 10)"); x[0]=0.0; x[1]=10.0; y[0]=0.95; y[1]=1.0; TGraph *gr1 = new TGraph(m,x,y); g->Draw("AP"); gr1->Draw("P"); leg = new TLegend(0.6,0.6,0.9,0.9); leg->AddEntry(g,"CJT(2,7)","l"); leg->AddEntry(gr1,"CJT(2,7)","l"); leg->SetHeader("Thresholds"); leg->Draw(); }//end talk()