Re: How to load up a TTree in a RooDataSet inside PyRoot???

From: <wlavrijsen_at_lbl.gov>
Date: Sat, 25 Dec 2010 08:07:57 -0800


Augusto,

> I followed the suggestion and this are the error messages:

yes, but that's no longer related to the Import(tree). If you read the error message, it says that none of the methods takes a RooArgSet as a third argument.

>From the looks of it, in this:

> 85 rooData= ROOT.RooDataSet('data', 'dataset'
> , ROOT.RooArgSet(rooVar)
> ---> 86 , ROOT.RooFit.Import(tree) ,
> ROOT.RooFit.Cut(Cut + ' && 1' ))

the third and fourth arguments are inverted, for the match with:

> RooDataSet::RooDataSet(const char* name, const char* title,
> RooDataSet* data, const RooArgSet& vars, const RooFormulaVar&
> cutVar, const char* wgtVarName = 0) =>
> could not convert argument 3

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Sat Dec 25 2010 - 17:08:10 CET

This archive was generated by hypermail 2.2.0 : Sun Dec 26 2010 - 23:50:01 CET