virtual void initGenerator(const RooArgSet &theEvent)
One-time initialization of generator contex.
RooAddModel::CacheElem * _mcache
RooAddGenContext(const RooAddGenContext &other)
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print the details of the context.
std::vector< RooAbsGenContext * > _gcList
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)
Randomly choose one of the component contexts to generate this event, with a probability proportional...
RooAddPdf::CacheElem * _pcache
RooAddModel cache element.
virtual void attach(const RooArgSet ¶ms)
Attach given set of variables to internal p.d.f. clone.
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooAddGenContext is an efficient implementation of the generator context specific for RooAddPdf PDFs.
virtual void setProtoDataOrder(Int_t *lut)
Forward the setProtoDataOrder call to the component generator contexts.
virtual ~RooAddGenContext()
Destructor. Delete all owned subgenerator contexts.
void updateThresholds()
Update the cumulative threshold table from the current coefficient values.
RooAddGenContext(const RooAddPdf &model, const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t _verbose=kFALSE)
Constructor.