95 <<
":generateEvent: value of efficiency is larger than assumed maximum of 1." << std::endl;
virtual const char * GetName() const
Returns name of object.
void initGenerator(const RooArgSet &theEvent)
One-time initialization of generator.
Double_t getVal(const RooArgSet *set=0) const
virtual ~RooEffGenContext()
Destructor.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
RooEffGenContext(const RooAbsPdf &model, const RooAbsPdf &pdf, const RooAbsReal &eff, const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t verbose=kFALSE, const RooArgSet *forceDirect=0)
Constructor of generator context for RooEffProd products.
void generateEvent(RooArgSet &theEvent, Int_t remaining)
Generate one event.
virtual Double_t maxVal(Int_t code) const
Return maximum value for set of observables identified by code assigned in getMaxVal.
RooEffGenContext is a specialized generator context for p.d.fs represented by class RooEffProd...
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)=0
RooDataSet is a container class to hold unbinned data.
static Double_t uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
RooAbsGenContext * _generator
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Bool_t recursiveRedirectServers(const RooAbsCollection &newServerList, Bool_t mustReplaceAll=kFALSE, Bool_t nameChange=kFALSE, Bool_t recurseInNewSet=kTRUE)
virtual Int_t getMaxVal(const RooArgSet &vars) const
Advertise capability to determine maximum value of function for given set of observables.
virtual void initGenerator(const RooArgSet &theEvent)
Interface function to initialize context for generation for given set of observables.