I am having trouble running the simple attached code that inputs an n-tuple, loops over its events and does a simple calculation (2+3=5). I keep on receiving the following error:
Error: Incorrect assignment to c, wrong type ‘Int_t’ test.cpp:20:
*** Interpreter error recovered **
Weirder still, when I include a line above the calculation: cout<<iEvent<<endl;- the code works fine!
I am doing analysis on many n-tuples and I have a large analysis code. I wrote this test script because I discovered that (for unknown reasons to me) whenever I added a small amount of code to my analysis code, it wouldn’t run.
Any help with this matter would be greatly appreciated. I also could attach the file 126937.root if that would help.
Thanks,
David test.cpp (555 Bytes)
I tried changing the function name to test and testmain, and it didn’t change anything.
Unfortunately it seems like the root file is too large to be attached.
Do you still have this problem? If you do I recommend you run with valgrind and report valgrind’s finding and/or provide a complete running example showing the problem.