Dear Experts,
I have two sets of numbers, Data = (34,54,25,28), errors are(5,6,4,6).
MC = (56,34,58,14), errors are (7,6,9,3).
I want to plot a graph after dividing each number from each bin. I can draw a tgraph for one set of numbers by following this code. Could you please suggest me what should I add to do that operation ?
Thanks in Advance.
{
auto c1 = new TCanvas("c4","c4",200,0,600,400);
c1->DrawFrame(0.05,0,0.34,12000);
double x[] = {0.1, 0.15, 0.21, 0.32};
double y[] = {2168,8859,6347,7602};
double ex[] = {0, 0, 0, 0, 0};
double ey[] = {238,302,280,385};
auto ge = new TGraphErrors(4, x, y, ex, ey);
ge->SetMarkerStyle(20);
ge->Draw("P");
//ge->Draw("AL");
c1->Update();
//c1->GetFrame()->SetFillColor(1);
c1->GetFrame()->SetBorderSize(12);
c1->Modified();
ge->GetXaxis()->SetTitle("Momentum");
ge->GetYaxis()->SetTitle("Yield");
}
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided