library: libRooFit
#include "RooFitResult.h"

RooFitResult


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

class RooFitResult : public TNamed, public RooPrintable, public RooDirItem

Inheritance Chart:
TObject
<-
TNamed
RooPrintable
RooDirItem
<-
RooFitResult

    protected:
Double_t correlation(Int_t row, Int_t col) const Double_t covariance(Int_t row, Int_t col) const void fillCorrMatrix() void setConstParList(const RooArgList& list) void setCovQual(Int_t val) void setEDM(Double_t val) void setFinalParList(const RooArgList& list) void setInitParList(const RooArgList& list) void setMinNLL(Double_t val) void setNumInvalidNLL(Int_t val) void setStatus(Int_t val) public:
RooFitResult(const char* name = "0", const char* title = "0") RooFitResult(const RooFitResult& other) virtual ~RooFitResult() static TClass* Class() virtual TObject* clone() const const RooArgList& constPars() const Double_t correlation(const RooAbsArg& par1, const RooAbsArg& par2) const const RooArgList* correlation(const RooAbsArg& par) const Double_t correlation(const char* parname1, const char* parname2) const const RooArgList* correlation(const char* parname) const Int_t covQual() const Double_t edm() const const RooArgList& floatParsFinal() const const RooArgList& floatParsInit() const Double_t globalCorr(const RooAbsArg& par) Double_t globalCorr(const char* parname) const RooArgList* globalCorr() const virtual TClass* IsA() const static RooFitResult* lastMinuitFit(const RooArgList& varList = RooArgList()) Double_t minNll() const Int_t numInvalidNLL() const RooPlot* plotOn(RooPlot* frame, const RooAbsArg& par1, const RooAbsArg& par2, const char* options = "ME") const RooPlot* plotOn(RooPlot* plot, const char* parName1, const char* parName2, const char* options = "ME") const virtual void Print(Option_t* options = "0") const virtual void printToStream(ostream& stream, RooPrintable::PrintOption opt = Standard, TString indent = ) const const RooArgList& randomizePars() const virtual void ShowMembers(TMemberInspector& insp, char* parent) Int_t status() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t _status MINUIT status code Int_t _covQual MUINUIT quality code of covariance matrix Int_t _numBadNLL Number calls with bad (zero,negative) likelihood Double_t _minNLL NLL at minimum Double_t _edm Estimated distance to minimum RooArgList* _constPars List of constant parameters RooArgList* _initPars List of floating parameters with initial values RooArgList* _finalPars List of floating parameters with final values RooArgList* _globalCorr List of global correlation coefficients TList _corrMatrix Correlation matrix (list of RooArgLists) RooArgList* _randomPars ! List of floating parameters with most recent random perturbation applied TMatrix* _Lt ! triangular matrix used for generate random perturbations

Class Description


RooFitResult(const char* name, const char* title) : TNamed(name,title), _constPars(0), _initPars(0), _finalPars(0), _globalCorr(0), _randomPars(0), _Lt(0)
 Constructor

RooFitResult(const RooFitResult& other) : TNamed(other), RooPrintable(other), RooDirItem(), _status(other._status), _covQual(other._covQual), _numBadNLL(other._numBadNLL), _minNLL(other._minNLL), _edm(other._edm), _randomPars(0), _Lt(0)
 Copy constructor

~RooFitResult()
 Destructor

void setConstParList(const RooArgList& list)
 Fill the list of constant parameters

void setInitParList(const RooArgList& list)
 Fill the list of initial values of the floating parameters

void setFinalParList(const RooArgList& list)
 Fill the list of final values of the floating parameters

RooPlot* plotOn(RooPlot *frame, const char *parName1, const char *parName2, const char *options) const
 Add objects to a 2D plot that represent the fit results for the
 two named parameters.  The input frame with the objects added is
 returned, or zero in case of an error.  Which objects are added
 are determined by the options string which should be a concatenation
 of the following (not case sensitive):

   M - a marker at the best fit result
   E - an error ellipse calculated at 1-sigma using the error matrix at the minimum
   1 - the 1-sigma error bar for parameter 1
   2 - the 1-sigma error bar for parameter 2
   B - the bounding box for the error ellipse
   H - a line and horizontal axis for reading off the correlation coefficient
   V - a line and vertical axis for reading off the correlation coefficient
   A - draw axes for reading off the correlation coefficients with the H or V options

 You can change the attributes of objects in the returned RooPlot using the
 various RooPlot::getAttXxx(name) member functions, e.g.

   plot->getAttLine("contour")->SetLineStyle(kDashed);

 Use plot->Print() for a list of all objects and their names (unfortunately most
 of the ROOT builtin graphics objects like TLine are unnamed). Drag the left mouse
 button along the labels of either axis button to interactively zoom in a plot.

const RooArgList& randomizePars() const
 Return a list of floating parameter values that are perturbed from the final
 fit values by random amounts sampled from the covariance matrix. The returned
 object is overwritten with each call and belongs to the RooFitResult. Uses
 the "square root method" to decompose the covariance matrix, which makes inverting
 it unnecessary.

Double_t correlation(const char* parname1, const char* parname2) const
 Return the correlation between parameters 'par1' and 'par2'

const RooArgList* correlation(const char* parname) const
 Return the set of correlation coefficients of parameter 'par' with
 all other floating parameters

Double_t globalCorr(const char* parname)
 Return the global correlation of the named parameter

const RooArgList* globalCorr()
 Return the list of all global correlations

Double_t correlation(Int_t row, Int_t col) const
 Return a correlation matrix element addressed with numeric indices.

Double_t covariance(Int_t row, Int_t col) const
 Return the covariance matrix element addressed with numeric indices.

void printToStream(ostream& os, PrintOption opt, TString indent) const
 Print fit result to stream 'os'. In Verbose mode, the contant parameters and
 the initial and final values of the floating parameters are printed.
 Standard mode only the final values of the floating parameters are printed

void fillCorrMatrix()
 Extract the correlation matrix and the global correlation coefficients from the MINUIT memory buffer
 and fill the internal arrays.

RooFitResult* lastMinuitFit(const RooArgList& varList)
 Verify length of supplied varList



Inline Functions


                 TObject* clone() const
                     void Print(Option_t* options = "0") const
                    Int_t status() const
                    Int_t covQual() const
                    Int_t numInvalidNLL() const
                 Double_t edm() const
                 Double_t minNll() const
        const RooArgList& constPars() const
        const RooArgList& floatParsInit() const
        const RooArgList& floatParsFinal() const
        const RooArgList* correlation(const char* parname) const
        const RooArgList* globalCorr() const
                 RooPlot* plotOn(RooPlot* plot, const char* parName1, const char* parName2, const char* options = "ME") const
                     void setMinNLL(Double_t val)
                     void setEDM(Double_t val)
                     void setStatus(Int_t val)
                     void setCovQual(Int_t val)
                     void setNumInvalidNLL(Int_t val)
                 Double_t correlation(Int_t row, Int_t col) 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:12:17 2005
Copyright (c) 2000-2005, Regents of the University of California *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.