Error with RDataFrame filter


I’m currently trying to use RDataFrame for the first time with an ATLAS xAOD. I’m on lxplus using 6.14.

If I try the following:

df= RDataFrame(“CollectionTree”, “HGamxAOD.root”)

df = df.Filter(“HGamEventInfoAuxDyn.m_yy >= 110000.0”)

I get:

#12 0x00007f48ead02946 in ROOT::Internal::RDF::GetBranchNamesImpl(TTree&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::set<TTree*, std::less<TTree*>, std::allocator<TTree*> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) () from /cvmfs/

#13 0x00007f48ead02d60 in ROOT::Internal::RDF::GetBranchNamesabi:cxx11 () from /cvmfs/

Do you have any suggestion for me?

Thanks a lot!

_ROOT Version:6.14
Compiler: Not Provided

Hi Alan,

thanks for reporting. That’s odd. Are you at the prompt? Is this PyROOT?
Is it an option to try LCG95?


Hi Danilo,

Thanks for your quick reply and apologies for my slow reply!
This was in pyROOT.

I fixed it by setting up the atlas release, I wasn’t aware it was necessary to do this. Although I now have another problem… I’m trying to skim a dataset with a selection and write out some new variables to a TTree. I found the example and copied it as follows:

colNames = ROOT.vector(‘string’)()

dOut.Snapshot(“newtree”, “newfile.root”,colNames)

but I get the error:
ROOT::RDF::RResultPtr<ROOT::RDF::RInterface<ROOT::Detail::RDF::RLoopManager,void> > ROOT::RDF::RInterface<ROOT::Detail::RDF::RJittedFilter,void>::Snapshot(experimental::basic_string_view<char,char_traits<char> > treename, experimental::basic_string_view<char,char_traits<char> > filename, const vector<string>& columnList, const ROOT::RDF::RSnapshotOptions& options = ROOT::RDF::RSnapshotOptions()) =>

Am I correct in thinking this is due to the atlas release using root 6.14.08?

Thanks again!

Hi Alan,

I missed the post, apologies.
How can I reproduce the problem? Can you share a python script which exibit the same behaviour?


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.