Hi all-
I am having a problem accessing the RooAbsData::createHistogram methods from a RooDataSet object. The following:
import ROOT
aset = ROOT.RooDataSet()
RooFit v3.12 – Developed by Wouter Verkerke and David Kirkby
Copyright (C) 2000-2009 NIKHEF, University of California & Stanford University
All rights reserved, please read roofit.sourceforge.net/license.txt
aset.createHistogram(“y”, 10, 20)
yields the following error:
Traceback (most recent call last):
File “”, line 1, in
TypeError: none of the 2 overloaded methods succeeded. Full details:
TH2F* RooDataSet::createHistogram(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, const char* cuts = “”, const char* name = “hist”) =>
could not convert argument 1
TH2F* RooDataSet::createHistogram(const RooAbsRealLValue& var1, const RooAbsRealLValue& var2, Int_t nx, Int_t ny, const char* cuts = “”, const char* name = “hist”) =>
takes at least 4 arguments (3 given)
It seems pyROOT doesn’t catch the functions in the RooAbsData base class. Am I doing something wrong, or perhaps there is a workaround?
Thanks!
Mike