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   	//                                                                      //
17   	// Foption                                                              //
18   	//                                                                      //
19   	// Histogram fit options structure.                                     //
20   	//                                                                      //
21   	//////////////////////////////////////////////////////////////////////////
22   	
23   	
24   	struct 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 Like;        // "L"  Use Log Likelihood. Default is chisquare method except fitting THnsparse
34   	   int User;        // "U"  Use a User specified fitting algorithm (via SetFCN)
35   	   int W1;          // "W"  Set all the weights to 1. Ignore error bars
36   	   int Errors;      // "E"  Performs a better error evaluation, calling HESSE and MINOS
37   	   int More;        // "M"  Improve fit results.
38   	   int Range;       // "R"  Use the range stored in function
39   	   int Gradient;    // "G"  Option to compute derivatives analytically
40   	   int Nostore;     // "N"  If set, do not store the function graph
41   	   int Nograph;     // "0"  If set, do not display the function graph
42   	   int Plus;        // "+"  Add new function (default is replace)
43   	   int Integral;    // "I"  Use function integral instead of function in center of bin
44   	   int Nochisq;     // "C"  In case of linear fitting, don't calculate the chisquare
45   	   int Minuit;      // "F"  If fitting a polN, switch to minuit fitter
46   	   int NoErrX;      // "EX0" or "T" When fitting a TGraphErrors do not consider error in coordinates 
47   	   int Robust;      // "ROB" or "H":  For a TGraph use robust fitting
48   	   int StoreResult; // "S": Stores the result in a TFitResult structure
49   	   double hRobust;  //  value of h parameter used in robust fitting 
50   	
51   	  Foption_t() :
52   	      Quiet        (0),
53   	      Verbose      (0),
54   	      Bound        (0),
55   	      Chi2         (0),
56   	      Like         (0),
57   	      User         (0),
58   	      W1           (0),
59   	      Errors       (0),
60   	      More         (0),
61   	      Range        (0),
62   	      Gradient     (0),
63   	      Nostore      (0),
64   	      Nograph      (0),
65   	      Plus         (0),
66   	      Integral     (0),
67   	      Nochisq      (0),
68   	      Minuit       (0),
69   	      NoErrX       (0),
70   	      Robust       (0),
71   	      StoreResult  (0), 
72   	      hRobust      (0)
73   	   {}
74   	};
75   	
76   	#endif
77