ROOT
6.07/01
Reference Guide
|
Definition at line 41 of file RooFitResult.h.
Public Member Functions | |
RooFitResult (const char *name=0, const char *title=0) | |
Constructor with name and title coverity[UNINIT_CTOR]. More... | |
RooFitResult (const RooFitResult &other) | |
Copy constructor. More... | |
virtual TObject * | Clone (const char *newname=0) const |
Make a clone of an object using the Streamer facility. More... | |
virtual TObject * | clone () const |
virtual | ~RooFitResult () |
Destructor. More... | |
virtual void | printValue (std::ostream &os) const |
Print the value of the fit result, i.e.g the status, minimized FCN, edm and covariance quality code. More... | |
virtual void | printName (std::ostream &os) const |
Print name of fit result. More... | |
virtual void | printTitle (std::ostream &os) const |
Print title of fit result. More... | |
virtual void | printClassName (std::ostream &os) const |
Print class name of fit result. More... | |
virtual void | printArgs (std::ostream &os) const |
Print arguments of fit result, i.e. the parameters of the fit. More... | |
void | printMultiline (std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
Print fit result to stream 'os'. More... | |
virtual void | Print (Option_t *options=0) const |
Print TNamed name and title. More... | |
virtual Int_t | defaultPrintContents (Option_t *opt) const |
Configure default contents to be printed. More... | |
virtual StyleOption | defaultPrintStyle (Option_t *opt) const |
Configure mapping of Print() arguments to RooPrintable print styles. More... | |
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. More... | |
Int_t | status () const |
UInt_t | numStatusHistory () const |
Int_t | statusCodeHistory (UInt_t icycle) const |
const char * | statusLabelHistory (UInt_t icycle) 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 |
TH2 * | correlationHist (const char *name="correlation_matrix") const |
Return TH2D of correlation matrix. More... | |
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 |
Return the correlation between parameters 'par1' and 'par2'. More... | |
const RooArgList * | correlation (const char *parname) const |
Return the set of correlation coefficients of parameter 'par' with all other floating parameters. More... | |
const TMatrixDSym & | covarianceMatrix () const |
Return covariance matrix. More... | |
const TMatrixDSym & | correlationMatrix () const |
Return correlation matrix ;. More... | |
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'. More... | |
TMatrixDSym | conditionalCovarianceMatrix (const RooArgList ¶ms) const |
Return a reduced covariance matrix, which is calculated as ___ -1 Vred = V22 = V11 - V12 * V22 * V21. More... | |
Double_t | globalCorr (const RooAbsArg &par) |
Double_t | globalCorr (const char *parname) |
Return the global correlation of the named parameter. More... | |
const RooArgList * | globalCorr () |
Return the list of all global correlations. More... | |
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 |
Add objects to a 2D plot that represent the fit results for the two named parameters. More... | |
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. More... | |
Bool_t | isIdentical (const RooFitResult &other, Double_t tol=5e-5, Double_t tolCorr=1e-4, Bool_t verbose=kTRUE) const |
Return true if this fit result is identical to other within tolerance 'tol' on fitted values and tolerance 'tolCor' on correlation coefficients. More... | |
void | SetName (const char *name) |
Change name of RooFitResult object. More... | |
void | SetNameTitle (const char *name, const char *title) |
Change name and title of RooFitResult object. More... | |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TString &name, const TString &title) | |
TNamed (const TNamed &named) | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. More... | |
virtual | ~TNamed () |
virtual void | Clear (Option_t *option="") |
Set name and title to empty strings (""). More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare two TNamed objects. More... | |
virtual void | Copy (TObject &named) const |
Copy this to obj. More... | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | IsSortable () const |
virtual void | SetTitle (const char *title="") |
Change (i.e. set) the title of the TNamed. More... | |
virtual void | ls (Option_t *option="") const |
List TNamed name and title. More... | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current pad. More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual Option_t * | GetOption () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
Bool_t | IsOnHeap () const |
Bool_t | IsZombie () const |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
void * | operator new (size_t sz) |
void * | operator new[] (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz, void *vp) |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
void | ResetBit (UInt_t f) |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
void | InvertBit (UInt_t f) |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
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). More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
Public Member Functions inherited from RooPrintable | |
RooPrintable () | |
virtual | ~RooPrintable () |
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'. More... | |
virtual void | printAddress (std::ostream &os) const |
Print class name of object. More... | |
virtual void | printExtras (std::ostream &os) const |
Interface to print extras of object. More... | |
virtual void | printTree (std::ostream &os, TString indent="") const |
Interface for tree structure printing of object. More... | |
Public Member Functions inherited from RooDirItem | |
RooDirItem () | |
Default constructor. More... | |
RooDirItem (const RooDirItem &other) | |
Copy constructor. More... | |
virtual | ~RooDirItem () |
Destructor. More... | |
Static Public Member Functions | |
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. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Static Public Member Functions inherited from RooPrintable | |
static std::ostream & | defaultPrintStream (std::ostream *os=0) |
Return a reference to the current default stream to use in Print(). More... | |
static void | nameFieldLength (Int_t newLen) |
Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount. More... | |
Protected Member Functions | |
void | setCovarianceMatrix (TMatrixDSym &V) |
Store externally provided correlation matrix in this RooFitResult ;. More... | |
void | setConstParList (const RooArgList &list) |
Fill the list of constant parameters. More... | |
void | setInitParList (const RooArgList &list) |
Fill the list of initial values of the floating parameters. More... | |
void | setFinalParList (const RooArgList &list) |
Fill the list of final values of the floating parameters. More... | |
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) |
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. More... | |
void | fillCorrMatrix (const std::vector< double > &globalCC, const TMatrixDSym &corrs, const TMatrixDSym &covs) |
Function called by RooMinimizer. More... | |
void | fillLegacyCorrMatrix () const |
Sanity check. More... | |
void | setStatusHistory (std::vector< std::pair< std::string, int > > &hist) |
Double_t | correlation (Int_t row, Int_t col) const |
Return a correlation matrix element addressed with numeric indices. More... | |
Double_t | covariance (Int_t row, Int_t col) const |
Return the covariance matrix element addressed with numeric indices. More... | |
Protected Member Functions inherited from TObject | |
void | MakeZombie () |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
Protected Member Functions inherited from RooDirItem | |
void | appendToDir (TObject *obj, Bool_t forceMemoryResident=kFALSE) |
Append object to directory. More... | |
void | removeFromDir (TObject *obj) |
Remove object from directory it was added to. More... | |
Protected Attributes | |
Int_t | _status |
Int_t | _covQual |
Int_t | _numBadNLL |
Double_t | _minNLL |
Double_t | _edm |
RooArgList * | _constPars |
RooArgList * | _initPars |
RooArgList * | _finalPars |
RooArgList * | _globalCorr |
TList | _corrMatrix |
List of global correlation coefficients. More... | |
RooArgList * | _randomPars |
Correlation matrix (list of RooArgLists) More... | |
TMatrixF * | _Lt |
List of floating parameters with most recent random perturbation applied. More... | |
TMatrixDSym * | _CM |
triangular matrix used for generate random perturbations More... | |
TMatrixDSym * | _VM |
TVectorD * | _GC |
std::vector< std::pair < std::string, int > > | _statusHistory |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from RooDirItem | |
TDirectory * | _dir |
Friends | |
class | RooMinuit |
class | RooMinimizer |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
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 } |
Static Protected Attributes inherited from RooPrintable | |
static Int_t | _nameLength |
#include <RooFitResult.h>
RooFitResult::RooFitResult | ( | const char * | name = 0 , |
const char * | title = 0 |
||
) |
Constructor with name and title coverity[UNINIT_CTOR].
Definition at line 70 of file RooFitResult.cxx.
Referenced by Clone(), clone(), and lastMinuitFit().
RooFitResult::RooFitResult | ( | const RooFitResult & | other | ) |
Copy constructor.
Definition at line 81 of file RooFitResult.cxx.
|
virtual |
Destructor.
Definition at line 115 of file RooFitResult.cxx.
|
inlinevirtual |
Make a clone of an object using the Streamer facility.
If newname is specified, this will be the name of the new object.
Reimplemented from TNamed.
Definition at line 47 of file RooFitResult.h.
|
inlinevirtual |
Definition at line 52 of file RooFitResult.h.
TMatrixDSym RooFitResult::conditionalCovarianceMatrix | ( | const RooArgList & | params | ) | const |
Return a reduced covariance matrix, which is calculated as ___ -1 Vred = V22 = V11 - V12 * V22 * V21.
Where V11,V12,V21,V22 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 V22bar is the Shur complement of V22, calculated as shown above
(Note that Vred is not a simple sub-matrix of V)
Definition at line 1095 of file RooFitResult.cxx.
|
inline |
Definition at line 101 of file RooFitResult.h.
Referenced by lastMinuitFit().
Definition at line 116 of file RooFitResult.h.
Referenced by ClassImp(), correlation(), and plotOn().
|
inline |
Definition at line 120 of file RooFitResult.h.
Double_t RooFitResult::correlation | ( | const char * | parname1, |
const char * | parname2 | ||
) | const |
Return the correlation between parameters 'par1' and 'par2'.
Definition at line 401 of file RooFitResult.cxx.
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 422 of file RooFitResult.cxx.
Return a correlation matrix element addressed with numeric indices.
Definition at line 479 of file RooFitResult.cxx.
TH2 * RooFitResult::correlationHist | ( | const char * | name = "correlation_matrix" | ) | const |
Return TH2D of correlation matrix.
Definition at line 993 of file RooFitResult.cxx.
const TMatrixDSym & RooFitResult::correlationMatrix | ( | ) | const |
Return correlation matrix ;.
Definition at line 1176 of file RooFitResult.cxx.
Return the covariance matrix element addressed with numeric indices.
Definition at line 488 of file RooFitResult.cxx.
Referenced by randomizePars().
const TMatrixDSym & RooFitResult::covarianceMatrix | ( | ) | const |
Return covariance matrix.
Definition at line 1019 of file RooFitResult.cxx.
Referenced by conditionalCovarianceMatrix(), createHessePdf(), RooJeffreysPrior::evaluate(), RooAbsPdf::fitTo(), FourBinInstructional(), RooAbsReal::getPropagatedError(), JeffreysPriorDemo(), MultivariateGaussianTest(), RooAbsReal::plotOnWithErrorBand(), reducedCovarianceMatrix(), rs101_limitexample(), TestJeffreysGaussMean(), TestJeffreysGaussMeanAndSigma(), and TestJeffreysGaussSigma().
|
inline |
Definition at line 85 of file RooFitResult.h.
Referenced by RooStats::DetailedOutputAggregator::GetAsArgSet().
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 1187 of file RooFitResult.cxx.
Referenced by RooAbsReal::plotOnWithErrorBand().
Configure default contents to be printed.
Reimplemented from RooPrintable.
Definition at line 1366 of file RooFitResult.cxx.
Referenced by RooStats::ProfileLikelihoodCalculator::DoGlobalFit(), RooStats::ProfileLikelihoodCalculator::GetHypoTest(), and Print().
|
virtual |
Configure mapping of Print() arguments to RooPrintable print styles.
Reimplemented from RooPrintable.
Definition at line 1375 of file RooFitResult.cxx.
Referenced by RooStats::ProfileLikelihoodCalculator::DoGlobalFit(), RooStats::ProfileLikelihoodCalculator::GetHypoTest(), and Print().
|
inline |
Definition at line 93 of file RooFitResult.h.
Referenced by lastMinuitFit().
|
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 713 of file RooFitResult.cxx.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
|
protected |
Function called by RooMinimizer.
Definition at line 595 of file RooFitResult.cxx.
|
protected |
Sanity check.
Definition at line 630 of file RooFitResult.cxx.
Referenced by correlation(), globalCorr(), and isIdentical().
|
inline |
Definition at line 109 of file RooFitResult.h.
Referenced by RooMCStudy::addFitResult(), FourBinInstructional(), RooStats::DetailedOutputAggregator::GetAsArgSet(), RooStats::ProfileLikelihoodCalculator::GetInterval(), RooAbsReal::getPropagatedError(), MultivariateGaussianTest(), plotOn(), RooAbsReal::plotOnWithErrorBand(), RooMultiVarGaussian::RooMultiVarGaussian(), and rs101_limitexample().
|
inline |
Definition at line 105 of file RooFitResult.h.
Referenced by RooStats::DetailedOutputAggregator::GetAsArgSet().
Definition at line 136 of file RooFitResult.h.
Referenced by globalCorr().
Double_t RooFitResult::globalCorr | ( | const char * | parname | ) |
Return the global correlation of the named parameter.
Definition at line 441 of file RooFitResult.cxx.
const RooArgList * RooFitResult::globalCorr | ( | ) |
Return the list of all global correlations.
Definition at line 465 of file RooFitResult.cxx.
Bool_t RooFitResult::isIdentical | ( | const RooFitResult & | other, |
Double_t | tol = 5e-5 , |
||
Double_t | tolCorr = 1e-4 , |
||
Bool_t | verbose = kTRUE |
||
) | const |
Return true if this fit result is identical to other within tolerance 'tol' on fitted values and tolerance 'tolCor' on correlation coefficients.
Definition at line 773 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 867 of file RooFitResult.cxx.
|
inline |
Definition at line 97 of file RooFitResult.h.
Referenced by RooMCStudy::addFitResult(), RooStats::BernsteinCorrection::CreateQSamplingDist(), RooStats::AsymptoticCalculator::EvaluateNLL(), RooStats::ProfileLikelihoodTestStat::EvaluateProfileLikelihood(), RooGenFitStudy::execute(), RooMCStudy::fitSample(), RooStats::DetailedOutputAggregator::GetAsArgSet(), RooStats::ProfileLikelihoodCalculator::GetHypoTest(), RooStats::BernsteinCorrection::ImportCorrectedPdf(), and RooDLLSignificanceMCSModule::processAfterFit().
|
inline |
Definition at line 89 of file RooFitResult.h.
Referenced by RooStats::DetailedOutputAggregator::GetAsArgSet().
|
inline |
Definition at line 81 of file RooFitResult.h.
|
inline |
Definition at line 142 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):
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.
Definition at line 247 of file RooFitResult.cxx.
Print TNamed name and title.
Reimplemented from TNamed.
Definition at line 65 of file RooFitResult.h.
Referenced by FitUsingRooFit(), FitUsingRooFit2(), JeffreysPriorDemo(), StandardBayesianNumericalDemo(), TestJeffreysGaussMean(), TestJeffreysGaussMeanAndSigma(), and TestJeffreysGaussSigma().
|
virtual |
Print arguments of fit result, i.e. the parameters of the fit.
Reimplemented from RooPrintable.
Definition at line 1347 of file RooFitResult.cxx.
|
virtual |
Print class name of fit result.
Reimplemented from RooPrintable.
Definition at line 1338 of file RooFitResult.cxx.
|
virtual |
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
Reimplemented from RooPrintable.
Definition at line 500 of file RooFitResult.cxx.
|
virtual |
Print name of fit result.
Reimplemented from RooPrintable.
Definition at line 1320 of file RooFitResult.cxx.
|
virtual |
Print title of fit result.
Reimplemented from RooPrintable.
Definition at line 1329 of file RooFitResult.cxx.
|
virtual |
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 1357 of file RooFitResult.cxx.
const RooArgList & RooFitResult::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.
Definition at line 345 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 1031 of file RooFitResult.cxx.
Referenced by RooAbsReal::getPropagatedError(), and RooAbsReal::plotOnWithErrorBand().
|
protected |
Fill the list of constant parameters.
Definition at line 136 of file RooFitResult.cxx.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
|
protected |
Store externally provided correlation matrix in this RooFitResult ;.
Definition at line 959 of file RooFitResult.cxx.
Referenced by RooMinuit::save().
Definition at line 169 of file RooFitResult.h.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
Definition at line 167 of file RooFitResult.h.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
|
protected |
Fill the list of final values of the floating parameters.
Definition at line 176 of file RooFitResult.cxx.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
|
protected |
Fill the list of initial values of the floating parameters.
Definition at line 156 of file RooFitResult.cxx.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
Definition at line 166 of file RooFitResult.h.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
|
virtual |
Change name of RooFitResult object.
Reimplemented from TNamed.
Definition at line 1298 of file RooFitResult.cxx.
Referenced by Clone().
|
virtual |
Change name and title of RooFitResult object.
Reimplemented from TNamed.
Definition at line 1309 of file RooFitResult.cxx.
Definition at line 170 of file RooFitResult.h.
Referenced by RooMinuit::save().
Definition at line 168 of file RooFitResult.h.
Referenced by lastMinuitFit(), RooMinimizer::lastMinuitFit(), and RooMinuit::save().
|
inlineprotected |
Definition at line 174 of file RooFitResult.h.
Referenced by RooMinuit::save().
|
inline |
Definition at line 76 of file RooFitResult.h.
Referenced by RooMCStudy::addFitResult(), RooStats::ProfileLikelihoodCalculator::DoGlobalFit(), RooStats::ProfileLikelihoodTestStat::EvaluateProfileLikelihood(), RooGenFitStudy::execute(), RooMCStudy::fitSample(), FitUsingRooFit(), FitUsingRooFit2(), RooStats::DetailedOutputAggregator::GetAsArgSet(), RooStats::ProfileLikelihoodCalculator::GetHypoTest(), and RooStats::BernsteinCorrection::ImportCorrectedPdf().
Definition at line 196 of file RooFitResult.cxx.
const char * RooFitResult::statusLabelHistory | ( | UInt_t | icycle | ) | const |
Definition at line 210 of file RooFitResult.cxx.
|
friend |
Definition at line 161 of file RooFitResult.h.
|
friend |
Definition at line 160 of file RooFitResult.h.
|
protected |
triangular matrix used for generate random perturbations
Definition at line 194 of file RooFitResult.h.
Referenced by correlation(), correlationHist(), correlationMatrix(), fillCorrMatrix(), fillLegacyCorrMatrix(), RooFitResult(), setCovarianceMatrix(), and ~RooFitResult().
|
protected |
Definition at line 184 of file RooFitResult.h.
Referenced by constPars(), isIdentical(), printArgs(), printMultiline(), RooFitResult(), setConstParList(), and ~RooFitResult().
|
mutableprotected |
List of global correlation coefficients.
Definition at line 189 of file RooFitResult.h.
Referenced by correlation(), fillLegacyCorrMatrix(), isIdentical(), and ~RooFitResult().
|
protected |
Definition at line 180 of file RooFitResult.h.
Referenced by covQual(), printMultiline(), printValue(), setCovarianceMatrix(), and setCovQual().
|
protected |
Definition at line 183 of file RooFitResult.h.
Referenced by edm(), printMultiline(), printValue(), and setEDM().
|
protected |
Definition at line 186 of file RooFitResult.h.
Referenced by conditionalCovarianceMatrix(), correlation(), correlationHist(), createHessePdf(), fillCorrMatrix(), fillLegacyCorrMatrix(), floatParsFinal(), isIdentical(), printArgs(), printMultiline(), randomizePars(), reducedCovarianceMatrix(), RooFitResult(), setFinalParList(), and ~RooFitResult().
|
protected |
Definition at line 196 of file RooFitResult.h.
Referenced by fillCorrMatrix(), fillLegacyCorrMatrix(), RooFitResult(), and ~RooFitResult().
|
mutableprotected |
Definition at line 188 of file RooFitResult.h.
Referenced by correlation(), fillLegacyCorrMatrix(), globalCorr(), isIdentical(), printMultiline(), and ~RooFitResult().
|
protected |
Definition at line 185 of file RooFitResult.h.
Referenced by correlation(), fillCorrMatrix(), fillLegacyCorrMatrix(), floatParsInit(), globalCorr(), isIdentical(), printMultiline(), RooFitResult(), setInitParList(), and ~RooFitResult().
|
mutableprotected |
List of floating parameters with most recent random perturbation applied.
Definition at line 192 of file RooFitResult.h.
Referenced by randomizePars(), RooFitResult(), and ~RooFitResult().
|
protected |
Definition at line 182 of file RooFitResult.h.
Referenced by isIdentical(), minNll(), printMultiline(), printValue(), and setMinNLL().
|
protected |
Definition at line 181 of file RooFitResult.h.
Referenced by numInvalidNLL(), and setNumInvalidNLL().
|
mutableprotected |
Correlation matrix (list of RooArgLists)
Definition at line 191 of file RooFitResult.h.
Referenced by randomizePars(), RooFitResult(), and ~RooFitResult().
|
protected |
Definition at line 179 of file RooFitResult.h.
Referenced by printValue(), setStatus(), and status().
|
protected |
Definition at line 198 of file RooFitResult.h.
Referenced by numStatusHistory(), printMultiline(), setStatusHistory(), statusCodeHistory(), and statusLabelHistory().
|
protected |
Definition at line 195 of file RooFitResult.h.
Referenced by covariance(), covarianceMatrix(), fillCorrMatrix(), RooFitResult(), setCovarianceMatrix(), and ~RooFitResult().