/* @(#)root/hist:$Id$ */

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_Foption
#define ROOT_Foption


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// Foption                                                              //
//                                                                      //
// Histogram fit options structure.                                     //
//                                                                      //
//////////////////////////////////////////////////////////////////////////


struct Foption_t {
//*-*      chopt may be the concatenation of the following options:
//*-*      =======================================================
//*-*
//*-*   The following structure members are set to 1 if the option is selected:
   int Quiet;       // "Q"  Quiet mode. No print
   int Verbose;     // "V"  Verbose mode. Print results after each iteration
   int Bound;       // "B"  When using pre-defined functions user parameter settings are used instead of default one
   int Chi2;        // "X"  For fitting THnsparse use chi2 method (default is likelihood)
   int PChi2;       // "P"  Use Pearson chi2 built with the expected error instead of the observed ones
   int Like;        // "L"  Use Log Likelihood. Default is chisquare method except fitting THnsparse
   int User;        // "U"  Use a User specified fitting algorithm (via SetFCN)
   int W1;          // "W"  Set all the weights to 1. Ignore error bars
   int Errors;      // "E"  Performs a better error evaluation, calling HESSE and MINOS
   int More;        // "M"  Improve fit results.
   int Range;       // "R"  Use the range stored in function
   int Gradient;    // "G"  Option to compute derivatives analytically
   int Nostore;     // "N"  If set, do not store the function graph
   int Nograph;     // "0"  If set, do not display the function graph
   int Plus;        // "+"  Add new function (default is replace)
   int Integral;    // "I"  Use function integral instead of function in center of bin
   int Nochisq;     // "C"  In case of linear fitting, don't calculate the chisquare
   int Minuit;      // "F"  If fitting a polN, switch to minuit fitter
   int NoErrX;      // "EX0" or "T" When fitting a TGraphErrors do not consider error in coordinates 
   int Robust;      // "ROB" or "H":  For a TGraph use robust fitting
   int StoreResult; // "S": Stores the result in a TFitResult structure
   double hRobust;  //  value of h parameter used in robust fitting 

  Foption_t() :
      Quiet        (0),
      Verbose      (0),
      Bound        (0),
      Chi2         (0),
      PChi2        (0),
      Like         (0),
      User         (0),
      W1           (0),
      Errors       (0),
      More         (0),
      Range        (0),
      Gradient     (0),
      Nostore      (0),
      Nograph      (0),
      Plus         (0),
      Integral     (0),
      Nochisq      (0),
      Minuit       (0),
      NoErrX       (0),
      Robust       (0),
      StoreResult  (0), 
      hRobust      (0)
   {}
};

#endif
 Foption.h:1
 Foption.h:2
 Foption.h:3
 Foption.h:4
 Foption.h:5
 Foption.h:6
 Foption.h:7
 Foption.h:8
 Foption.h:9
 Foption.h:10
 Foption.h:11
 Foption.h:12
 Foption.h:13
 Foption.h:14
 Foption.h:15
 Foption.h:16
 Foption.h:17
 Foption.h:18
 Foption.h:19
 Foption.h:20
 Foption.h:21
 Foption.h:22
 Foption.h:23
 Foption.h:24
 Foption.h:25
 Foption.h:26
 Foption.h:27
 Foption.h:28
 Foption.h:29
 Foption.h:30
 Foption.h:31
 Foption.h:32
 Foption.h:33
 Foption.h:34
 Foption.h:35
 Foption.h:36
 Foption.h:37
 Foption.h:38
 Foption.h:39
 Foption.h:40
 Foption.h:41
 Foption.h:42
 Foption.h:43
 Foption.h:44
 Foption.h:45
 Foption.h:46
 Foption.h:47
 Foption.h:48
 Foption.h:49
 Foption.h:50
 Foption.h:51
 Foption.h:52
 Foption.h:53
 Foption.h:54
 Foption.h:55
 Foption.h:56
 Foption.h:57
 Foption.h:58
 Foption.h:59
 Foption.h:60
 Foption.h:61
 Foption.h:62
 Foption.h:63
 Foption.h:64
 Foption.h:65
 Foption.h:66
 Foption.h:67
 Foption.h:68
 Foption.h:69
 Foption.h:70
 Foption.h:71
 Foption.h:72
 Foption.h:73
 Foption.h:74
 Foption.h:75
 Foption.h:76
 Foption.h:77
 Foption.h:78