[quote=“Wile E. Coyote”]Post here the output of:
tree->Print();[/quote]
Attached is the script and the log output after doing tree->Print(). I have also initialized the variable to the value 1 and upon cout still gives the value 1. It appears that the SetBranchAddress is not reading the value in the tree. log.txt (15.2 KB) problem.C (902 Bytes)
Try the attached macro.
From your attached “log.txt”, it is not clear that “triggerTimeSec” is an “UInt_t”. Maybe now the new output of “tree->Print();” will confirm this but if not then you should make sure that this type is correct, otherwise the macro will not work (actually none of branches “reports” its type, which seems a bit strange to me). problem.C (975 Bytes)
[quote=“Wile E. Coyote”]Try the attached macro.
From your attached “log.txt”, it is not clear that “triggerTimeSec” is an “UInt_t”. Maybe now the new output of “tree->Print();” will confirm this but if not then you should make sure that this type is correct, otherwise the macro will not work (actually none of branches “reports” its type, which seems a bit strange to me).[/quote]