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

SctData::TopHatFitObject Class Reference

A fit function designed for use in, for example, the strobe-delay scan. More...

#include <TopHatFitObject.h>

Inheritance diagram for SctData::TopHatFitObject:

SctData::FitObject Sct::Streamable

Public Member Functions

 TopHatFitObject () throw ()
 Default Constructor.

 TopHatFitObject (const TF1 &rootfunc) throw (LogicError)
 Constructor from root function.

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

virtual ~TopHatFitObject () throw ()
 destructor does nothing

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

TopHatFitObject & operator= (const TF1 &rootfunc) throw (LogicError)
 Equality with ROOT TF1.


Protected Member Functions

auto_ptr< TF1 > makeBasicRootTF1 () const throw (LogicError)
 call the correct TF1 constructor when making a ROOT TF1

void init () throw ()
 initialisation method


Detailed Description

A fit function designed for use in, for example, the strobe-delay scan.

A derrived class of FitObject Really just the product of an Erf and a Erfc function, so that the resolution on the leading and trailing edges can be different.

Author:
Alan Barr
Date:
16 Jan 2003

Definition at line 20 of file TopHatFitObject.h.


Constructor & Destructor Documentation

SctData::TopHatFitObject::TopHatFitObject   throw ()
 

Default Constructor.

Definition at line 9 of file TopHatFitObject.cpp.

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

Constructor from root function.

Definition at line 14 of file TopHatFitObject.cpp.

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

destructor does nothing

Definition at line 31 of file TopHatFitObject.h.


Member Function Documentation

auto_ptr< FitObject > SctData::TopHatFitObject::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 20 of file TopHatFitObject.cpp.

virtual string SctData::TopHatFitObject::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 TopHatFitObject.h.

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

initialisation method

Implements SctData::FitObject.

Definition at line 29 of file TopHatFitObject.cpp.

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

call the correct TF1 constructor when making a ROOT TF1

Implements SctData::FitObject.

Definition at line 43 of file TopHatFitObject.cpp.

TopHatFitObject & SctData::TopHatFitObject::operator= const TF1 &    rootfunc throw (LogicError)
 

Equality with ROOT TF1.

Reimplemented from SctData::FitObject.

Definition at line 24 of file TopHatFitObject.cpp.


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