Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User |
RooMinuitclass description - source file - inheritance tree (.pdf) class RooMinuit : public TObject
private: Data Membersprivate: Class DescriptionRooMinuit is a wrapper class around TFitter/TMinuit that provides a seamless interface between the MINUIT functionality and the native RooFit interface. RooMinuit can minimize any RooAbsReal function with respect to its parameters. Usual choices for minimization are RooNLLVar and RooChi2Var RooMinuit has methods corresponding to MINUIT functions like hesse(), migrad(), minos() etc. In each of these function calls the state of the MINUIT engine is synchronized with the state of the RooFit variables: any change in variables, change in the constant status etc is forwarded to MINUIT prior to execution of the MINUIT call. Afterwards the RooFit objects are resynchronized with the output state of MINUIT: changes parameter values, errors are propagated. Various methods are available to control verbosity, profiling, automatic PDF optimization. RooMinuit(RooAbsReal& function) Constructor ~RooMinuit() Destructor void setStrategy(Int_t istrat) Change MINUIT strategy void setErrorLevel(Double_t level) void setEps(Double_t eps) Change MINUIT epsilon RooFitResult* fit(const char* options) Parse traditional RooAbsPdf::fitTo driver options s - Run Hesse first to estimate initial step size m - Run Migrad only h - Run Hesse to estimate errors v - Verbose mode l - Log parameters after each Minuit steps to file t - Activate profile timer r - Save fit result 0 - Run Migrad with strategy 0 Int_t migrad() Execute MIGRAD Int_t hesse() Execute HESSE Int_t minos() Execute MINOS Int_t minos(const RooArgSet& minosParamList) Execute MINOS for given list of parameters Int_t seek() Execute SEEK Int_t simplex() Execute SIMPLEX Int_t improve() Execute IMPROVE Int_t setPrintLevel(Int_t newLevel) Int_t setWarnLevel(Int_t newLevel) Bool_t synchronize(Bool_t verbose) void optimizeConst(Bool_t flag) RooFitResult* save(const char* userName, const char* userTitle) Save snaphot of current minimizer status TH2F* contour(RooRealVar& var1, RooRealVar& var2, Double_t n1, Double_t n2, Double_t n3) Verify that both variables are floating parameters of PDF Bool_t setLogFile(const char* logfile) Double_t getPdfParamVal(Int_t index) Access PDF parameter value by ordinal index (needed by MINUIT) Double_t getPdfParamErr(Int_t index) Access PDF parameter error by ordinal index (needed by MINUIT) Bool_t setPdfParamVal(Int_t index, Double_t value, Bool_t verbose) Modify PDF parameter value by ordinal index (needed by MINUIT) void setPdfParamErr(Int_t index, Double_t value) Modify PDF parameter error by ordinal index (needed by MINUIT) void clearPdfParamAsymErr(Int_t index) Modify PDF parameter error by ordinal index (needed by MINUIT) void setPdfParamErr(Int_t index, Double_t loVal, Double_t hiVal) Modify PDF parameter error by ordinal index (needed by MINUIT) void profileStart() void profileStop() void backProp() Transfer MINUIT fit results back into RooFit objects Inline Functionsvoid setErrorHandling(Bool_t flag) void setVerbose(Bool_t flag = kTRUE) void setProfile(Bool_t flag = kTRUE) Int_t getNPar() const ofstream* logfile() const Double_t& maxFCN() RooMinuit RooMinuit(const RooMinuit&) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) RooMinuit& operator=(const RooMinuit&)
|
Page maintained by Wouter Verkerke and David Kirkby |