Dear experts,
Recently I was merging trees and saving only several branches like this:
ROOT::RDataFrame df{"NOMINAL", "./merge/*.root"};
df.Snapshot("t", "./test.root", {"jet_pt"});
however I got lots of warnings like this:
Warning in <TChain::CopyAddresses>: Could not find branch named 'jet_phi' in tree named 't'
jet_phi
is a branch in the original NOMINAL
tree, just like jet_pt
.
In TTree source file I found something related:
// FIXME: The GetBranch() function is braindead and may
// not find the branch!
TBranch* br = tree->GetBranch(branch->GetName());
if (br) {
br->SetAddress(addr);
// The copy does not own any object allocated by SetAddress().
if (br->InheritsFrom(TBranchElement::Class())) {
((TBranchElement*) br)->ResetDeleteObject();
}
} else {
Warning("CopyAddresses", "Could not find branch named '%s' in tree named '%s'", branch->GetName(), tree->GetName());
}
So should I worry about this warning? Thanks!
Best,
Kevin
ROOT Version: 6.18.00
Platform: OsX 10.14
Compiler: clang100