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