RooAcceptReject Class Reference

#include <RooAcceptReject.h>

Inheritance diagram for RooAcceptReject:

RooAbsNumGenerator RooAbsNumGenerator RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed List of all members.

Public Member Functions

 RooAcceptReject ()
 RooAcceptReject (const RooAbsReal &func, const RooArgSet &genVars, const RooNumGenConfig &config, Bool_t verbose=kFALSE, const RooAbsReal *maxFuncVal=0)
RooAbsNumGeneratorclone (const RooAbsReal &func, const RooArgSet &genVars, const RooArgSet &, const RooNumGenConfig &config, Bool_t verbose=kFALSE, const RooAbsReal *maxFuncVal=0) const
virtual ~RooAcceptReject ()
const RooArgSetgenerateEvent (UInt_t remaining, Double_t &resampleRatio)
Double_t getFuncMax ()
virtual Bool_t canSampleConditional () const
virtual Bool_t canSampleCategories () const
 RooAcceptReject ()
 RooAcceptReject (const RooAbsReal &func, const RooArgSet &genVars, const RooNumGenConfig &config, Bool_t verbose=kFALSE, const RooAbsReal *maxFuncVal=0)
RooAbsNumGeneratorclone (const RooAbsReal &func, const RooArgSet &genVars, const RooArgSet &, const RooNumGenConfig &config, Bool_t verbose=kFALSE, const RooAbsReal *maxFuncVal=0) const
virtual ~RooAcceptReject ()
const RooArgSetgenerateEvent (UInt_t remaining, Double_t &resampleRatio)
Double_t getFuncMax ()
virtual Bool_t canSampleConditional () const
virtual Bool_t canSampleCategories () const

Protected Member Functions

void addEventToCache ()
const RooArgSetnextAcceptedEvent ()
void addEventToCache ()
const RooArgSetnextAcceptedEvent ()

Static Protected Member Functions

static void registerSampler (RooNumGenFactory &fact)
static void registerSampler (RooNumGenFactory &fact)

Protected Attributes

Double_t _maxFuncVal
Double_t _funcSum
UInt_t _realSampleDim
UInt_t _catSampleMult
UInt_t _minTrials
UInt_t _totalEvents
UInt_t _eventsUsed
TIterator_nextCatVar
TIterator_nextRealVar
UInt_t _minTrialsArray [4]
TIterator_nextCatVar
TIterator_nextRealVar

Friends

class RooNumGenFactory

Detailed Description

Definition at line 29 of file RooAcceptReject.h.


Constructor & Destructor Documentation

RooAcceptReject::RooAcceptReject (  )  [inline]

Definition at line 31 of file RooAcceptReject.h.

Referenced by clone().

RooAcceptReject::RooAcceptReject ( const RooAbsReal func,
const RooArgSet genVars,
const RooNumGenConfig config,
Bool_t  verbose = kFALSE,
const RooAbsReal maxFuncVal = 0 
)

Definition at line 72 of file RooAcceptReject.cxx.

References _catSampleMult, RooAbsNumGenerator::_catVars, _eventsUsed, RooAbsNumGenerator::_funcClone, RooAbsNumGenerator::_funcMaxVal, _funcSum, _maxFuncVal, _minTrials, _minTrialsArray, _nextCatVar, _nextRealVar, _realSampleDim, RooAbsNumGenerator::_realVars, _totalEvents, RooAbsNumGenerator::_verbose, ccoutI, TObject::ClassName(), coutI, coutW, RooAbsCollection::createIterator(), TNamed::fName, RooFit::Generation, RooAbsCollection::getSize(), RooPrintable::kName, RooPrintable::kSingleLine, TIterator::Next(), RooAbsCategory::numTypes(), and RooPrintable::printStream().

RooAcceptReject::~RooAcceptReject (  )  [virtual]

Definition at line 158 of file RooAcceptReject.cxx.

References _nextCatVar, and _nextRealVar.

RooAcceptReject::RooAcceptReject (  )  [inline]

Definition at line 31 of file RooAcceptReject.h.

RooAcceptReject::RooAcceptReject ( const RooAbsReal func,
const RooArgSet genVars,
const RooNumGenConfig config,
Bool_t  verbose = kFALSE,
const RooAbsReal maxFuncVal = 0 
)

virtual RooAcceptReject::~RooAcceptReject (  )  [virtual]


Member Function Documentation

RooAbsNumGenerator* RooAcceptReject::clone ( const RooAbsReal func,
const RooArgSet genVars,
const RooArgSet ,
const RooNumGenConfig config,
Bool_t  verbose = kFALSE,
const RooAbsReal maxFuncVal = 0 
) const [inline, virtual]

Implements RooAbsNumGenerator.

Definition at line 35 of file RooAcceptReject.h.

References func(), RooAcceptReject(), and verbose.

const RooArgSet * RooAcceptReject::generateEvent ( UInt_t  remaining,
Double_t resampleRatio 
) [virtual]

Implements RooAbsNumGenerator.

Definition at line 168 of file RooAcceptReject.cxx.

References RooAbsNumGenerator::_cache, _eventsUsed, RooAbsNumGenerator::_funcMaxVal, _funcSum, _maxFuncVal, _minTrials, _totalEvents, addEventToCache(), coutE, coutI, cxcoutD, extra, RooFit::Generation, RooDataSet::get(), RooAbsCollection::getSize(), RooAbsReal::getVal(), Long64_t, nextAcceptedEvent(), RooAbsData::numEntries(), and RooAbsData::reset().

Double_t RooAcceptReject::getFuncMax (  )  [virtual]

Reimplemented from RooAbsNumGenerator.

Definition at line 323 of file RooAcceptReject.cxx.

References RooAbsNumGenerator::_cache, _eventsUsed, _maxFuncVal, _minTrials, _totalEvents, addEventToCache(), coutI, RooFit::Generation, RooAbsData::numEntries(), and RooAbsData::reset().

virtual Bool_t RooAcceptReject::canSampleConditional (  )  const [inline, virtual]

Reimplemented from RooAbsNumGenerator.

Definition at line 46 of file RooAcceptReject.h.

References kTRUE.

virtual Bool_t RooAcceptReject::canSampleCategories (  )  const [inline, virtual]

Reimplemented from RooAbsNumGenerator.

Definition at line 47 of file RooAcceptReject.h.

References kTRUE.

void RooAcceptReject::registerSampler ( RooNumGenFactory fact  )  [static, protected]

Definition at line 57 of file RooAcceptReject.cxx.

References RooNumGenFactory::storeProtoSampler().

Referenced by RooNumGenFactory::RooNumGenFactory().

void RooAcceptReject::addEventToCache (  )  [protected]

Definition at line 288 of file RooAcceptReject.cxx.

References RooAbsNumGenerator::_cache, RooAbsNumGenerator::_funcClone, _funcSum, RooAbsNumGenerator::_funcValPtr, _maxFuncVal, _nextCatVar, _nextRealVar, _totalEvents, RooAbsNumGenerator::_verbose, RooAbsData::fill(), RooAbsReal::getVal(), TIterator::Next(), RooAbsCategoryLValue::randomize(), RooAbsRealLValue::randomize(), TIterator::Reset(), RooRealVar::setVal(), and val.

Referenced by generateEvent(), and getFuncMax().

const RooArgSet * RooAcceptReject::nextAcceptedEvent (  )  [protected]

Definition at line 256 of file RooAcceptReject.cxx.

References RooAbsNumGenerator::_cache, _eventsUsed, RooAbsNumGenerator::_funcValPtr, _maxFuncVal, RooAbsNumGenerator::_verbose, RooDataSet::get(), RooRealVar::getVal(), RooAbsData::numEntries(), and RooRandom::uniform().

Referenced by generateEvent().

RooAbsNumGenerator* RooAcceptReject::clone ( const RooAbsReal func,
const RooArgSet genVars,
const RooArgSet ,
const RooNumGenConfig config,
Bool_t  verbose = kFALSE,
const RooAbsReal maxFuncVal = 0 
) const [inline, virtual]

Implements RooAbsNumGenerator.

Definition at line 35 of file RooAcceptReject.h.

References func(), RooAcceptReject(), and verbose.

const RooArgSet* RooAcceptReject::generateEvent ( UInt_t  remaining,
Double_t resampleRatio 
) [virtual]

Implements RooAbsNumGenerator.

Double_t RooAcceptReject::getFuncMax (  )  [virtual]

Reimplemented from RooAbsNumGenerator.

virtual Bool_t RooAcceptReject::canSampleConditional (  )  const [inline, virtual]

Reimplemented from RooAbsNumGenerator.

Definition at line 46 of file RooAcceptReject.h.

References kTRUE.

virtual Bool_t RooAcceptReject::canSampleCategories (  )  const [inline, virtual]

Reimplemented from RooAbsNumGenerator.

Definition at line 47 of file RooAcceptReject.h.

References kTRUE.

static void RooAcceptReject::registerSampler ( RooNumGenFactory fact  )  [static, protected]

void RooAcceptReject::addEventToCache (  )  [protected]

const RooArgSet* RooAcceptReject::nextAcceptedEvent (  )  [protected]


Friends And Related Function Documentation

RooNumGenFactory [friend]

Definition at line 52 of file RooAcceptReject.h.


Member Data Documentation

Double_t RooAcceptReject::_maxFuncVal [protected]

Definition at line 58 of file RooAcceptReject.h.

Referenced by addEventToCache(), generateEvent(), getFuncMax(), nextAcceptedEvent(), and RooAcceptReject().

Double_t RooAcceptReject::_funcSum [protected]

Definition at line 58 of file RooAcceptReject.h.

Referenced by addEventToCache(), generateEvent(), and RooAcceptReject().

UInt_t RooAcceptReject::_realSampleDim [protected]

Definition at line 59 of file RooAcceptReject.h.

Referenced by RooAcceptReject().

UInt_t RooAcceptReject::_catSampleMult [protected]

Definition at line 59 of file RooAcceptReject.h.

Referenced by RooAcceptReject().

UInt_t RooAcceptReject::_minTrials [protected]

Definition at line 60 of file RooAcceptReject.h.

Referenced by generateEvent(), getFuncMax(), and RooAcceptReject().

UInt_t RooAcceptReject::_totalEvents [protected]

Definition at line 61 of file RooAcceptReject.h.

Referenced by addEventToCache(), generateEvent(), getFuncMax(), and RooAcceptReject().

UInt_t RooAcceptReject::_eventsUsed [protected]

Definition at line 62 of file RooAcceptReject.h.

Referenced by generateEvent(), getFuncMax(), nextAcceptedEvent(), and RooAcceptReject().

TIterator* RooAcceptReject::_nextCatVar [protected]

Definition at line 63 of file RooAcceptReject.h.

Referenced by addEventToCache(), RooAcceptReject(), and ~RooAcceptReject().

TIterator* RooAcceptReject::_nextRealVar [protected]

Definition at line 64 of file RooAcceptReject.h.

Referenced by addEventToCache(), RooAcceptReject(), and ~RooAcceptReject().

UInt_t RooAcceptReject::_minTrialsArray [protected]

Definition at line 66 of file RooAcceptReject.h.

Referenced by RooAcceptReject().

TIterator* RooAcceptReject::_nextCatVar [protected]

Definition at line 63 of file RooAcceptReject.h.

TIterator* RooAcceptReject::_nextRealVar [protected]

Definition at line 64 of file RooAcceptReject.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:00 2011 for ROOT_528-00b_version by  doxygen 1.5.1