RootTalk


ROOT Discussion Forums

[RooStats] FactorizePdf crahses with missing categories

Discuss RooFit, TMVA and other statistical and mathematical tools here. Please post bug reports here.

Moderators: cranmer, rootdev

[RooStats] FactorizePdf crahses with missing categories

Unread postby lordlukas » Tue Nov 27, 2012 17:12

Hi all,

I want to use the HybridCalculator to test a hypothesis, but it crashes in the constructor, in the FactorizePdf method.
My pdf is a RooSimultaneous with a RooSupercategory as the index.
The RooSupercategory is the product of 2 different RooCategory's, but I don't use all the different combinations of indexes.
To make a simplified example, I'd define and use the following:
Code: Select all
{etacat_0;bdtcat_0}
{etacat_1;bdtcat_0}
{etacat_0;bdtcat_1}

so I don't have the {etacat_1;bdtcat_1} category.
Now, the fit goes well, but the HybridCalculator crashes.
I think I found the line: it is in FactorizePdf, in RooStatsUtils.cxx, line 63:
there, it tries to factorize the pdf of each index even when the pdf is not defined for the given index.

Can this be checked?

Thank you,
Luca

ps meanwhile I'll try to merge my two categories in one single category, but this in not very handy
lordlukas
 
Posts: 11
Joined: Fri Apr 10, 2009 20:11

Re: [RooStats] FactorizePdf crahses with missing categories

Unread postby ibucur » Wed Nov 28, 2012 17:56

Hi Luca,

Yes, you are right, an extra check for the presence of a pdf for each combination of categories should fix this issue. I will commit the patch today. Let me know if this solves your problem.

Cheers,
Gabriel
ibucur
 
Posts: 10
Joined: Mon Mar 19, 2012 12:31


Return to Stat and Math Tool Support

Who is online

Users browsing this forum: No registered users and 3 guests