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

static 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.

References name.


Field Documentation

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

dummy variable used at static initialization.

Definition at line 33 of file RootFitStrategy.h.

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

the name of the strategy

Definition at line 32 of file RootFitStrategy.h.

Referenced by getName().


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