16#ifndef ROO_SIM_SPLIT_GEN_CONTEXT
17#define ROO_SIM_SPLIT_GEN_CONTEXT
37 RooDataSet *
generate(
double nEvents= 0,
bool skipInit=
false,
bool extendedMode=
false)
override;
#define ClassDefOverride(name, id)
static void indent(ostringstream &buf, int indent_level)
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
bool _verbose
Verbose messaging?
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDataSet is a container class to hold unbinned data.
RooSimSplitGenContext is an efficient implementation of the generator context specific for RooSimulta...
void setExpectedData(bool) override
Forward to components.
void generateEvent(RooArgSet &theEvent, Int_t remaining) override
this method is empty because it is not used in this type of context
std::vector< RooAbsGenContext * > _gcList
List of component generator contexts.
RooArgSet _allVarsPdf
All pdf variables.
void attach(const RooArgSet ¶ms) override
Attach the index category clone to the given event buffer.
void initGenerator(const RooArgSet &theEvent) override
Perform one-time initialization of generator context.
double * _fracThresh
fraction thresholds
RooDataSet * createDataSet(const char *name, const char *title, const RooArgSet &obs) override
this method is empty because it is not used by this context
Int_t _numPdf
Number of generated PDFs.
void printMultiline(std::ostream &os, Int_t content, bool verbose=false, TString indent="") const override
Detailed printing interface.
const RooSimultaneous * _pdf
Original PDF.
RooDataSet * generate(double nEvents=0, bool skipInit=false, bool extendedMode=false) override
Generate the specified number of events with nEvents>0 and and return a dataset containing the genera...
std::vector< int > _gcIndex
Index value corresponding to component.
void setProtoDataOrder(Int_t *lut) override
this method is empty because proto datasets are not supported by this context
~RooSimSplitGenContext() override
Destructor. Delete all owned subgenerator contexts.
RooArgSet * _idxCatSet
Owner of index category components.
RooAbsCategoryLValue * _idxCat
Clone of index category.
TString _idxCatName
Name of index category.
RooSimSplitGenContext(const RooSimSplitGenContext &other)
RooSimultaneous facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset.