91                           << 
":generateEvent: value of efficiency is larger than assumed maximum of 1." << std::endl;
 
  106   os << 
indent << 
"--- RooEffGenContext ---" << endl;
 
  107   os << 
indent << 
"Using EFF ";
 
  109   os << 
indent << 
"PDF generator" << endl;
 
static void indent(ostringstream &buf, int indent_level)
 
bool recursiveRedirectServers(const RooAbsCollection &newServerList, bool mustReplaceAll=false, bool nameChange=false, bool recurseInNewSet=true)
Recursively replace all servers with the new servers in newSet.
 
RooAbsArg * find(const char *name) const
Find object with given name in list.
 
RooAbsGenContext is the abstract base class for generator contexts of RooAbsPdf objects.
 
virtual void initGenerator(const RooArgSet &theEvent)
Interface function to initialize context for generation for given set of observables.
 
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Interface for multi-line printing.
 
virtual void generateEvent(RooArgSet &theEvent, Int_t remaining)=0
 
virtual RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype=nullptr, const RooArgSet *auxProto=nullptr, bool verbose=false) const
Interface function to create a generator context from a p.d.f.
 
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
 
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
 
virtual double maxVal(Int_t code) const
Return maximum value for set of observables identified by code assigned in getMaxVal.
 
virtual Int_t getMaxVal(const RooArgSet &vars) const
Advertise capability to determine maximum value of function for given set of observables.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
 
RooDataSet is a container class to hold unbinned data.
 
RooEffGenContext is a specialized generator context for p.d.fs represented by class RooEffProd,...
 
void generateEvent(RooArgSet &theEvent, Int_t remaining) override
Generate one event.
 
void printMultiline(std::ostream &os, Int_t content, bool verbose=false, TString indent="") const override
Detailed printing interface.
 
RooArgSet * _cloneSet
Internal clone of p.d.f.
 
RooEffGenContext(const RooAbsPdf &model, const RooAbsPdf &pdf, const RooAbsReal &eff, const RooArgSet &vars, const RooDataSet *prototype=nullptr, const RooArgSet *auxProto=nullptr, bool verbose=false, const RooArgSet *forceDirect=nullptr)
Constructor of generator context for RooEffProd products.
 
void initGenerator(const RooArgSet &theEvent) override
One-time initialization of generator.
 
RooArgSet * _vars
Vars to generate.
 
RooAbsGenContext * _generator
Generator context for p.d.f.
 
~RooEffGenContext() override
Destructor.
 
double _maxEff
Maximum of efficiency in vars.
 
RooAbsReal * _eff
Pointer to efficiency function.
 
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer,...
 
static double uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
 
const char * GetName() const override
Returns name of object.
 
virtual const char * ClassName() const
Returns name of class to which the object belongs.
 
TString & Append(const char *cs)