61 RooAbsGenContext(model,vars,prototype,auxProto,verbose), _pdfVarsOwned(0), _modelVarsOwned(0)
63 cxcoutI(
Generation) <<
"RooConvGenContext::ctor() setting up special generator context for analytical convolution p.d.f. " << model.
GetName()
64 <<
" for generation of observable(s) " << vars << endl ;
69 coutE(
Generation) <<
"RooConvGenContext::RooConvGenContext(" <<
GetName() <<
") Couldn't deep-clone PDF, abort," << endl ;
85 coutE(
Generation) <<
"RooConvGenContext::RooConvGenContext(" <<
GetName() <<
") Couldn't deep-clone resolution model, abort," << endl ;
133 cxcoutI(
Generation) <<
"RooConvGenContext::ctor() setting up special generator context for numeric convolution p.d.f. " << model.
GetName()
134 <<
" for generation of observable(s) " << vars << endl ;
173 cxcoutI(
Generation) <<
"RooConvGenContext::ctor() setting up special generator context for fft convolution p.d.f. " << model.
GetName()
174 <<
" for generation of observable(s) " << vars << endl ;
326 os << indent <<
"--- RooConvGenContext ---" << endl ;
327 os << indent <<
"List of component generators" << endl ;
329 TString indent2(indent) ;
330 indent2.Append(
" ") ;
virtual const char * GetName() const
Returns name of object.
RooTruthModel is an implementation of RooResolution model that provides a delta-function resolution m...
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...
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
RooArgSet * _modelCloneSet
RooAbsCollection * selectCommon(const RooAbsCollection &refColl) const
Create a subset of the current collection, consisting only of those elements that are contained as we...
virtual Bool_t replace(const RooAbsArg &var1, const RooAbsArg &var2)
Replace var1 with var2 and return kTRUE for success.
Double_t getVal(const RooArgSet *set=0) const
RooRealVar & convVar() const
Return the convolution variable of the resolution model.
RooAbsReal & cloneModel() const
virtual void setProtoDataOrder(Int_t *lut)
Set the traversal order for events in the prototype dataset The argument is a array of integers with ...
virtual void initGenerator(const RooArgSet &theEvent)
One-time initialization of generator context, attaches the context to the supplied event container...
virtual ~RooConvGenContext()
Destructor.
virtual void attach(const RooArgSet ¶ms)
Attach given set of arguments to internal clones of pdf and resolution model.
void removeRange(const char *name=0)
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)
Generate a single event.
const RooRealVar * convVar() const
Return a pointer to the convolution variable instance used in the resolution model.
RooConvGenContext is an efficient implementation of the generator context specific for RooAbsAnaConvP...
virtual Bool_t changeModel(const RooResolutionModel &newModel)
Change the current resolution model to newModel.
RooAbsGenContext * _pdfGen
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void attach(const RooArgSet ¶ms)
Interface to attach given parameters to object in this context.
RooAbsReal & clonePdf() const
virtual void changeBasis(RooFormulaVar *basis)
Change the basis function we convolute with.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
virtual Bool_t isValidReal(Double_t value, Bool_t printError=kFALSE) const
Check if given value is valid.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
RooAbsGenContext * _modelGen
RooAbsArg * at(Int_t idx) const
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)=0
virtual Bool_t addOwned(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling addOwned() for each element in the source...
RooArgSet * _modelVarsOwned
RooDataSet is a container class to hold unbinned data.
virtual const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
RooArgSet * _pdfVarsOwned
RooAbsArg * find(const char *name) const
Find object with given name in list.
virtual RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t verbose=kFALSE) const
Interface function to create a generator context from a p.d.f.
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 TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
RooRealVar & cloneVar() const
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooConvGenContext(const RooFFTConvPdf &model, const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t _verbose=kFALSE)
Constructor for specialized generator context for FFT numerical convolutions.
RooNumConvolution & conv() const
virtual RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t verbose=kFALSE) const
Create a generator context for this p.d.f.
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print the details of this generator context.
const RooAbsReal & arg() const
Numeric 1-dimensional convolution operator PDF.
virtual void initGenerator(const RooArgSet &theEvent)
Interface function to initialize context for generation for given set of observables.