60 RooAbsGenContext(model,vars,prototype,auxProto,verbose), _pdfVarsOwned(0), _modelVarsOwned(0)
62 cxcoutI(
Generation) <<
"RooConvGenContext::ctor() setting up special generator context for analytical convolution p.d.f. " << model.
GetName()
63 <<
" for generation of observable(s) " << vars << endl ;
68 coutE(
Generation) <<
"RooConvGenContext::RooConvGenContext(" <<
GetName() <<
") Couldn't deep-clone PDF, abort," << endl ;
84 coutE(
Generation) <<
"RooConvGenContext::RooConvGenContext(" <<
GetName() <<
") Couldn't deep-clone resolution model, abort," << endl ;
132 cxcoutI(
Generation) <<
"RooConvGenContext::ctor() setting up special generator context for numeric convolution p.d.f. " << model.
GetName()
133 <<
" for generation of observable(s) " << vars << endl ;
172 cxcoutI(
Generation) <<
"RooConvGenContext::ctor() setting up special generator context for fft convolution p.d.f. " << model.
GetName()
173 <<
" for generation of observable(s) " << vars << endl ;
325 os << indent <<
"--- RooConvGenContext ---" << endl ;
326 os << indent <<
"List of component generators" << endl ;
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
RooAbsReal & cloneModel() 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...
RooAbsReal & clonePdf() const
virtual Bool_t replace(const RooAbsArg &var1, const RooAbsArg &var2)
Replace var1 with var2 and return kTRUE for success.
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
const RooRealVar * convVar() const
Return a pointer to the convolution variable instance used in the resolution model.
virtual Bool_t isValidReal(Double_t value, Bool_t printError=kFALSE) const
Check if given value is valid.
const RooAbsReal & arg() 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 Bool_t addOwned(RooAbsArg &var, Bool_t silent=kFALSE)
Add element to an owning set.
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)
Generate a single event.
RooRealVar & cloneVar() const
TString & Append(const char *cs)
virtual Bool_t changeModel(const RooResolutionModel &newModel)
Change the current resolution model to newModel.
Double_t getVal(const RooArgSet *set=0) const
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
RooAbsGenContext * _pdfGen
virtual void attach(const RooArgSet ¶ms)
Interface to attach given parameters to object in this context.
virtual void changeBasis(RooFormulaVar *basis)
Change the basis function we convolute with.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooAbsGenContext * _modelGen
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.
RooRealVar & convVar() const
Return the convolution variable of the resolution model.
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)=0
virtual const char * GetName() const
Returns name of object.
static void indent(ostringstream &buf, int indent_level)
RooArgSet * _modelVarsOwned
RooArgSet * _pdfVarsOwned
RooNumConvolution & conv() const
RooAbsArg * at(Int_t idx) const
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print the details of this generator context.
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 Bool_t remove(const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
Remove the specified argument from our list.
ClassImp(RooConvGenContext)
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.
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.
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.