I am a newbie in using root. I have plotted a efficiency curve for which the code is given below.
I have fitted the curve with an ease. Everything is perfect.
Now the problem comes here when I try to calculate the values of relative efficiencies at various energy values manually it does not seem to be correct.
Thanks for replying.
I am getting a number around1500 when I calculated manually by using calculator and from the program i am getting the correct value of 0.89.
can you please tell me how can i correlate that value with the value that i am getting manually.
Thanks
Processing efficiency_R.C...
Error in <TGraphErrors::TGraphErrors>: Cannot open file: efficiency.dat, TGraphErrors is Zombie
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
Warning in <Fit>: Fit data is empty
Error in <TGraphPainter::PaintGraph>: illegal number of points (0)
y = 0.809395
Hi @robertfroast ,
the thread is becoming a bit messy, sorry
If I understand correctly your program returns the correct value while your own calculation yields a wrong value. I am afraid there is a problem with your manual calculation, but I am not sure we can help with that (at the very least we need many more details).