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;
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 const char * GetTitle() const
Returns title of object.
virtual void printName(std::ostream &os) const
Print name 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 contains(const RooAbsArg &var) const
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.
TString & Prepend(const char *cs)
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
const RooDataSet * _prototype
Iterator abstract base class.
Bool_t isInRange(const char *rangeSpec)
virtual StyleOption defaultPrintStyle(Option_t *opt) const
Define default print style.
const char * Data() const
virtual void printArgs(std::ostream &os) const
Print arguments of context, i.e. the observables being generated in this context. ...
The TNamed class is the base class for all named ROOT classes.
ClassImp(RooAbsGenContext)
std::map< std::string, std::string >::const_iterator iter
TIterator * createIterator(Bool_t dir=kIterForward) const
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.
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
virtual void attach(const RooArgSet ¶ms)
Interface to attach given parameters to object in this context.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual Int_t numEntries() const
virtual ExtendMode extendMode() const
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)=0
virtual void printTitle(std::ostream &os) const
Print title of context.
virtual const char * GetName() const
Returns name of object.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooDataSet is a container class to hold unbinned data.
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.
RooCmdArg EventRange(Int_t nStart, Int_t nStop)
const char * normRange() const
Bool_t canBeExtended() const
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Interface for multi-line printing.
virtual void setProtoDataOrder(Int_t *lut)
Set the traversal order of prototype data to that in the lookup tables passed as argument.
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...
virtual Int_t defaultPrintContents(Option_t *opt) const
Define default contents when printing.
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
virtual RooAbsArg * addClone(const RooAbsArg &var, Bool_t silent=kFALSE)
Add clone of specified element to an owning set.
Bool_t recursiveCheckObservables(const RooArgSet *nset) const
Recursively call checkObservables on all nodes in the expression tree.
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...
static void output(int code)
virtual void initGenerator(const RooArgSet &theEvent)
Interface function to initialize context for generation for given set of observables.
virtual const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add element to non-owning set.
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 void printClassName(std::ostream &os) const
Print class name of context.
void setDirtyProp(Bool_t flag)
Control propagation of dirty flags from observables in dataset.