Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

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;

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 65 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 184 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 152 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 167 of file NagFitStrategy.cpp.

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

destructor

Definition at line 199 of file NagFitStrategy.cpp.


Member Function Documentation

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

Sets up pars to contain all the correct parameters.

Definition at line 205 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 211 of file NagFitStrategy.cpp.

References inPars, map, nVarPars, and pars.


Field Documentation

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

pointer to the function.

Definition at line 87 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 90 of file NagFitStrategy.h.

Referenced by setupPars().

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

histogram error.

Definition at line 86 of file NagFitStrategy.h.

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

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

histogram bin centers.

Definition at line 85 of file NagFitStrategy.h.

Referenced by SctFitter::NagFitStrategy::chiSquaredFunctionForNag(), and SctFitter::NagFitStrategy::nagFit().

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

histogram contents.

Definition at line 84 of file NagFitStrategy.h.

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

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

Maps input pars to output pars.

Definition at line 93 of file NagFitStrategy.h.

Referenced by convertPars(), and setupPars().

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

Number of variable params.

Definition at line 89 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 88 of file NagFitStrategy.h.

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


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:38:04 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3