56 _prototype(prototype),
65 coutE(
Generation) <<
"RooAbsGenContext::ctor: Error in PDF dependents" << endl ;
167 <<
":generate: PDF not extendable: cannot calculate expected number of events" << endl;
174 <<
":generate: cannot calculate expected number of events" << endl;
178 << nEvents <<
" events" << endl;
185 cxcoutI(
Generation) <<
" Extended mode active, number of events generated (" << nEvents <<
") is Poisson fluctuation on " 186 <<
GetName() <<
"::expectedEvents() = " << nExpEvents << endl ;
199 << arg->
GetName() <<
"\"" << endl;
214 title.Prepend(
"Generated From ");
242 << actualProtoIdx <<
" from prototype dataset" << endl;
304 os << IsA()->GetName() ;
361 for (i=0 ; i<
n ; i++) {
380 cxcoutD(
Generation) <<
"RooGenContext::resampleData*( existing production trimmed from " << nOrig <<
" to " << trimmedData->
numEntries() <<
" events" << endl ;
414 if (opt && TString(opt).Contains(
"v")) {
virtual StyleOption defaultPrintStyle(Option_t *opt) const
Define default print style.
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default contents when printing.
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
const RooDataSet * _prototype
Iterator abstract base class.
Bool_t isInRange(const char *rangeSpec)
const char * normRange() const
virtual const char * ClassName() const
Returns name of class to which the object belongs.
The TNamed class is the base class for all named ROOT classes.
if on multiple lines(like in C++). **The " * configuration fragment. * * The "import myobject continue
Parses the configuration file.
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
virtual void printClassName(std::ostream &os) const
Print class name of context.
virtual void printArgs(std::ostream &os) const
Print arguments of context, i.e. the observables being generated in this context. ...
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
virtual void addClone(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling addOwned() for each element in the source...
virtual void attach(const RooArgSet ¶ms)
Interface to attach given parameters to object in this context.
virtual void printTitle(std::ostream &os) const
Print title of context.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
Bool_t recursiveCheckObservables(const RooArgSet *nset) const
Recursively call checkObservables on all nodes in the expression tree.
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)=0
RooDataSet is a container class to hold unbinned data.
Bool_t canBeExtended() const
virtual const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
virtual void addFast(const RooArgSet &row, Double_t weight=1.0, Double_t weightError=0)
Add a data point, with its coordinates specified in the 'data' argset, to the data set...
RooAbsGenContext(const RooAbsPdf &model, const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t _verbose=kFALSE)
Constructor.
virtual ExtendMode extendMode() const
RooCmdArg EventRange(Int_t nStart, Int_t nStop)
virtual void printName(std::ostream &os) const
Print name of context.
virtual void setProtoDataOrder(Int_t *lut)
Set the traversal order of prototype data to that in the lookup tables passed as argument.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Interface for multi-line printing.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
virtual ~RooAbsGenContext()
Destructor.
virtual RooDataSet * generate(Double_t nEvents=0, Bool_t skipInit=kFALSE, Bool_t extendedMode=kFALSE)
Generate the specified number of events with nEvents>0 and and return a dataset containing the genera...
void resampleData(Double_t &ratio)
Rescale existing output buffer with given ratio.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual TObject * Next()=0
Bool_t contains(const RooAbsArg &var) const
virtual Int_t Poisson(Double_t mean)
Generates a random integer N according to a Poisson law.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual void initGenerator(const RooArgSet &theEvent)
Interface function to initialize context for generation for given set of observables.
virtual Int_t numEntries() const
RooAbsPdf::ExtendMode _extendMode
virtual RooDataSet * createDataSet(const char *name, const char *title, const RooArgSet &obs)
Create an empty dataset to hold the events that will be generated.
virtual const char * GetTitle() const
Returns title of object.
void setDirtyProp(Bool_t flag)
Control propagation of dirty flags from observables in dataset.