library: libRooFit #include "RooGenericPdf.h"

# RooGenericPdf

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

## class RooGenericPdf : public RooAbsPdf

| Inheritance Chart:

`TObject`

<-

`TNamed`

`RooPrintable`

<-

`RooAbsArg`

<-

`RooAbsReal`

<-

`RooAbsPdf`

<-

`RooGenericPdf`

        protected:

          virtual Double_t evaluate() const
            virtual Bool_t isValidReal(Double_t value, Bool_t printError) const
            virtual Bool_t redirectServersHook(const RooAbsCollection& newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive)
                    Bool_t setFormula(const char* formula)

        public:

                           RooGenericPdf()
                           RooGenericPdf(const char* name, const char* title, const RooArgList& dependents)
                           RooGenericPdf(const char* name, const char* title, const char* formula, const RooArgList& dependents)
                           RooGenericPdf(const RooGenericPdf& other, const char* name = "0")
                   virtual ~RooGenericPdf()
            static TClass* Class()
          virtual TObject* clone(const char* newname) const
                      void dumpFormula()
           virtual TClass* IsA() const
              virtual void printToStream(ostream& os, RooPrintable::PrintOption opt = Standard, TString indent = ) const
            virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose = kFALSE)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
              virtual void writeToStream(ostream& os, Bool_t compact) const

### Data Members

        protected:

          RooListProxy _actualVars
            RooFormula _formula     Formula engine

## Class Description

RooGenericPdf(const char *name, const char *title, const RooArgList& dependents) : RooAbsPdf(name,title), _actualVars("actualVars","Variables used by PDF expression",this), _formula(name,title,dependents)

     Constructor with formula expression and list of input variables

RooGenericPdf(const char *name, const char *title, const char* formula, const RooArgList& dependents) : RooAbsPdf(name,title), _actualVars("actualVars","Variables used by PDF expression",this), _formula(name,formula,dependents)

RooGenericPdf(const RooGenericPdf& other, const char* name) : RooAbsPdf(other, name), _actualVars("actualVars",this,other._actualVars), _formula(other._formula)

     Copy constructor

~RooGenericPdf()

     Destructor

Double_t evaluate() const

     Calculate current value of this object

Bool_t setFormula(const char* formula)

     Change formula expression to given expression

Bool_t isValidReal(Double_t /*value*/, Bool_t /*printError*/) const

     Check if given value is valid

Bool_t redirectServersHook(const RooAbsCollection& newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t /*isRecursive*/)

     Propagate server changes to embedded formula objecy

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

     Print info about this object to the specified stream.

Bool_t readFromStream(istream& is, Bool_t compact, Bool_t /*verbose*/)

     Read object contents from given stream

void writeToStream(ostream& os, Bool_t compact) const

     Write object contents to given stream

### Inline Functions

            RooGenericPdf RooGenericPdf(const RooGenericPdf& other, const char* name = "0")
                 TObject* clone(const char* newname) const
                     void dumpFormula()
                  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:12:48 2005
Copyright (c) 2000-2005, Regents of the University of California *