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

SctFitter::MinuitFitStrategy Class Reference

This concrete fit strategy uses a link to a fortran function which itself uses minuit directly. More...

#include <MinuitFitStrategy.h>

Inheritance diagram for SctFitter::MinuitFitStrategy:

Inheritance graph
[legend]
Collaboration diagram for SctFitter::MinuitFitStrategy:

Collaboration graph
[legend]

Public Member Functions

 MinuitFitStrategy (string opt=string("")) throw ()
 constuctor

 ~MinuitFitStrategy () throw ()
 destructor

virtual void fitTH1 (const TH1 &hist, TF1 &fit) const throw (LogicError, MathsError)
 fit TH1 using current options

virtual void fitTGraph (const TGraph &graph, TF1 &fit) const throw (LogicError, MathsError)
 fit TGraph using current options

virtual void fitTGraphErrors (const TGraphErrors &graph, TF1 &fit) const throw (LogicError, MathsError)
 fit TGraphErrors using current options

virtual const string & getName () const throw ()
 return name of the strategy


Private Member Functions

 MinuitFitStrategy (const MinuitFitStrategy &)
 no copy constructor


Private Attributes

const string name
 the name of the strategy.


Static Private Attributes

bool inMap
 dummy variable used at static initialization.


Detailed Description

This concrete fit strategy uses a link to a fortran function which itself uses minuit directly.

This should be faster than ROOT.

Author:
Alan Barr
Date:
17/5/03

Definition at line 14 of file MinuitFitStrategy.h.


Constructor & Destructor Documentation

SctFitter::MinuitFitStrategy::MinuitFitStrategy string  opt = string("")  )  throw ()
 

constuctor

Definition at line 8 of file MinuitFitStrategy.cpp.

SctFitter::MinuitFitStrategy::~MinuitFitStrategy  )  throw ()
 

destructor

Definition at line 11 of file MinuitFitStrategy.cpp.

SctFitter::MinuitFitStrategy::MinuitFitStrategy const MinuitFitStrategy  )  [private]
 

no copy constructor


Member Function Documentation

void SctFitter::MinuitFitStrategy::fitTGraph const TGraph &  graph,
TF1 &  fit
const throw (LogicError, MathsError) [virtual]
 

fit TGraph using current options

need to do this because ROOT graph.Fit() isn't const!

Todo:
implement

Implements SctFitter::FitStrategy.

Definition at line 21 of file MinuitFitStrategy.cpp.

void SctFitter::MinuitFitStrategy::fitTGraphErrors const TGraphErrors &  graph,
TF1 &  fit
const throw (LogicError, MathsError) [virtual]
 

fit TGraphErrors using current options

need to do this because ROOT graph.Fit() isn't const!

Todo:
implement

Implements SctFitter::FitStrategy.

Definition at line 29 of file MinuitFitStrategy.cpp.

void SctFitter::MinuitFitStrategy::fitTH1 const TH1 &  hist,
TF1 &  fit
const throw (LogicError, MathsError) [virtual]
 

fit TH1 using current options

need to do this because ROOT hist.Fit() isn't const!

Todo:
implement

Implements SctFitter::FitStrategy.

Definition at line 13 of file MinuitFitStrategy.cpp.

const string & SctFitter::MinuitFitStrategy::getName  )  const throw () [virtual]
 

return name of the strategy

Implements SctFitter::FitStrategy.

Definition at line 37 of file MinuitFitStrategy.cpp.


Field Documentation

bool SctFitter::MinuitFitStrategy::inMap [static, private]
 

dummy variable used at static initialization.

Definition at line 41 of file MinuitFitStrategy.cpp.

const string SctFitter::MinuitFitStrategy::name [private]
 

the name of the strategy.

Definition at line 33 of file MinuitFitStrategy.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 09:53:59 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5