Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User

RooFit Toolkit for Data Modeling
#include "RooSimGenContext.hh"


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

class RooSimGenContext : public RooAbsGenContext

Inheritance Chart:

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

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 is an efficient implementation of the generator context
 specific for RooSimultaneous PDFs when generating more than one of the
 component pdfs.

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

 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 CVS Update: v 1.22 2005/06/20 15:45:14 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby Logo