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

SctData::GausFitObject Class Reference

A derrived class of the FitObject class of gausian form f = [0] * exp( 0.5 * ( (x-[1])/[2] )**2 ) Parameters: [0] is the prefactor; [1] is the mean; [2] is the standard deviation;. More...

#include <GausFitObject.h>

Inheritance diagram for SctData::GausFitObject:

SctData::FitObject Sct::Streamable

Public Member Functions

 GausFitObject () throw ()
 Default constructor.

 GausFitObject (const TF1 &rootfunc) throw (LogicError)
 Constructor from ROOT TF1;.

virtual auto_ptr< FitObjectclone () const throw ()
 Allows any sub-class of FitObject to be used as a prototype.

virtual ~GausFitObject () throw ()
 Destructor.

virtual string getClassName () const throw ()
 Get the class name for this object.

GausFitObject & operator= (const TF1 &) throw (LogicError)
 Checks for formula of TF1="gaus" before continuing;.


Protected Member Functions

auto_ptr< TF1 > makeBasicRootTF1 () const throw (LogicError)
 make a ROOT TF1 with the appropriate constructor

void init () throw ()
 initialise parameter names and dimenstions:


Detailed Description

A derrived class of the FitObject class of gausian form f = [0] * exp( 0.5 * ( (x-[1])/[2] )**2 ) Parameters: [0] is the prefactor; [1] is the mean; [2] is the standard deviation;.

Author:
Alan Barr
Date:
9 December 2002

Definition at line 20 of file GausFitObject.h.


Constructor & Destructor Documentation

SctData::GausFitObject::GausFitObject   throw ()
 

Default constructor.

Definition at line 10 of file GausFitObject.cpp.

SctData::GausFitObject::GausFitObject const TF1 &    rootfunc throw (LogicError)
 

Constructor from ROOT TF1;.

Definition at line 15 of file GausFitObject.cpp.

virtual SctData::GausFitObject::~GausFitObject   throw () [inline, virtual]
 

Destructor.

Definition at line 31 of file GausFitObject.h.


Member Function Documentation

auto_ptr< FitObject > SctData::GausFitObject::clone   const throw () [virtual]
 

Allows any sub-class of FitObject to be used as a prototype.

Returns:
a new FitObject of the appropriate type which is a copy of this.

Implements SctData::FitObject.

Definition at line 21 of file GausFitObject.cpp.

virtual string SctData::GausFitObject::getClassName   const throw () [inline, virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Todo:
We could use typeid instead here, but that would probably mean removing the namespace stuff.
Returns:
the class name

Implements Sct::Streamable.

Definition at line 33 of file GausFitObject.h.

void SctData::GausFitObject::init   throw () [protected, virtual]
 

initialise parameter names and dimenstions:

Implements SctData::FitObject.

Definition at line 42 of file GausFitObject.cpp.

auto_ptr< TF1 > SctData::GausFitObject::makeBasicRootTF1   const throw (LogicError) [protected, virtual]
 

make a ROOT TF1 with the appropriate constructor

Implements SctData::FitObject.

Definition at line 35 of file GausFitObject.cpp.

GausFitObject & SctData::GausFitObject::operator= const TF1 &    throw (LogicError)
 

Checks for formula of TF1="gaus" before continuing;.

Reimplemented from SctData::FitObject.

Definition at line 25 of file GausFitObject.cpp.


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