library: libRooFit #include "RooGenContext.h"

# RooGenContext

class description - source file - inheritance tree (.pdf)

## class RooGenContext : public RooAbsGenContext

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`RooPrintable`
| <- | `RooAbsGenContext`
| <- | `RooGenContext` |

        protected:

          virtual void generateEvent(RooArgSet& theEvent, Int_t remaining)
          virtual void initGenerator(const RooArgSet& theEvent)

        public:

                          RooGenContext(const RooAbsPdf& model, const RooArgSet& vars, const RooDataSet* prototype = 0, const RooArgSet* auxProto = 0, Bool_t verbose = kFALSE, const RooArgSet* forceDirect = 0)
                          RooGenContext(const RooGenContext&)
                  virtual ~RooGenContext()
           static TClass* Class()
          virtual TClass* IsA() const
             virtual void printToStream(ostream& os, RooPrintable::PrintOption opt = Standard, TString indent = ) const
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                RooArgSet* _cloneSet
                RooAbsPdf* _pdfClone
                 RooArgSet _directVars
                 RooArgSet _uniformVars
                 RooArgSet _otherVars
                     Int_t _code
                  Double_t _maxProb
                  Double_t _area
                  Double_t _norm
          RooRealIntegral* _acceptRejectFunc
          RooAcceptReject* _generator
               RooRealVar* _maxVar
                TIterator* _uniIter
                     Int_t _updateFMaxPerEvent

## Class Description

RooGenContext(const RooAbsPdf &model, const RooArgSet &vars, const RooDataSet *prototype, const RooArgSet* auxProto, Bool_t verbose, const RooArgSet* forceDirect) : RooAbsGenContext(model,vars,prototype,auxProto,verbose), _cloneSet(0), _pdfClone(0), _acceptRejectFunc(0), _generator(0), _maxVar(0), _uniIter(0), _updateFMaxPerEvent(0)

     Initialize a new context for generating events with the specified
     variables, using the specified PDF model. A prototype dataset (if provided)
     is not cloned and still belongs to the caller. The contents and shape
     of this dataset can be changed between calls to generate() as long as the
     expected columns to be copied to the generated dataset are present.

~RooGenContext()

     Destructor.

void initGenerator(const RooArgSet &theEvent)

void generateEvent(RooArgSet &theEvent, Int_t remaining)

     Generate variables for a new event.

void printToStream(ostream &os, PrintOption opt, TString indent) const

### Inline Functions

                  TClass* Class()
                  TClass* IsA() const
                     void ShowMembers(TMemberInspector& insp, char* parent)
                     void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
            RooGenContext RooGenContext(const RooGenContext&)

Last update: Tue Jun 28 18:12:45 2005
Copyright (c) 2000-2005, Regents of the University of California *