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

SctFitter::RootFitStrategy Class Reference

Concrete fit strategy uses ROOT's usual hist.fit() function. More...

#include <RootFitStrategy.h>

Inheritance diagram for SctFitter::RootFitStrategy:

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

Collaboration graph
[legend]

Public Member Functions

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

 ~RootFitStrategy () throw ()
 destructor

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

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

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

virtual void fitTGraphAsymmErrors (const TGraphAsymmErrors &graph, TF1 &fit) const throw (LogicError, MathsError)
 fit TGraphAsymmErrors

virtual const string & getName () const throw ()
 over-ride


Private Member Functions

 RootFitStrategy (const RootFitStrategy &)
 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

Concrete fit strategy uses ROOT's usual hist.fit() function.

Author:
Alan Barr
Date:
16/5/03

Definition at line 13 of file RootFitStrategy.h.


Constructor & Destructor Documentation

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

constuctor

Definition at line 9 of file RootFitStrategy.cpp.

SctFitter::RootFitStrategy::~RootFitStrategy  )  throw ()
 

destructor

Definition at line 12 of file RootFitStrategy.cpp.

SctFitter::RootFitStrategy::RootFitStrategy const RootFitStrategy  )  [private]
 

no copy constructor


Member Function Documentation

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

fit TGraph

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

Implements SctFitter::FitStrategy.

Definition at line 20 of file RootFitStrategy.cpp.

void SctFitter::RootFitStrategy::fitTGraphAsymmErrors const TGraphAsymmErrors &  graph,
TF1 &  fit
const throw (LogicError, MathsError) [virtual]
 

fit TGraphAsymmErrors

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

Implements SctFitter::FitStrategy.

Definition at line 32 of file RootFitStrategy.cpp.

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

fit TGraphErrors

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

Implements SctFitter::FitStrategy.

Definition at line 26 of file RootFitStrategy.cpp.

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

fit TH1

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

Implements SctFitter::FitStrategy.

Definition at line 14 of file RootFitStrategy.cpp.

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

over-ride

Implements SctFitter::FitStrategy.

Definition at line 38 of file RootFitStrategy.cpp.


Field Documentation

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

dummy variable used at static initialization.

Definition at line 42 of file RootFitStrategy.cpp.

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

the name of the strategy

Definition at line 32 of file RootFitStrategy.h.


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 20:23:14 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5