![]() |
![]()
|
RooAcceptRejectclass description - source file - inheritance tree (.pdf) class RooAcceptReject : public TNamed, public RooPrintable
protected:
Data Members
protected:
Class DescriptionA class description belongs here... RooAcceptReject(const RooAbsReal &func, const RooArgSet &genVars, const RooAbsReal* maxFuncVal, Bool_t verbose) : TNamed(func), _cloneSet(0), _funcClone(0), _funcMaxVal(maxFuncVal), _verbose(verbose) Initialize an accept-reject generator for the specified distribution function, which must be non-negative but does not need to be normalized over the variables to be generated, genVars. The function and its dependents are cloned and so will not be disturbed during the generation process. ~RooAcceptReject() void printToStream(ostream &os, PrintOption /*opt*/, TString /*indent*/) const void attachParameters(const RooArgSet& vars) Reattach original parameters to function clone const RooArgSet* generateEvent(UInt_t remaining) Return a pointer to a generated event. The caller does not own the event and it will be overwritten by a subsequent call. The input parameter 'remaining' should contain your best guess at the total number of subsequent events you will request. const RooArgSet* nextAcceptedEvent() Scan through events in the cache which have not been used yet, looking for the first accepted one which is added to the specified container. Return a pointer to the accepted event, or else zero if we use up the cache before we accept an event. The caller does not own the event and it will be overwritten by a subsequent call. void addEventToCache() Add a trial event to our cache and update our estimates of the function maximum value and integral. Double_t getFuncMax() Generate the minimum required number of samples for a reliable maximum estimate Inline Functions
Bool_t isValid() const
void setVerbose(Bool_t verbose = kTRUE)
Bool_t isVerbose() const
void Print(Option_t* options = "0") const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
RooAcceptReject RooAcceptReject(const RooAcceptReject&)
|
|
Page maintained by Wouter Verkerke and David Kirkby |
|


Docs