{ // // 06/01/2005 // This graph draws totE with X,Y or Z // gROOT->Reset(); c1 = new TCanvas("c1","",200,10,700,500); c1->SetFillColor(42); c1->SetGrid(); c1->GetFrame()->SetFillColor(21); c1->GetFrame()->SetBorderSize(12); Float_t n = 15; Float_t x[n] = {0.5,1.5,2.5,3.5,4.5,5.5,6.5,7.5,8.5,9.5,10.5,11.5,12.5,13.5,14.5}; Float_t y[n] = {0.0077421,0.655101,2.39227,2.84692,2.76064,0.900804,0.0380018,0.012321,0.0104697,0.0091022,0.00525315,0.00912869,0.00405763,0.00465456,0.00483294}; Float_t ex[n] = {.05,.1,.07,.07,.04,.05,.06,.07,.08,.05}; Float_t ey[n] = {.8,.7,.6,.5,.4,.4,.5,.6,.7,.8}; gr = new TGraph(n,x,y); // gr->SetTitle("TGraphErrors Example"); gr->SetMarkerColor(4); gr->SetMarkerStyle(21); gr->Draw("ALP"); c1->Update(); }