library: libRooFit #include "RooSimGenContext.h"

# RooSimGenContext

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

## class RooSimGenContext : public RooAbsGenContext

| Inheritance Chart:

`TObject`

<-

`TNamed`

`RooPrintable`

<-

`RooAbsGenContext`

<-

`RooSimGenContext`

        protected:

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

        public:

                           RooSimGenContext(const RooSimultaneous& model, const RooArgSet& vars, const RooDataSet* prototype = 0, const RooArgSet* auxProto = 0, Bool_t _verbose = kFALSE)
                   virtual ~RooSimGenContext()
            static TClass* Class()
           virtual TClass* IsA() const
              virtual void setProtoDataOrder(Int_t* lut)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

           RooAbsCategoryLValue* _idxCat        Clone of index category
                      RooArgSet* _idxCatSet     Owner of index category components
               const RooDataSet* _prototype     Prototype data set
          const RooSimultaneous* _pdf           Original PDF
                           TList _gcList        List of component generator contexts
                          Bool_t _haveIdxProto  Flag set if generation of index is requested
                         TString _idxCatName    Name of index category
                           Int_t _numPdf        Number of generated PDFs
                       Double_t* _fracThresh    [_numPdf] Fraction threshold array

## Class Description

RooSimGenContext(const RooSimultaneous &model, const RooArgSet &vars, const RooDataSet *prototype, const RooArgSet* auxProto, Bool_t verbose) : RooAbsGenContext(model,vars,prototype,auxProto,verbose), _pdf(&model)

     Constructor. Build an array of generator contexts for each component PDF

~RooSimGenContext()

     Destructor. Delete all owned subgenerator contexts

void initGenerator(const RooArgSet &theEvent)

     Attach the index category clone to the event

void generateEvent(RooArgSet &theEvent, Int_t remaining)

     Generate event appropriate for current index state.
     The index state is taken either from the prototype
     or generated from the fraction threshold table.

void setProtoDataOrder(Int_t* lut)

### Inline Functions

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

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