library: libRooFit #include "RooTruthModel.h"

# RooTruthModel

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

## class RooTruthModel : public RooResolutionModel

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`RooPrintable`
| <- | `RooAbsArg`
| <- | `RooAbsReal`
| <- | `RooAbsPdf`
| <- | `RooResolutionModel`
| <- | `RooTruthModel` |

        protected:

              virtual void changeBasis(RooFormulaVar* basis)
          virtual Double_t evaluate() const

        public:

                           RooTruthModel()
                           RooTruthModel(const char* name, const char* title, RooRealVar& x)
                           RooTruthModel(const RooTruthModel& other, const char* name = "0")
                   virtual ~RooTruthModel()
          virtual Double_t analyticalIntegral(Int_t code, const char* rangeName = "0") const
             virtual Int_t basisCode(const char* name) const
            static TClass* Class()
          virtual TObject* clone(const char* newname) const
              virtual void generateEvent(Int_t code)
             virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName = "0") const
             virtual Int_t getGenerator(const RooArgSet& directVars, RooArgSet& generateVars, Bool_t staticInitOK = kTRUE) const
           virtual TClass* IsA() const
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)

### Data Members

        public:

          static const RooTruthModel::RooTruthBasis noBasis
          static const RooTruthModel::RooTruthBasis expBasisMinus
          static const RooTruthModel::RooTruthBasis expBasisSum
          static const RooTruthModel::RooTruthBasis expBasisPlus
          static const RooTruthModel::RooTruthBasis sinBasisMinus
          static const RooTruthModel::RooTruthBasis sinBasisSum
          static const RooTruthModel::RooTruthBasis sinBasisPlus
          static const RooTruthModel::RooTruthBasis cosBasisMinus
          static const RooTruthModel::RooTruthBasis cosBasisSum
          static const RooTruthModel::RooTruthBasis cosBasisPlus
          static const RooTruthModel::RooTruthBasis linBasisPlus
          static const RooTruthModel::RooTruthBasis quadBasisPlus
          static const RooTruthModel::RooTruthBasis coshBasisMinus
          static const RooTruthModel::RooTruthBasis coshBasisSum
          static const RooTruthModel::RooTruthBasis coshBasisPlus
          static const RooTruthModel::RooTruthBasis sinhBasisMinus
          static const RooTruthModel::RooTruthBasis sinhBasisSum
          static const RooTruthModel::RooTruthBasis sinhBasisPlus
          static const RooTruthModel::RooTruthBasis genericBasis
              static const RooTruthModel::BasisType none
              static const RooTruthModel::BasisType expBasis
              static const RooTruthModel::BasisType sinBasis
              static const RooTruthModel::BasisType cosBasis
              static const RooTruthModel::BasisType linBasis
              static const RooTruthModel::BasisType quadBasis
              static const RooTruthModel::BasisType coshBasis
              static const RooTruthModel::BasisType sinhBasis
              static const RooTruthModel::BasisSign Both
              static const RooTruthModel::BasisSign Plus
              static const RooTruthModel::BasisSign Minus

## Class Description

RooTruthModel(const char *name, const char *title, RooRealVar& x) : RooResolutionModel(name,title,x)

     Constructor

RooTruthModel(const RooTruthModel& other, const char* name) : RooResolutionModel(other,name)

     Copy constructor

~RooTruthModel()

     Destructor

Int_t basisCode(const char* name) const

     Check for optimized basis functions

void changeBasis(RooFormulaVar* basis)

     Process change basis function. Since we actually
     evaluate the basis function object, we need to
     adjust our client-server links to the basis function here

Double_t evaluate() const

     Evaluate the truth model: a delta function when used as PDF,
     The basis function itself, when convoluted with a basis function.

Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* /*rangeName*/) const

Double_t analyticalIntegral(Int_t code, const char* rangeName) const

     Code must be 1

Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t /*staticInitOK*/) const

void generateEvent(Int_t code)

### Inline Functions

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