RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
It contains:
No references to the fitted PDF and dataset are stored
Definition at line 40 of file RooFitResult.h.
Public Member Functions | |
RooFitResult (const char *name=nullptr, const char *title=nullptr) | |
Constructor with name and title. | |
RooFitResult (const RooFitResult &other) | |
Copy constructor. | |
~RooFitResult () override | |
Destructor. | |
virtual TObject * | clone () const |
TObject * | Clone (const char *newname=nullptr) const override |
Make a clone of an object using the Streamer facility. | |
TMatrixDSym | conditionalCovarianceMatrix (const RooArgList ¶ms) const |
Return a reduced covariance matrix, which is calculated as. | |
const RooArgList & | constPars () const |
Return list of constant parameters. | |
const RooArgList * | correlation (const char *parname) const |
Return the set of correlation coefficients of parameter 'par' with all other floating parameters. | |
double | correlation (const char *parname1, const char *parname2) const |
Return the correlation between parameters 'par1' and 'par2'. | |
const RooArgList * | correlation (const RooAbsArg &par) const |
Return pointer to list of correlations of all parameters with par. | |
double | correlation (const RooAbsArg &par1, const RooAbsArg &par2) const |
Return correlation between par1 and par2. | |
TH2 * | correlationHist (const char *name="correlation_matrix") const |
Return TH2D of correlation matrix. | |
const TMatrixDSym & | correlationMatrix () const |
Return correlation matrix ;. | |
const TMatrixDSym & | covarianceMatrix () const |
Return covariance matrix. | |
Int_t | covQual () const |
Return MINUIT quality code of covariance matrix. | |
RooAbsPdf * | createHessePdf (const RooArgSet ¶ms) const |
Return a p.d.f that represents the fit result as a multi-variate probability densisty function on the floating fit parameters, including correlations. | |
Int_t | defaultPrintContents (Option_t *opt) const override |
Configure default contents to be printed. | |
StyleOption | defaultPrintStyle (Option_t *opt) const override |
Configure mapping of Print() arguments to RooPrintable print styles. | |
double | edm () const |
Return estimated distance to minimum. | |
void | fillCorrMatrix (const std::vector< double > &globalCC, const TMatrixDSym &corrs, const TMatrixDSym &covs) |
Function called by RooMinimizer. | |
const RooArgList & | floatParsFinal () const |
Return list of floating parameters after fit. | |
const RooArgList & | floatParsInit () const |
Return list of floating parameters before fit. | |
const RooArgList * | globalCorr () |
Return the list of all global correlations. | |
double | globalCorr (const char *parname) |
Return the global correlation of the named parameter. | |
double | globalCorr (const RooAbsArg &par) |
TClass * | IsA () const override |
bool | isIdentical (const RooFitResult &other, double tol=1e-6, double tolCorr=1e-4, bool verbose=true) const |
Return true if this fit result is identical to other within tolerances. | |
bool | isIdenticalNoCov (const RooFitResult &other, double tol=1e-6, double tolErr=1e-3, bool verbose=true) const |
Return true if this fit result is identical to other within tolerances, ignoring the correlation matrix. | |
double | minNll () const |
Return minimized -log(L) value. | |
Int_t | numInvalidNLL () const |
Return number of NLL evaluations with problems. | |
UInt_t | numStatusHistory () const |
RooPlot * | plotOn (RooPlot *frame, const RooAbsArg &par1, const RooAbsArg &par2, const char *options="ME") const |
Add objects to a 2D plot. | |
RooPlot * | plotOn (RooPlot *plot, const char *parName1, const char *parName2, const char *options="ME") const |
Add objects to a 2D plot that represent the fit results for the two named parameters. | |
void | Print (Option_t *options=nullptr) const override |
This method must be overridden when a class wants to print itself. | |
void | printArgs (std::ostream &os) const override |
Print arguments of fit result, i.e. the parameters of the fit. | |
void | printClassName (std::ostream &os) const override |
Print class name of fit result. | |
void | printMultiline (std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override |
Print fit result to stream 'os'. | |
void | printName (std::ostream &os) const override |
Print name of fit result. | |
void | printTitle (std::ostream &os) const override |
Print title of fit result. | |
void | printValue (std::ostream &os) const override |
Print the value of the fit result, i.e.g the status, minimized FCN, edm and covariance quality code. | |
const RooArgList & | randomizePars () const |
Generate random perturbations of the final parameters using the covariance matrix. | |
TMatrixDSym | reducedCovarianceMatrix (const RooArgList ¶ms) const |
Return a reduced covariance matrix (Note that Vred is a simple sub-matrix of V, row/columns are ordered to matched the convention given in input argument 'params'. | |
void | setConstParList (const RooArgList &list) |
Fill the list of constant parameters. | |
void | setCovarianceMatrix (TMatrixDSym &V) |
Store externally provided correlation matrix in this RooFitResult ;. | |
void | setCovQual (Int_t val) |
void | setEDM (double val) |
void | setFinalParList (const RooArgList &list) |
Fill the list of final values of the floating parameters. | |
void | setInitParList (const RooArgList &list) |
Fill the list of initial values of the floating parameters. | |
void | setMinNLL (double val) |
void | SetName (const char *name) override |
Change name of RooFitResult object. | |
void | SetNameTitle (const char *name, const char *title) override |
Change name and title of RooFitResult object. | |
void | setNumInvalidNLL (Int_t val) |
void | setStatus (Int_t val) |
void | setStatusHistory (std::vector< std::pair< std::string, int > > &hist) |
Int_t | status () const |
Return MINUIT status code. | |
Int_t | statusCodeHistory (UInt_t icycle) const |
const char * | statusLabelHistory (UInt_t icycle) const |
void | Streamer (TBuffer &) override |
Stream an object of class RooFitResult. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. | |
void | Clear (Option_t *option="") override |
Set name and title to empty strings (""). | |
TObject * | Clone (const char *newname="") const override |
Make a clone of an object using the Streamer facility. | |
Int_t | Compare (const TObject *obj) const override |
Compare two TNamed objects. | |
void | Copy (TObject &named) const override |
Copy this to obj. | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. | |
const char * | GetName () const override |
Returns name of object. | |
const char * | GetTitle () const override |
Returns title of object. | |
ULong_t | Hash () const override |
Return hash value for this object. | |
TClass * | IsA () const override |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
List TNamed name and title. | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. | |
void | Print (Option_t *option="") const override |
Print TNamed name and title. | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. | |
void | Streamer (TBuffer &) override |
Stream an object of class TObject. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1) . | |
virtual void | Dump () const |
Dump contents of object on stdout. | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. | |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
Execute method on this object with the given parameter string, e.g. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
Execute method on this object with parameters stored in the TObjArray. | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual const char * | GetIconName () const |
Returns mime type name of object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. | |
void | InvertBit (UInt_t f) |
Bool_t | IsDestructed () const |
IsDestructed. | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Public Member Functions inherited from RooPrintable | |
RooPrintable () | |
virtual | ~RooPrintable () |
virtual void | printAddress (std::ostream &os) const |
Print class name of object. | |
virtual void | printExtras (std::ostream &os) const |
Interface to print extras of object. | |
virtual void | printStream (std::ostream &os, Int_t contents, StyleOption style, TString indent="") const |
Print description of object on ostream, printing contents set by contents integer, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'. | |
virtual void | printTree (std::ostream &os, TString indent="") const |
Interface for tree structure printing of object. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from RooDirItem | |
RooDirItem () | |
RooDirItem (const RooDirItem &) | |
virtual | ~RooDirItem () |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static RooFitResult * | lastMinuitFit (const RooArgList &varList=RooArgList()) |
Import the results of the last fit performed by gMinuit, interpreting the fit parameters as the given varList of parameters. | |
static RooFitResult * | prefitResult (const RooArgList ¶mList) |
Import the results of the last fit performed by gMinuit, interpreting the fit parameters as the given varList of parameters. | |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Static Public Member Functions inherited from RooPrintable | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static std::ostream & | defaultPrintStream (std::ostream *os=nullptr) |
Return a reference to the current default stream to use in Print(). | |
static void | nameFieldLength (Int_t newLen) |
Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount. | |
Static Public Member Functions inherited from RooDirItem | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Member Functions | |
double | correlation (Int_t row, Int_t col) const |
Return a correlation matrix element addressed with numeric indices. | |
double | covariance (Int_t row, Int_t col) const |
Return the covariance matrix element addressed with numeric indices. | |
void | fillCorrMatrix () |
Internal utility method to extract the correlation matrix and the global correlation coefficients from the MINUIT memory buffer and fill the internal arrays. | |
void | fillLegacyCorrMatrix () const |
Sanity check. | |
void | fillPrefitCorrMatrix () |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). | |
void | MakeZombie () |
Protected Member Functions inherited from RooDirItem | |
void | appendToDir (TObject *obj, bool forceMemoryResident=false) |
Append object to directory. | |
void | removeFromDir (TObject *obj) |
Remove object from directory it was added to. | |
Protected Attributes | |
TMatrixDSym * | _CM = nullptr |
Correlation matrix. | |
RooArgList * | _constPars = nullptr |
List of constant parameters. | |
TList | _corrMatrix |
! Correlation matrix (list of RooArgLists) | |
Int_t | _covQual |
MINUIT quality code of covariance matrix. | |
double | _edm |
Estimated distance to minimum. | |
RooArgList * | _finalPars = nullptr |
List of floating parameters with final values. | |
TVectorD * | _GC = nullptr |
Global correlation coefficients. | |
RooArgList * | _globalCorr = nullptr |
! List of global correlation coefficients | |
RooArgList * | _initPars = nullptr |
List of floating parameters with initial values. | |
TMatrixF * | _Lt = nullptr |
! triangular matrix used for generate random perturbations | |
double | _minNLL |
NLL at minimum. | |
Int_t | _numBadNLL |
Number calls with bad (zero,negative) likelihood. | |
RooArgList * | _randomPars = nullptr |
! List of floating parameters with most recent random perturbation applied | |
Int_t | _status |
MINUIT status code. | |
std::vector< std::pair< std::string, int > > | _statusHistory |
History of status codes. | |
TMatrixDSym * | _VM = nullptr |
Covariance matrix. | |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from RooDirItem | |
TDirectory * | _dir {nullptr} |
! Associated directory | |
Friends | |
class | RooMinuit |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) } |
enum | EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) } |
enum | EStatusBits { kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) , kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 )) } |
Public Types inherited from RooPrintable | |
enum | ContentsOption { kName =1 , kClassName =2 , kValue =4 , kArgs =8 , kExtras =16 , kAddress =32 , kTitle =64 , kCollectionHeader =128 } |
enum | StyleOption { kInline =1 , kSingleLine =2 , kStandard =3 , kVerbose =4 , kTreeStructure =5 } |
Protected Types inherited from TObject | |
enum | { kOnlyPrepStep = (1ULL << ( 3 )) } |
Static Protected Attributes inherited from RooPrintable | |
static Int_t | _nameLength |
#include <RooFitResult.h>
RooFitResult::RooFitResult | ( | const char * | name = nullptr , |
const char * | title = nullptr |
||
) |
Constructor with name and title.
Definition at line 66 of file RooFitResult.cxx.
RooFitResult::RooFitResult | ( | const RooFitResult & | other | ) |
Copy constructor.
Definition at line 77 of file RooFitResult.cxx.
|
override |
Destructor.
Definition at line 112 of file RooFitResult.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 204 of file RooFitResult.h.
|
inlinevirtual |
Definition at line 51 of file RooFitResult.h.
|
inlineoverridevirtual |
Make a clone of an object using the Streamer facility.
If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.
If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.
Reimplemented from TObject.
Definition at line 46 of file RooFitResult.h.
TMatrixDSym RooFitResult::conditionalCovarianceMatrix | ( | const RooArgList & | params | ) | const |
Return a reduced covariance matrix, which is calculated as.
\[ V_\mathrm{red} = \bar{V_{22}} = V_{11} - V_{12} \cdot V_{22}^{-1} \cdot V_{21}, \]
where \( V_{11},V_{12},V_{21},V_{22} \) represent a block decomposition of the covariance matrix into observables that are propagated (labeled by index '1') and that are not propagated (labeled by index '2'), and \( \bar{V_{22}} \) is the Shur complement of \( V_{22} \), calculated as shown above.
(Note that \( V_\mathrm{red} \) is not a simple sub-matrix of \( V \))
Definition at line 1155 of file RooFitResult.cxx.
|
inline |
Return list of constant parameters.
Definition at line 103 of file RooFitResult.h.
const RooArgList * RooFitResult::correlation | ( | const char * | parname | ) | const |
Return the set of correlation coefficients of parameter 'par' with all other floating parameters.
Definition at line 405 of file RooFitResult.cxx.
double RooFitResult::correlation | ( | const char * | parname1, |
const char * | parname2 | ||
) | const |
Return the correlation between parameters 'par1' and 'par2'.
Definition at line 384 of file RooFitResult.cxx.
|
inline |
Return pointer to list of correlations of all parameters with par.
Definition at line 122 of file RooFitResult.h.
Return correlation between par1 and par2.
Definition at line 118 of file RooFitResult.h.
Return a correlation matrix element addressed with numeric indices.
Definition at line 462 of file RooFitResult.cxx.
TH2 * RooFitResult::correlationHist | ( | const char * | name = "correlation_matrix" | ) | const |
Return TH2D of correlation matrix.
Definition at line 1071 of file RooFitResult.cxx.
const TMatrixDSym & RooFitResult::correlationMatrix | ( | ) | const |
Return correlation matrix ;.
Definition at line 1231 of file RooFitResult.cxx.
Return the covariance matrix element addressed with numeric indices.
Definition at line 471 of file RooFitResult.cxx.
const TMatrixDSym & RooFitResult::covarianceMatrix | ( | ) | const |
Return covariance matrix.
Definition at line 1097 of file RooFitResult.cxx.
|
inline |
Return MINUIT quality code of covariance matrix.
Definition at line 87 of file RooFitResult.h.
Return a p.d.f that represents the fit result as a multi-variate probability densisty function on the floating fit parameters, including correlations.
Definition at line 1242 of file RooFitResult.cxx.
|
inlinestatic |
Definition at line 204 of file RooFitResult.h.
Configure default contents to be printed.
Reimplemented from RooPrintable.
Definition at line 1416 of file RooFitResult.cxx.
|
overridevirtual |
Configure mapping of Print() arguments to RooPrintable print styles.
Reimplemented from RooPrintable.
Definition at line 1425 of file RooFitResult.cxx.
|
inline |
Return estimated distance to minimum.
Definition at line 95 of file RooFitResult.h.
|
protected |
Internal utility method to extract the correlation matrix and the global correlation coefficients from the MINUIT memory buffer and fill the internal arrays.
Definition at line 684 of file RooFitResult.cxx.
void RooFitResult::fillCorrMatrix | ( | const std::vector< double > & | globalCC, |
const TMatrixDSym & | corrs, | ||
const TMatrixDSym & | covs | ||
) |
Function called by RooMinimizer.
Definition at line 582 of file RooFitResult.cxx.
|
protected |
Sanity check.
Definition at line 617 of file RooFitResult.cxx.
|
protected |
Definition at line 740 of file RooFitResult.cxx.
|
inline |
Return list of floating parameters after fit.
Definition at line 111 of file RooFitResult.h.
|
inline |
Return list of floating parameters before fit.
Definition at line 107 of file RooFitResult.h.
const RooArgList * RooFitResult::globalCorr | ( | ) |
Return the list of all global correlations.
Definition at line 448 of file RooFitResult.cxx.
double RooFitResult::globalCorr | ( | const char * | parname | ) |
Return the global correlation of the named parameter.
Definition at line 424 of file RooFitResult.cxx.
Definition at line 137 of file RooFitResult.h.
|
inlineoverridevirtual |
Reimplemented from TObject.
Definition at line 204 of file RooFitResult.h.
bool RooFitResult::isIdentical | ( | const RooFitResult & | other, |
double | tol = 1e-6 , |
||
double | tolCorr = 1e-4 , |
||
bool | verbose = true |
||
) | const |
Return true if this fit result is identical to other within tolerances.
[in] | other | Fit result to test against. |
[in] | tol | Relative tolerance for parameters and NLL. |
[in] | tolCorr | absolute tolerance for correlation coefficients. |
[in] | verbose | If this function will log to the standard output when comparisions fail. |
As the relative tolerance for the parameter errors, the default value of 1e-3
will be used.
Definition at line 852 of file RooFitResult.cxx.
bool RooFitResult::isIdenticalNoCov | ( | const RooFitResult & | other, |
double | tol = 1e-6 , |
||
double | tolErr = 1e-3 , |
||
bool | verbose = true |
||
) | const |
Return true if this fit result is identical to other within tolerances, ignoring the correlation matrix.
[in] | other | Fit result to test against. |
[in] | tol | Relative tolerance for parameters and NLL. |
[in] | tolErr | Relative tolerance for parameter errors. |
[in] | verbose | If this function will log to the standard output when comparisions fail. |
Definition at line 790 of file RooFitResult.cxx.
|
static |
Import the results of the last fit performed by gMinuit, interpreting the fit parameters as the given varList of parameters.
Definition at line 906 of file RooFitResult.cxx.
|
inline |
Return minimized -log(L) value.
Definition at line 99 of file RooFitResult.h.
|
inline |
Return number of NLL evaluations with problems.
Definition at line 91 of file RooFitResult.h.
|
inline |
Definition at line 82 of file RooFitResult.h.
|
inline |
Add objects to a 2D plot.
Plot error ellipse in par1 and par2 on frame.
Definition at line 144 of file RooFitResult.h.
RooPlot * RooFitResult::plotOn | ( | RooPlot * | frame, |
const char * | parName1, | ||
const char * | parName2, | ||
const char * | options = "ME" |
||
) | 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):
You can change the attributes of objects in the returned RooPlot using the various RooPlot::getAttXxx(name)
member functions, e.g.
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.
Definition at line 233 of file RooFitResult.cxx.
|
static |
Import the results of the last fit performed by gMinuit, interpreting the fit parameters as the given varList of parameters.
Definition at line 996 of file RooFitResult.cxx.
|
inlineoverridevirtual |
This method must be overridden when a class wants to print itself.
Reimplemented from TObject.
Definition at line 66 of file RooFitResult.h.
|
overridevirtual |
Print arguments of fit result, i.e. the parameters of the fit.
Reimplemented from RooPrintable.
Definition at line 1397 of file RooFitResult.cxx.
|
overridevirtual |
Print class name of fit result.
Reimplemented from RooPrintable.
Definition at line 1388 of file RooFitResult.cxx.
|
overridevirtual |
Print fit result to stream 'os'.
In Verbose mode, the constant 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
Reimplemented from RooPrintable.
Definition at line 483 of file RooFitResult.cxx.
|
overridevirtual |
Print name of fit result.
Reimplemented from RooPrintable.
Definition at line 1370 of file RooFitResult.cxx.
|
overridevirtual |
Print title of fit result.
Reimplemented from RooPrintable.
Definition at line 1379 of file RooFitResult.cxx.
|
overridevirtual |
Print the value of the fit result, i.e.g the status, minimized FCN, edm and covariance quality code.
Reimplemented from RooPrintable.
Definition at line 1407 of file RooFitResult.cxx.
const RooArgList & RooFitResult::randomizePars | ( | ) | const |
Generate random perturbations of the final parameters using the covariance matrix.
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.
Definition at line 331 of file RooFitResult.cxx.
TMatrixDSym RooFitResult::reducedCovarianceMatrix | ( | const RooArgList & | params | ) | const |
Return a reduced covariance matrix (Note that Vred is a simple sub-matrix of V, row/columns are ordered to matched the convention given in input argument 'params'.
Definition at line 1109 of file RooFitResult.cxx.
void RooFitResult::setConstParList | ( | const RooArgList & | list | ) |
Fill the list of constant parameters.
Definition at line 134 of file RooFitResult.cxx.
void RooFitResult::setCovarianceMatrix | ( | TMatrixDSym & | V | ) |
Store externally provided correlation matrix in this RooFitResult ;.
Definition at line 1037 of file RooFitResult.cxx.
|
inline |
Definition at line 169 of file RooFitResult.h.
|
inline |
Definition at line 167 of file RooFitResult.h.
void RooFitResult::setFinalParList | ( | const RooArgList & | list | ) |
Fill the list of final values of the floating parameters.
Definition at line 166 of file RooFitResult.cxx.
void RooFitResult::setInitParList | ( | const RooArgList & | list | ) |
Fill the list of initial values of the floating parameters.
Definition at line 150 of file RooFitResult.cxx.
|
inline |
Definition at line 166 of file RooFitResult.h.
|
overridevirtual |
Change name of RooFitResult object.
Reimplemented from TNamed.
Definition at line 1348 of file RooFitResult.cxx.
|
overridevirtual |
Change name and title of RooFitResult object.
Reimplemented from TNamed.
Definition at line 1359 of file RooFitResult.cxx.
|
inline |
Definition at line 170 of file RooFitResult.h.
|
inline |
Definition at line 168 of file RooFitResult.h.
|
inline |
Definition at line 171 of file RooFitResult.h.
|
inline |
Return MINUIT status code.
Definition at line 78 of file RooFitResult.h.
Definition at line 182 of file RooFitResult.cxx.
const char * RooFitResult::statusLabelHistory | ( | UInt_t | icycle | ) | const |
Definition at line 196 of file RooFitResult.cxx.
|
overridevirtual |
Stream an object of class RooFitResult.
Reimplemented from TObject.
Definition at line 1437 of file RooFitResult.cxx.
|
inline |
Definition at line 204 of file RooFitResult.h.
|
friend |
Definition at line 176 of file RooFitResult.h.
|
protected |
Correlation matrix.
Definition at line 198 of file RooFitResult.h.
|
protected |
List of constant parameters.
Definition at line 188 of file RooFitResult.h.
|
mutableprotected |
! Correlation matrix (list of RooArgLists)
Definition at line 193 of file RooFitResult.h.
|
protected |
MINUIT quality code of covariance matrix.
Definition at line 184 of file RooFitResult.h.
|
protected |
Estimated distance to minimum.
Definition at line 187 of file RooFitResult.h.
|
protected |
List of floating parameters with final values.
Definition at line 190 of file RooFitResult.h.
|
protected |
Global correlation coefficients.
Definition at line 200 of file RooFitResult.h.
|
mutableprotected |
! List of global correlation coefficients
Definition at line 192 of file RooFitResult.h.
|
protected |
List of floating parameters with initial values.
Definition at line 189 of file RooFitResult.h.
|
mutableprotected |
! triangular matrix used for generate random perturbations
Definition at line 196 of file RooFitResult.h.
|
protected |
NLL at minimum.
Definition at line 186 of file RooFitResult.h.
|
protected |
Number calls with bad (zero,negative) likelihood.
Definition at line 185 of file RooFitResult.h.
|
mutableprotected |
! List of floating parameters with most recent random perturbation applied
Definition at line 195 of file RooFitResult.h.
|
protected |
MINUIT status code.
Definition at line 183 of file RooFitResult.h.
|
protected |
History of status codes.
Definition at line 202 of file RooFitResult.h.
|
protected |
Covariance matrix.
Definition at line 199 of file RooFitResult.h.