Adding a new branch such that invariant mass that not exist in DelphesTree

Hello Dr @moneta ,
I use TMVA to fit input data as tree.root.the tree is Delphes .But according to the defined
Branches and varaibles within headerfile (tree=Delphes) ,not all branches are exist .Another meaning if i want to add a new branch such that the invariant mass that not exist in header file .Is i create a new tree to clone the old tree and modify it to add a new brach ? .This is my suggested idea or is there another way?.Could you clarify this issue with an attached example?

Thanks
Ahmed

treeAnalysis.C (9.6 KB)
treeAnalysis.h (83.0 KB)
SetupTMVA.C (5.6 KB)

Hi Ahmed,

Waiting for @moneta to reply, I must confess it is not clear to me what exactly you want to achieve.
Are you aiming to add a transient column to your dataset? Have you tried the ROOT: ROOT::RDataFrame Class Reference class and its Define method?

Best,
D

Hello Dr @Danilo ,

No,I mean adding a new branch from a new tree except the old Tree (Delphes) that not
Contain all branches and variables.How much
Time to reply on my question?

Thanks
Ahmed

Hello root_TMVA experts,

Is there a solution for my issue?

Thanks
Ahmed