python RooFit createIntegral

From: Margar Simonyan <margar.simonyan_at_gmail.com>
Date: Tue, 22 Nov 2011 14:12:06 +0100


Hello

I am trying to use RooFit from python and my one day experience is not so good, just because of choice of python one has to find various workarounds.
Things which should be trivial are not working, I have a pdf and a variable, now I want to create integral object

In [1]: pdf
Out[1]: <ROOT.RooHistPdf object ("W") at 0xb3eb7c8>

In [2]: mt
Out[2]: <ROOT.RooRealVar object ("mt") at 0xb3d2630>

none of attempts below work

pdf.createIntegral(mt)
pdf.createIntegral(ROOT.RooArgSet(mt))
pdf.createIntegral(ROOT.RooArgSet(mt), ROOT.RooArgSet(mt))
arg = ROOT.RooArgSet(mt)
pdf.createIntegral(arg)
pdf.createIntegral(arg, arg)
ROOT.RooAbsReal.createIntegral(pdf, arg, arg)

either cannot convert arguments or wants more arguments.

Any help? Maybe RooFit/PyRoot pages should explicitly say "python is not supported", which will be pity, but ...

Thanks,

      Margar



 Dr Margar Simonyan,  post-doctoral researcher
 Niels Bohr Institute, Copenhagen University

Received on Tue Nov 22 2011 - 14:12:44 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 22 2011 - 23:50:02 CET