Dear expert,
I would like to understand an aspect of RDataFrame::Define
.
My use case is the following :
I have already processed an ntuple with some Define( X , a functor, {"inputneeded"}.Snapshot()
.
Now i load the snapshotted ntuple but my functor is updated.
What i want to achieve is to “re-define” X with the same exact name in a dataframe and use the updated “X” branch.
I have not seen issues or warnings from RDataFrame when this is done, however i am not sure if
Tuple *tuple = GetTupleFromSomewhere();
// this tuple has branch "X" in
ROOT::RDataFrame df( *tuple);
df.Define("X", myFunctor, {"inputs"})
// is now "X" overwriting the existing "X" ?
Also , would ```tuple->SetBranchAddress(“X”, 0) avoid to ship to to the dataframe the branch “X” ?
Thanks in advance
Renato
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided