Although the other rdataframe functionality works fine for me with pyroot, histogramming with Histo1d is not. If I call Histo1d on the rdataframe it returns a RResultPtr that has a value of None. Here is an example code,
rdf = ROOT.RDataFrame(m_tree_name, in_file)
print "The rdf contains: "
print rdf
print "The histo is: "
print rdf.Histo1D("hcand_boosted_n")
print "The value is: "
print rdf.Histo1D("hcand_boosted_n").GetValue()
that returns the following,
The rdf contains:
<ROOT.ROOT::RDataFrame object at 0x520d4f0>
The histo is:
<ROOT.ROOT::RDF::RResultPtr<TH1D> object at 0x3df9580>
The value is:
None
Note that I have been using the framework with filters, defines, etc without problem for a while. Also this branch “hcand_boosted_n” definitely exists, and is something like TTreeReaderValue<Int_t> hcand_boosted_n.
ROOT Version: 6.14
Python: 3.6
Platform: Manjaro
Compiler: Not Provided