library: libRooFit #include "RooAddGenContext.h"

# RooAddGenContext

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

## class RooAddGenContext : public RooAbsGenContext

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

        protected:

                           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

        protected:

          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(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

~RooAddGenContext()

     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 update: Tue Jun 28 18:10:35 2005
Copyright (c) 2000-2005, Regents of the University of California *