One D Hist

Hi all !

While running a macro for overalying plots, I am facing quite a lot of errors !
Though IPlease note that I am not facing these errors while doing the same thing on lxplus and getting a nice plot.

Please have a look at my macro and the error message and let me know what I should do !
oneDHist_.C (5.3 KB)

Thanks in advance !


We do not have your data files. Therefore it is not possible to run your macro. Can you provide them of make a macro showing the errors without the need for additional files ?

Hi @Sadhana_Verma ,

as per the error message, some calculations in your code lead to an Inf or NaN (typically the result of a division by zero, the square root of a negative number or similar). The only way to find out is for you to debug your code, using a debugger or inserting print-outs to check what’s going on.