I’m having an issue where my loop defined in macros is working fine, but the histogram is only outputted correctly on the initial run (i.e. every subsequent run outputs an empty histogram). I have tried to reset the histogram in BeginOfRunAction and EndOfRunAction, but the issue seems the same regardless. Is there a standard way of doing this to make sure histograms are correctly populated for every run?
Hi - not sure if you realise you replied on my post hahah but anyway I usually get that error if I’m missing the following lines from the end of my main.cc code: delete visManager; delete runManager;
Try adding those in if they’re not in already and that should fix it I think
Can you try to run 2 runs with verbose level 4, save your output in a file. This should help you to see that your histograms are filled in the 2nd run, and if they are cleared or reset afterwards, this should also produce a message.