#include <NagFitStrategy.h>
Inheritance diagram for SctFitter::NagFitStrategy:
Public Member Functions | |
NagFitStrategy (string opt=string("")) throw () | |
constuctor | |
~NagFitStrategy () throw () | |
destructor | |
virtual void | fitTH1 (const TH1 &hist, TF1 &fit) const throw (LogicError, MathsError) |
http://wwwasd.web.cern.ch/wwwasd/lhc++/Nag_C/CL/doc/e/e04fcc.html | |
virtual void | fitTGraph (const TGraph &graph, TF1 &fit) const throw (LogicError, MathsError) |
fit TGraph errors set to unity | |
virtual void | fitTGraphErrors (const TGraphErrors &graph, TF1 &fit) const throw (LogicError, MathsError) |
fit TGraphErrors | |
virtual const string & | getName () const throw () |
Returns the name of the strategy. | |
Private Member Functions | |
NagFitStrategy (const NagFitStrategy &) | |
no copy constructor | |
const int | getNumberFitPoints (TH1 &hist, const TF1 &fit, int &iFirstBin) const throw (LogicError) |
utility routine | |
void | getFitPoints (TGraph &graph, const TF1 &fit, vector< bool > &active) const throw (LogicError) |
utility routine finds active points in graph | |
void | nagFit (Cache *cache, TF1 &fit, bool quiet) const throw (MathsError) |
contains the NAG calls etc - the guts of the fit. | |
bool | ranged () const throw () |
Take range from TF1? true if options contain 'R' or 'r'. | |
bool | quiet () const throw () |
Fit in quiet mode? true if options contain 'Q' or 'q'. | |
Static Private Member Functions | |
void | chiSquaredFunctionForNag (Integer m, Integer n, double x[], double fvec[], Nag_Comm *comm) throw () |
NB set up cache first! | |
Private Attributes | |
const string | name |
the name of the strategy | |
Static Private Attributes | |
bool | inMap |
dummy variable used at static initialization. |
At the time of writing, CERN licences are available to CERN collaborators from the ANAPHE site: http://anaphe.web.cern.ch/anaphe/download2.html
To use NagFitStrategy, define NAGDIR, and rebuild.
Definition at line 25 of file NagFitStrategy.h.
|
constuctor
Definition at line 8 of file NagFitStrategy.cpp. |
|
destructor
Definition at line 11 of file NagFitStrategy.cpp. |
|
no copy constructor
|
|
NB set up cache first!
Definition at line 235 of file NagFitStrategy.cpp. References SctFitter::NagFitStrategy::Cache::convertPars(), SctFitter::NagFitStrategy::Cache::function, SctFitter::NagFitStrategy::Cache::m_ey, SctFitter::NagFitStrategy::Cache::m_x, SctFitter::NagFitStrategy::Cache::m_y, and SctFitter::NagFitStrategy::Cache::pars. |
Here is the call graph for this function:
|
fit TGraph errors set to unity
Implements SctFitter::FitStrategy. Definition at line 30 of file NagFitStrategy.cpp. |
|
fit TGraphErrors
Implements SctFitter::FitStrategy. Definition at line 42 of file NagFitStrategy.cpp. |
|
http://wwwasd.web.cern.ch/wwwasd/lhc++/Nag_C/CL/doc/e/e04fcc.html need to do this because ROOT hist.Fit() isn't const! Implements SctFitter::FitStrategy. Definition at line 15 of file NagFitStrategy.cpp. |
|
utility routine finds active points in graph
Definition at line 131 of file NagFitStrategy.cpp. |
|
Returns the name of the strategy.
Implements SctFitter::FitStrategy. Definition at line 103 of file NagFitStrategy.cpp. |
|
utility routine
Definition at line 109 of file NagFitStrategy.cpp. |
|
contains the NAG calls etc - the guts of the fit.
Definition at line 54 of file NagFitStrategy.cpp. References SctFitter::NagFitStrategy::Cache::m_x, and Sct::AbstractThrowable::sendToMrs(). |
Here is the call graph for this function:
|
Fit in quiet mode? true if options contain 'Q' or 'q'.
Definition at line 246 of file NagFitStrategy.cpp. |
|
Take range from TF1? true if options contain 'R' or 'r'.
Definition at line 251 of file NagFitStrategy.cpp. |
|
dummy variable used at static initialization.
Definition at line 107 of file NagFitStrategy.cpp. |
|
the name of the strategy
Definition at line 42 of file NagFitStrategy.h. |