Hello Rooters,
I’m working on a TGraphErrors which is supposed to be filled with single points. Therefore is use the classes member function AddPointError() as stated in the documentation / class reference.
Sadly the following error message is reutrned for evry single line of AddPointError():
error: no member named ‘AddPointError’ in ‘TGraphErrors’
RatioGraph->AddPointError(5.89909,0.956899,0.006294,0.000388);
~~~~~~~~~~ ^
For reference I present you a functional cut of the Root Macro below and attach the entire file. [edit: new here->cant attach file cuz link]
void RatioPlot(){
auto *RatioGraph = new TGraphErrors();
RatioGraph->SetTitle("Transmission Ratios;Target length along beam axis [mm];Transmission [a.u.]");
RatioGraph->GetXaxis()->CenterTitle();
RatioGraph->GetYaxis()->CenterTitle();
//s533_50_gC_6mm_0045
RatioGraph->AddPointError(5.89909,0.956899,0.006294,0.000388);
//s533_50_gC_12mm_0046
RatioGraph->AddPointError(11.801295,0.918984,0.007238109145,0.000457);
auto *RatioCanvas = new TCanvas("Transmission Ratios","RatioCanvas",1,1,2220,1440);
RatioGraph->Draw("ap");
}
ROOT Version: ROOT 6.30/04
Platform: Linux Debian +/- Bookworm
Compiler: Standard Root Cling ?