00001 /* @(#)root/hist:$Id: Foption.h 31207 2009-11-16 16:52:00Z moneta $ */ 00002 00003 /************************************************************************* 00004 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00005 * All rights reserved. * 00006 * * 00007 * For the licensing terms see $ROOTSYS/LICENSE. * 00008 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00009 *************************************************************************/ 00010 00011 #ifndef ROOT_Foption 00012 #define ROOT_Foption 00013 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // Foption // 00018 // // 00019 // Histogram fit options structure. // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 00024 struct Foption_t { 00025 //*-* chopt may be the concatenation of the following options: 00026 //*-* ======================================================= 00027 //*-* 00028 //*-* The following structure members are set to 1 if the option is selected: 00029 int Quiet; // "Q" Quiet mode. No print 00030 int Verbose; // "V" Verbose mode. Print results after each iteration 00031 int Bound; // "B" When using pre-defined functions user parameter settings are used instead of default one 00032 int Chi2; // "X" For fitting THnsparse use chi2 method (default is likelihood) 00033 int Like; // "L" Use Log Likelihood. Default is chisquare method except fitting THnsparse 00034 int User; // "U" Use a User specified fitting algorithm (via SetFCN) 00035 int W1; // "W" Set all the weights to 1. Ignore error bars 00036 int Errors; // "E" Performs a better error evaluation, calling HESSE and MINOS 00037 int More; // "M" Improve fit results. 00038 int Range; // "R" Use the range stored in function 00039 int Gradient; // "G" Option to compute derivatives analytically 00040 int Nostore; // "N" If set, do not store the function graph 00041 int Nograph; // "0" If set, do not display the function graph 00042 int Plus; // "+" Add new function (default is replace) 00043 int Integral; // "I" Use function integral instead of function in center of bin 00044 int Nochisq; // "C" In case of linear fitting, don't calculate the chisquare 00045 int Minuit; // "F" If fitting a polN, switch to minuit fitter 00046 int NoErrX; // "EX0" or "T" When fitting a TGraphErrors do not consider error in coordinates 00047 int Robust; // "ROB" or "H": For a TGraph use robust fitting 00048 int StoreResult; // "S": Stores the result in a TFitResult structure 00049 double hRobust; // value of h parameter used in robust fitting 00050 00051 Foption_t() : 00052 Quiet (0), 00053 Verbose (0), 00054 Bound (0), 00055 Chi2 (0), 00056 Like (0), 00057 User (0), 00058 W1 (0), 00059 Errors (0), 00060 More (0), 00061 Range (0), 00062 Gradient (0), 00063 Nostore (0), 00064 Nograph (0), 00065 Plus (0), 00066 Integral (0), 00067 Nochisq (0), 00068 Minuit (0), 00069 NoErrX (0), 00070 Robust (0), 00071 StoreResult (0), 00072 hRobust (0) 00073 {} 00074 }; 00075 00076 #endif