Dear all:
I’d like to manipulate the tree branches like the tree->Draw() option:
tree->Draw(“jet_pt>>hist”,“(weight>0)*2*(event==1)”)
Is there a function or method of that: I’d like to create a new branch (not histogram) with the same number of events, based on the old tree branches. For example:
my_new_branch->FUNCTION(“jet_pt”,“(weight>0)*2*(event==1)”)
or
tree->FUNCTION(“jet_pt>>my_new_branch”,“(weight>0)*2*(event==1)”)
where jet_pt
, weight
and event
are branches from the old tree(or input tree). and my_new_branch
is the new branch (not histogram) I’d like to create with the same number of events as the old tree.
Please read tips for efficient and successful posting and posting code
ROOT Version: 6.22.06
Platform: centos 7.9
Compiler: gcc 8.3.0