Logo ROOT  
Reference Guide
Foption.h
Go to the documentation of this file.
1/* @(#)root/hist:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_Foption
12#define ROOT_Foption
13
14//////////////////////////////////////////////////////////////////////////
15// //
16// Foption //
17// //
18// Histogram fit options structure. //
19// //
20//////////////////////////////////////////////////////////////////////////
21
23
24struct Foption_t {
25//*-* chopt may be the concatenation of the following options:
26//*-* =======================================================
27//*-*
28//*-* The following structure members are set to 1 if the option is selected:
29 int Quiet; // "Q" Quiet mode. No print
30 int Verbose; // "V" Verbose mode. Print results after each iteration
31 int Bound; // "B" When using pre-defined functions user parameter settings are used instead of default one
32 int Chi2; // "X" For fitting THnsparse use chi2 method (default is likelihood)
33 int PChi2; // "P" Use Pearson chi2 built with the expected error instead of the observed ones
34 int Like; // "L" Use Log Likelihood. Default is chisquare method except fitting THnsparse
35 int User; // "U" Use a User specified fitting algorithm (via SetFCN)
36 int W1; // "W" Set all the weights to 1. Ignore error bars
37 int Errors; // "E" Performs a better error evaluation, calling HESSE and MINOS
38 int More; // "M" Improve fit results.
39 int Range; // "R" Use the range stored in function
40 int Gradient; // "G" Option to compute derivatives analytically
41 int Nostore; // "N" If set, do not store the function graph
42 int Nograph; // "0" If set, do not display the function graph
43 int Plus; // "+" Add new function (default is replace)
44 int Integral; // "I" Use function integral instead of function in center of bin
45 int Nochisq; // "C" In case of linear fitting, don't calculate the chisquare
46 int Minuit; // "F" If fitting a polN, switch to minuit fitter
47 int NoErrX; // "EX0" or "T" When fitting a TGraphErrors do not consider error in coordinates
48 int Robust; // "ROB" or "H": For a TGraph use robust fitting
49 int StoreResult; // "S": Stores the result in a TFitResult structure
50 int BinVolume; // "WIDTH": scale content by the bin width/volume
51 double hRobust; // value of h parameter used in robust fitting
52 ROOT::Fit::ExecutionPolicy ExecPolicy; // Choose the execution Policy: "SERIAL", "MULTITHREAD" or "MULTIPROCESS"
53
55 Quiet (0),
56 Verbose (0),
57 Bound (0),
58 Chi2 (0),
59 PChi2 (0),
60 Like (0),
61 User (0),
62 W1 (0),
63 Errors (0),
64 More (0),
65 Range (0),
66 Gradient (0),
67 Nostore (0),
68 Nograph (0),
69 Plus (0),
70 Integral (0),
71 Nochisq (0),
72 Minuit (0),
73 NoErrX (0),
74 Robust (0),
75 StoreResult (0),
76 BinVolume (0),
77 hRobust (0),
79 {}
80};
81
82#endif
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Definition: HFitImpl.cxx:134
VSD Structures.
Definition: StringConv.hxx:21
int Range
Definition: Foption.h:39
int Nograph
Definition: Foption.h:42
ROOT::Fit::ExecutionPolicy ExecPolicy
Definition: Foption.h:52
int Quiet
Definition: Foption.h:29
int Like
Definition: Foption.h:34
int W1
Definition: Foption.h:36
Foption_t()
Definition: Foption.h:54
int Gradient
Definition: Foption.h:40
int StoreResult
Definition: Foption.h:49
int Nochisq
Definition: Foption.h:45
int Robust
Definition: Foption.h:48
double hRobust
Definition: Foption.h:51
int Plus
Definition: Foption.h:43
int Integral
Definition: Foption.h:44
int Bound
Definition: Foption.h:31
int Nostore
Definition: Foption.h:41
int More
Definition: Foption.h:38
int PChi2
Definition: Foption.h:33
int Chi2
Definition: Foption.h:32
int Minuit
Definition: Foption.h:46
int Errors
Definition: Foption.h:37
int NoErrX
Definition: Foption.h:47
int Verbose
Definition: Foption.h:30
int User
Definition: Foption.h:35
int BinVolume
Definition: Foption.h:50