Hi ,
I am trying to plot certain variables from three different root files in the same canvas. But when I run the script I get the following error:
Error: illegal pointer to class object Get(chvar[ivar]) 0x0 12 overlap2.C:54:
When I remove line 54 the code works fine. It seems there is some problem with the root or some thing like which I am not smart enough to figure out. Please bail me out help will be appreciated. I have added the root file which is troubling me and the script overlap2.C (2.77 KB) J_1_40.root (12.1 KB)