Logo ROOT  
Reference Guide
DataOptions.h
Go to the documentation of this file.
1 // @(#)root/mathcore:$Id$
2 // Author: L. Moneta Wed Aug 30 11:04:59 2006
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
7  * *
8  * *
9  **********************************************************************/
10 
11 // Header file for class DataOptions
12 
13 #ifndef ROOT_Fit_DataOptions
14 #define ROOT_Fit_DataOptions
15 
16 
17 namespace ROOT {
18 
19  namespace Fit {
20 
21 
22 //___________________________________________________________________________________
23 /**
24  DataOptions : simple structure holding the options on how the data are filled
25 
26  @ingroup FitData
27 */
28 struct DataOptions {
29 
30 
31  /**
32  Default constructor: use the default options
33  */
34  DataOptions () :
35  fIntegral(false),
36  fBinVolume(false),
37  fNormBinVolume(false),
38  fUseEmpty(false),
39  fUseRange(false),
40  fErrors1(false),
41  fExpErrors(false),
42  fCoordErrors(true),
43  fAsymErrors(true)
44  {}
45 
46 
47  bool fIntegral; /// use integral of bin content instead of bin center (default is false)
48  bool fBinVolume; /// normalize data by the bin volume (it is used in the Poisson likelihood fits)
49  bool fNormBinVolume; /// normalize data by a normalized the bin volume (bin volume divided by a reference value)
50  bool fUseEmpty; /// use empty bins (default is false) with a fixed error of 1
51  bool fUseRange; /// use the function range when creating the fit data (default is false)
52  bool fErrors1; /// use all errors equal to 1, i.e. fit without errors (default is false)
53  bool fExpErrors; /// use expected errors from the function and not from the data
54  bool fCoordErrors; /// use errors on the x coordinates when available (default is true)
55  bool fAsymErrors; /// use asymmetric errors in the value when available, selecting them according to the on sign of residual (default is true)
56 
57 
58 };
59 
60  } // end namespace Fit
61 
62 } // end namespace ROOT
63 
64 
65 #endif /* ROOT_Fit_DataOptions */
ROOT::Fit::DataOptions::fUseEmpty
bool fUseEmpty
normalize data by a normalized the bin volume (bin volume divided by a reference value)
Definition: DataOptions.h:65
HFit::Fit
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Definition: HFitImpl.cxx:133
ROOT::Fit::DataOptions::fExpErrors
bool fExpErrors
use all errors equal to 1, i.e. fit without errors (default is false)
Definition: DataOptions.h:68
ROOT::Fit::DataOptions::fCoordErrors
bool fCoordErrors
use expected errors from the function and not from the data
Definition: DataOptions.h:69
ROOT::Fit::DataOptions::fUseRange
bool fUseRange
use empty bins (default is false) with a fixed error of 1
Definition: DataOptions.h:66
ROOT::Fit::DataOptions::fIntegral
bool fIntegral
Definition: DataOptions.h:62
ROOT::Fit::DataOptions::fErrors1
bool fErrors1
use the function range when creating the fit data (default is false)
Definition: DataOptions.h:67
ROOT::Fit::DataOptions::DataOptions
DataOptions()
Default constructor: use the default options.
Definition: DataOptions.h:49
ROOT::Fit::DataOptions::fBinVolume
bool fBinVolume
use integral of bin content instead of bin center (default is false)
Definition: DataOptions.h:63
ROOT::Fit::DataOptions::fAsymErrors
bool fAsymErrors
use errors on the x coordinates when available (default is true)
Definition: DataOptions.h:70
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Fit::DataOptions::fNormBinVolume
bool fNormBinVolume
normalize data by the bin volume (it is used in the Poisson likelihood fits)
Definition: DataOptions.h:64