SctFitter::NagFitStrategy::Cache Class Reference

Interal class caches the information needed for the fit. More...


Public Member Functions

 Cache (const TH1 &hist, const unsigned npoints, const unsigned firstpoint, TF1 &fit) throw (LogicError, MathsError)
 constructor extracts all of the relevant information from hist.
 Cache (const TGraph &graph, TF1 &fit, const vector< bool > &active) throw (LogicError, MathsError)
 constructor extracts information from the TGraph;
 Cache (const TGraphErrors &graph, TF1 &fit, const vector< bool > &active) throw (LogicError, MathsError)
 constructor extracts information from the TGraphErrors;
 Cache (const TGraphAsymmErrors &graph, TF1 &fit, const vector< bool > &active) throw (LogicError, MathsError)
 Sets up pars to contain all the correct parameters /// constructor extracts information from the TGraphErrors;.
void convertPars (double inPars[])
 Sets up pars to contain all the correct parameters.
void setupPars (TF1 &fit)
 Sets up the arrays pars and map.
 ~Cache () throw ()
 destructor

Data Fields

vector< double > m_y
 histogram contents.
vector< double > m_x
 histogram bin centers.
vector< double > m_ey
 histogram error.
TF1 * function
 pointer to the function.
double * pars
 holds the internal array of parameters - used when some are fixed
unsigned int nVarPars
 Number of variable params.
double * inPars
 Used to hold the params that are varied by Nag.

Private Attributes

int * map
 Maps input pars to output pars.


Detailed Description

Interal class caches the information needed for the fit.

Definition at line 67 of file NagFitStrategy.h.


Constructor & Destructor Documentation

SctFitter::NagFitStrategy::Cache::Cache const TH1 &  hist,
const unsigned  npoints,
const unsigned  firstpoint,
TF1 &  fit
throw (LogicError, MathsError)
 

constructor extracts all of the relevant information from hist.

Definition at line 215 of file NagFitStrategy.cpp.

SctFitter::NagFitStrategy::Cache::Cache const TGraph &  graph,
TF1 &  fit,
const vector< bool > &  active
throw (LogicError, MathsError)
 

constructor extracts information from the TGraph;

Definition at line 165 of file NagFitStrategy.cpp.

SctFitter::NagFitStrategy::Cache::Cache const TGraphErrors &  graph,
TF1 &  fit,
const vector< bool > &  active
throw (LogicError, MathsError)
 

constructor extracts information from the TGraphErrors;

Definition at line 180 of file NagFitStrategy.cpp.

SctFitter::NagFitStrategy::Cache::Cache const TGraphAsymmErrors &  graph,
TF1 &  fit,
const vector< bool > &  active
throw (LogicError, MathsError)
 

Sets up pars to contain all the correct parameters /// constructor extracts information from the TGraphErrors;.

Definition at line 197 of file NagFitStrategy.cpp.

SctFitter::NagFitStrategy::Cache::~Cache  )  throw ()
 

destructor

Definition at line 230 of file NagFitStrategy.cpp.

References inPars, map, and pars.


Member Function Documentation

void SctFitter::NagFitStrategy::Cache::convertPars double  inPars[]  ) 
 

Sets up pars to contain all the correct parameters.

Definition at line 236 of file NagFitStrategy.cpp.

References map, nVarPars, and pars.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag().

void SctFitter::NagFitStrategy::Cache::setupPars TF1 &  fit  ) 
 

Sets up the arrays pars and map.

Definition at line 242 of file NagFitStrategy.cpp.

References inPars, map, nVarPars, and pars.


Field Documentation

TF1* SctFitter::NagFitStrategy::Cache::function
 

pointer to the function.

Definition at line 92 of file NagFitStrategy.h.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag().

double* SctFitter::NagFitStrategy::Cache::inPars
 

Used to hold the params that are varied by Nag.

Definition at line 95 of file NagFitStrategy.h.

Referenced by setupPars(), and ~Cache().

vector<double> SctFitter::NagFitStrategy::Cache::m_ey
 

histogram error.

Definition at line 91 of file NagFitStrategy.h.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag().

vector<double> SctFitter::NagFitStrategy::Cache::m_x
 

histogram bin centers.

Definition at line 90 of file NagFitStrategy.h.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag().

vector<double> SctFitter::NagFitStrategy::Cache::m_y
 

histogram contents.

Definition at line 89 of file NagFitStrategy.h.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag().

int* SctFitter::NagFitStrategy::Cache::map [private]
 

Maps input pars to output pars.

Definition at line 98 of file NagFitStrategy.h.

Referenced by convertPars(), setupPars(), and ~Cache().

unsigned int SctFitter::NagFitStrategy::Cache::nVarPars
 

Number of variable params.

Definition at line 94 of file NagFitStrategy.h.

Referenced by convertPars(), and setupPars().

double* SctFitter::NagFitStrategy::Cache::pars
 

holds the internal array of parameters - used when some are fixed

Definition at line 93 of file NagFitStrategy.h.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag(), convertPars(), setupPars(), and ~Cache().


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:09:53 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6