16#ifndef ROO_ACCEPT_REJECT 
   17#define ROO_ACCEPT_REJECT 
Class RooAbsNumGenerator is the abstract base class for MC event generator implementations like RooAc...
 
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
 
Class RooAcceptReject is a generic toy monte carlo generator implement the accept/reject sampling tec...
 
UInt_t _minTrialsArray[4]
Minimum number of trials samples for 1,2,3 dimensional problems.
 
UInt_t _minTrials
Minimum number of max.finding trials, total number of samples.
 
static void registerSampler(RooNumGenFactory &fact)
Register RooIntegrator1D, is parameters and capabilities with RooNumIntFactory.
 
double getFuncMax() override
 
const RooArgSet * nextAcceptedEvent()
Scan through events in the cache which have not been used yet, looking for the first accepted one whi...
 
void addEventToCache()
Add a trial event to our cache and update our estimates of the function maximum value and integral.
 
double _funcSum
Maximum function value found, and sum of all samples made.
 
bool canSampleConditional() const override
 
bool canSampleCategories() const override
 
std::string const & generatorName() const override
Return unique name of generator implementation.
 
RooAbsNumGenerator * clone(const RooAbsReal &func, const RooArgSet &genVars, const RooArgSet &, const RooNumGenConfig &config, bool verbose=false, const RooAbsReal *maxFuncVal=nullptr) const override
 
UInt_t _totalEvents
Total number of function samples.
 
UInt_t _catSampleMult
Number of real and discrete dimensions to be sampled.
 
const RooArgSet * generateEvent(UInt_t remaining, double &resampleRatio) override
Return a pointer to a generated event.
 
UInt_t _eventsUsed
Accepted number of function samples.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
RooDataSet is a container class to hold unbinned data.
 
RooNumGenConfig holds the configuration parameters of the various numeric integrators used by RooReal...
 
RooNumGenFactory is a factory to instantiate numeric integrators from a given function binding and a ...
 
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
 
RooRealVar represents a variable that can be changed from the outside.