Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | 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 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 8 of file RootFitStrategy.cpp.

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

destructor

Definition at line 11 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 19 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 25 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 13 of file RootFitStrategy.cpp.

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

over-ride

Implements SctFitter::FitStrategy.

Definition at line 31 of file RootFitStrategy.cpp.


Field Documentation

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

dummy variable used at static initialization.

Definition at line 35 of file RootFitStrategy.cpp.

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

the name of the strategy

Definition at line 30 of file RootFitStrategy.h.


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