Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
CentOS Linux release 7.9.2009 (Core)q
/cvmfs/sft.cern.ch/lcg/releases/LCG_97a/ROOT/v6.20.06/x86_64-centos7-gcc8-opt/bin/root
i am trying to read a root tuple created by someone else. the leaves are mostly vector<vector >.
when i create and rdf and use GetColumnType it returns ROOT::VecOps::RVec<vector>, which
is sensible. i read in another posting one needs to create a ROOT.gInterpreter.Declare in order to
loop over the vector. i am not exactly sure how to do that. my attempt is
ROOT.gInterpreter.Declare("""
int break_vector_vector(const ROOT::RVec<vector>& var1) {
std::cout << var1.size() << std::endl;
for (std::size_t i=0; i<var1.size(); i++) {
for (std::size_t j=0; j<var1[i].size(); j++) {
std::cout << i << " " << j << std::endl;
}
}
return 0;
};
“”")
an unrelated question is the cout’s done seem to execute within the gInterpreter in rdataframe python.
is there a trick to using this? thanks in advance. …kj