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

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


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

class RooAddGenContext : public RooAbsGenContext

Inheritance Chart:

RooAddGenContext(const RooAddGenContext& other) virtual void generateEvent(RooArgSet& theEvent, Int_t remaining) virtual void initGenerator(const RooArgSet& theEvent) void updateThresholds() public:
RooAddGenContext(const RooAddPdf& model, const RooArgSet& vars, const RooDataSet* prototype = 0, const RooArgSet* auxProto = 0, Bool_t _verbose = kFALSE) virtual ~RooAddGenContext() 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

const RooArgSet* _vars RooArgSet* _pdfSet RooAddPdf* _pdf Snapshot of PDF TList _gcList List of component generator contexts Int_t _nComp Number of PDF components Double_t* _coefThresh [_nComp] Array of coefficient thresholds

Class Description

 RooAddGenContext is an efficient implementation of the generator context
 specific for RooAddPdf PDFs. The sim-context owns a list of
 component generator contexts that are used to generate the events
 for each component PDF sequentially

RooAddGenContext(const RooAddPdf &model, const RooArgSet &vars, const RooDataSet *prototype, const RooArgSet* auxProto, Bool_t verbose) : RooAbsGenContext(model,vars,prototype,auxProto,verbose)
 Constructor. Build an array of generator contexts for each product component PDF

 Destructor. Delete all owned subgenerator contexts

void initGenerator(const RooArgSet &theEvent)

void generateEvent(RooArgSet &theEvent, Int_t remaining)
 Throw a random number to determin which component to generate

void updateThresholds()

void setProtoDataOrder(Int_t* lut)

Inline Functions

        RooAddGenContext RooAddGenContext(const RooAddGenContext& 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.18 2005/12/01 16:10:20 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby Logo