I have two trees (channel0 & channel1), each have two branches (t, signal)
I am aiming to read these two trees, and make a condition on (t)- Coincidence , if this condition apply, the code should creat new file and save new tree with the same branches but only include the events that apply the condition .
with this macro, I should find a newtree with two branches (t and s), filled with the same timing of t0, but part of the signals.
but I got t around zero,
PS. the values of (t) is in nano sec
whats wrong with this logic
cheers
ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
The “Part of the macro” is insufficient (nothing can be judged from it).
You would need to post your full macro plus the output of “Channel0->Print();” and “Channel1->Print();” (or the original ROOT file with these trees for inspection).