Hi
I am trying to fill a branch (new_Branch) with existing a branch (old_file) data from a root file
and my out put(new_file) will be my new tree (new_tree) with new Branch (new_Branch) which i am trying to fill it.
so the new Branch have a new name but have the the same data of old Branch
My problem ,i can’t until now link between old branch and new branch to store the old branch in the new branch in the loop.
i hope the problem has been explained well.
thanks
Hi @eddymaoui,
see the copytree and copytree2 tutorials: if you just want to copy a branch from a TTree to another, you can just SetBranchStatus("branch", 1) and then call Write on the TTree returned by CloneTree.
@pcanal might help with how to also add other branches to the new TTree.
HI @eguiraud@pcanal
the old branch cited in the old file ,i don’t wan add the old branch
i wana fill the new branch with the containt of old branch ,
for example
i wana fill the branche “eventNumber_” with the containt of the old branch called “id”
help me please
thanks
IncrementalExecutor::executeFunction: symbol '_ZN4ROOT8Internal3RDF11RActionBaseD2Ev' unresolved while linking function '_GLOBAL__sub_I_cling_module_8'!
You are probably missing the definition of ROOT::Internal::RDF::RActionBase::~RActionBase()
i see thet preferable to solve this issue without RDataFrame ;
for your attention the clone of old tree with his branche and the creation of new tree with his branche has been set up well without any probemes ;so i need juste a link btween the old and new branches .
i hope you understood my idea