Re: python RooFit createIntegral

From: <wlavrijsen_at_lbl.gov>
Date: Tue, 22 Nov 2011 10:57:02 -0800


Margar,

On Tue, 22 Nov 2011, Margar Simonyan wrote:
> none of attempts below work

what does "not work" mean? Several of the RooArgSet() calls should work when passing. They may not have the desired effect b/c of scoping (see below), but the call itself should succeed.

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

There are three problems with using RooFit from python: the CINT dictionaries do not expose using declarations that RooFit has (a few of the most common ones have been explicitly coded in for python). There is no implicit conversion in python as there is in C++ (as is needed for the RooArgSet() calls above). And RooFit likes to cast const away for temporary objects (I consider that a bug, btw.), which hurts in python b/c the scoping rules are different.

So yes, using RooFit from python is painful, unless these issues would be solved explicitly in e.g. the pythonize layer.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Tue Nov 22 2011 - 19:57:13 CET

This archive was generated by hypermail 2.2.0 : Mon Nov 28 2011 - 23:50:01 CET