ROOT » HIST » HIST » TVirtualFitter

class TVirtualFitter: public TNamed


     Abstract Base Class for Fitting

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TVirtualFitter()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual Double_tChisquare(Int_t npar, Double_t* params) const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual Int_tExecuteCommand(const char* command, Double_t* args, Int_t nargs)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
static TVirtualFitter*Fitter(TObject* obj, Int_t maxpar = 25)
virtual voidFixParameter(Int_t ipar)
virtual voidGetConfidenceIntervals(TObject* obj, Double_t cl = 0.94999999999999996)
virtual voidGetConfidenceIntervals(Int_t n, Int_t ndim, const Double_t* x, Double_t* ci, Double_t cl = 0.94999999999999996)
virtual Double_t*GetCovarianceMatrix() const
virtual Double_tGetCovarianceMatrixElement(Int_t i, Int_t j) const
static const char*GetDefaultFitter()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
static Double_tGetErrorDef()
virtual Int_tGetErrors(Int_t ipar, Double_t& eplus, Double_t& eminus, Double_t& eparab, Double_t& globcc) const
virtual TVirtualFitter::FCNFunc_tGetFCN()
virtual Foption_tGetFitOption() const
static TVirtualFitter*GetFitter()
virtual const char*TObject::GetIconName() const
static Int_tGetMaxIterations()
TMethodCall*GetMethodCall() const
virtual const char*TNamed::GetName() const
virtual Int_tGetNumberFreeParameters() const
virtual Int_tGetNumberTotalParameters() const
virtual TObject*GetObjectFit() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Double_tGetParameter(Int_t ipar) const
virtual Int_tGetParameter(Int_t ipar, char* name, Double_t& value, Double_t& verr, Double_t& vlow, Double_t& vhigh) const
virtual Double_tGetParError(Int_t ipar) const
virtual const char*GetParName(Int_t ipar) const
static Double_tGetPrecision()
virtual Int_tGetStats(Double_t& amin, Double_t& edm, Double_t& errdef, Int_t& nvpar, Int_t& nparx) const
virtual Double_tGetSumLog(Int_t i)
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual TObject*GetUserFunc() const
virtual Int_tGetXfirst() const
virtual Int_tGetXlast() const
virtual Int_tGetYfirst() const
virtual Int_tGetYlast() const
virtual Int_tGetZfirst() const
virtual Int_tGetZlast() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tIsFixed(Int_t ipar) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidPrintResults(Int_t level, Double_t amin) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidReleaseParameter(Int_t ipar)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual Double_t*SetCache(Int_t npoints, Int_t psize)
static voidSetDefaultFitter(const char* name = "")
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidSetErrorDef(Double_t errdef = 1)
virtual voidSetFCN(void* fcn)
virtual voidSetFCN(void(*)(Int_t&,Double_t*,Double_t&,Double_t*,Int_t) fcn)
virtual voidSetFitMethod(const char* name)
virtual voidSetFitOption(Foption_t option)
static voidSetFitter(TVirtualFitter* fitter, Int_t maxpar = 25)
static voidSetMaxIterations(Int_t niter = 5000)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidSetObjectFit(TObject* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual Int_tSetParameter(Int_t ipar, const char* parname, Double_t value, Double_t verr, Double_t vlow, Double_t vhigh)
static voidSetPrecision(Double_t prec = 9.9999999999999995E-7)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetUserFunc(TObject* userfunc)
virtual voidSetXfirst(Int_t first)
virtual voidSetXlast(Int_t last)
virtual voidSetYfirst(Int_t first)
virtual voidSetYlast(Int_t last)
virtual voidSetZfirst(Int_t first)
virtual voidSetZlast(Int_t last)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TVirtualFitter()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
TVirtualFitter&operator=(const TVirtualFitter& tvf)
TVirtualFitter(const TVirtualFitter& tvf)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
Double_t*fCache[fCacheSize] array of points data (fNpoints*fPointSize < fCacheSize words)
Int_tfCacheSizeSize of the fCache array
void(*)(Int_t&,Double_t*,Double_t&,Double_t*,Int_t)fFCN
TMethodCall*fMethodCallPointer to MethodCall in case of interpreted function
TStringTNamed::fNameobject identifier
Int_tfNpointsNumber of points to fit
TObject*fObjectFitpointer to object being fitted
Foption_tfOptionstruct with the fit options
Int_tfPointSizeNumber of words per point in the cache
TStringTNamed::fTitleobject title
TObject*fUserFuncpointer to user theoretical function (a TF1*)
Int_tfXfirstfirst bin on X axis
Int_tfXlastlast bin on X axis
Int_tfYfirstfirst bin on Y axis
Int_tfYlastlast bin on Y axis
Int_tfZfirstfirst bin on Z axis
Int_tfZlastlast bin on Z axis
static TStringfgDefaultname of the default fitter ("Minuit","Fumili",etc)
static Double_tfgErrorDefError definition (default=1)
static TVirtualFitter*fgFitterCurrent fitter (default TFitter)
static Int_tfgMaxiterMaximum number of iterations
static Int_tfgMaxparMaximum number of fit parameters for current fitter
static Double_tfgPrecisionmaximum precision

Class Charts

Inheritance Chart:
TObject
TNamed
TVirtualFitter
TBackCompFitter
TFitter
TFumili
TLinearFitter

Function documentation

TVirtualFitter()
 Default constructor.
TVirtualFitter(const TVirtualFitter& tvf)
copy constructor
TVirtualFitter& operator=(const TVirtualFitter& tvf)
assignment operator
~TVirtualFitter()
 Cleanup virtual fitter.
TVirtualFitter * Fitter(TObject* obj, Int_t maxpar = 25)
 Static function returning a pointer to the current fitter.
 If the fitter does not exist, the default TFitter is created.
 Don't delete the returned fitter object, it will be re-used.
void GetConfidenceIntervals(Int_t n, Int_t ndim, const Double_t* x, Double_t* ci, Double_t cl = 0.94999999999999996)
return confidence intervals in array x of dimension ndim
implemented in TFitter and TLinearFitter
void GetConfidenceIntervals(TObject* obj, Double_t cl = 0.94999999999999996)
return confidence intervals in TObject obj
implemented in TFitter and TLinearFitter
const char * GetDefaultFitter()
 static: return the name of the default fitter
TVirtualFitter * GetFitter()
 static: return the current Fitter
Int_t GetMaxIterations()
 static: Return the maximum number of iterations
 actually max number of function calls
Double_t GetErrorDef()
 static: Return the Error Definition
Double_t GetPrecision()
 static: Return the fit relative precision
void SetDefaultFitter(const char* name = "")
 static: set name of default fitter
void SetFitter(TVirtualFitter* fitter, Int_t maxpar = 25)
 Static function to set an alternative fitter
void SetFCN(void (*fcn)(Int_t &, Double_t *, Double_t &f, Double_t *, Int_t))
 To set the address of the minimization objective function
 called by the native compiler (see function below when called by CINT)
Double_t * SetCache(Int_t npoints, Int_t psize)
 Initialize the cache array
 npoints is the number of points to be stored (or already stored) in the cache
 psize is the number of elements per point

 if (npoints*psize > fCacheSize) the existing cache is deleted
 and a new array is created.
 The function returns a pointer to the cache
void SetFCN(void* fcn)
  To set the address of the minimization objective function

     this function is called by CINT instead of the function above
void SetMaxIterations(Int_t niter = 5000)
 static: Set the maximum number of function calls for the minimization algorithm
 For example for MIGRAD this is the maxcalls value passed as first argument
 (see http://wwwasdoc.web.cern.ch/wwwasdoc/minuit/node18.html )
void SetErrorDef(Double_t errdef = 1)
 static: Set the Error Definition (default=1)
 For Minuit this is the value passed with the "SET ERR" command
 (see http://wwwasdoc.web.cern.ch/wwwasdoc/minuit/node18.html)
void SetPrecision(Double_t prec = 9.9999999999999995E-7)
 static: Set the tolerance used in the minimization algorithm
 For example for MIGRAD this is tolerance value passed as second argument
 (see http://wwwasdoc.web.cern.ch/wwwasdoc/minuit/node18.html )
Double_t Chisquare(Int_t npar, Double_t* params) const
void Clear(Option_t* option = "")
Int_t ExecuteCommand(const char* command, Double_t* args, Int_t nargs)
void FixParameter(Int_t ipar)
Double_t * GetCovarianceMatrix() const
Double_t GetCovarianceMatrixElement(Int_t i, Int_t j) const
Int_t GetErrors(Int_t ipar, Double_t& eplus, Double_t& eminus, Double_t& eparab, Double_t& globcc) const
FCNFunc_t GetFCN()
{ return fFCN; }
Foption_t GetFitOption() const
{return fOption;}
TMethodCall * GetMethodCall() const
{return fMethodCall;}
Int_t GetNumberTotalParameters() const
Int_t GetNumberFreeParameters() const
TObject * GetObjectFit() const
{return fObjectFit;}
Double_t GetParError(Int_t ipar) const
Double_t GetParameter(Int_t ipar) const
Int_t GetParameter(Int_t ipar, char* name, Double_t& value, Double_t& verr, Double_t& vlow, Double_t& vhigh) const
const char * GetParName(Int_t ipar) const
Int_t GetStats(Double_t& amin, Double_t& edm, Double_t& errdef, Int_t& nvpar, Int_t& nparx) const
Double_t GetSumLog(Int_t i)
TObject * GetUserFunc() const
{return fUserFunc;}
Int_t GetXfirst() const
{return fXfirst;}
Int_t GetXlast() const
{return fXlast;}
Int_t GetYfirst() const
{return fYfirst;}
Int_t GetYlast() const
{return fYlast;}
Int_t GetZfirst() const
{return fZfirst;}
Int_t GetZlast() const
{return fZlast;}
Bool_t IsFixed(Int_t ipar) const
void PrintResults(Int_t level, Double_t amin) const
void ReleaseParameter(Int_t ipar)
void SetFitMethod(const char* name)
void SetFitOption(Foption_t option)
{fOption = option;}
void SetObjectFit(TObject* obj)
{fObjectFit = obj;}
Int_t SetParameter(Int_t ipar, const char* parname, Double_t value, Double_t verr, Double_t vlow, Double_t vhigh)
void SetUserFunc(TObject* userfunc)
{fUserFunc = userfunc;}
void SetXfirst(Int_t first)
{fXfirst = first;}
void SetXlast(Int_t last)
{fXlast = last;}
void SetYfirst(Int_t first)
{fYfirst = first;}
void SetYlast(Int_t last)
{fYlast = last;}
void SetZfirst(Int_t first)
{fZfirst = first;}
void SetZlast(Int_t last)
{fZlast = last;}