I am working with a tree that has a branch that contain a vector object called “jet_pt”, and I only want to extract the 0th element and fill it to a histogram. So I do this in pyROOT,
d = ROOT.RDataFrame(tree) Hist = d.Histo1D("jet_pt")
This gives this error message,
Exception: ROOT::RDF::RResultPtr<TH1D> ROOT::RDF::RInterface<ROOT::Detail::RDF::RJittedFilter,void>::Histo1D<ROOT::Detail::RDF::TInferType, ROOT::Detail::RDF::TInferType>(const ROOT::RDF::TH1DModel& model, experimental::basic_string_view<char,char_traits<char> > vName, experimental::basic_string_view<char,char_traits<char> > wName) => Unknown column: jet_pt (C++ exception of type runtime_error)
It seems that RDataFrame cannot process the index. In TTree this can be done with,
I was assuming RDataFrame would have that functionality. Is there any way around this?
ROOT Version: 6.14
Compiler: Not Provided