Finally I solve the problem.
I find that RooMCStudy defined as 'friend' for RooAbsPdf, therefore
RooMCStudy can access protected members.
And to access RooAbsPdf::genContext() from my code I use following
wrapper:
class RooAbsPdfWrap: public RooAbsPdf {
public:
using RooAbsPdf::genContext;
};
...
RooAbsPdf& model;
RooAbsGenContext* context = ((RooAbsPdfWrap*) &model)->genContext(vars);
> I want to use RooAbsPdf::genContext() method to speedup generation.
> Unfortunately, this method is protected, and I can't use it directly.
> In the same time, I see in RooMCStudy than this method used without
> any special tricks.
> Can you give me an idea how to use RooAbsPdf::genContext()?
-- Best regards, AntonReceived on Mon Nov 03 2008 - 13:04:04 CET
This archive was generated by hypermail 2.2.0 : Mon Nov 03 2008 - 23:50:02 CET