Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | 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:

Inheritance graph
[legend]
Collaboration diagram for SctData::TopHatFitObject:

Collaboration graph
[legend]

Public Member Functions

 TopHatFitObject ()
 Default Constructor.

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

virtual shared_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.

TopHatFitObjectoperator= (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


Static Private Member Functions

vector< string > createParNames ()
 file static method to create vector of parameter names


Static Private Attributes

vector< string > parNames

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 18 of file TopHatFitObject.h.


Constructor & Destructor Documentation

SctData::TopHatFitObject::TopHatFitObject  ) 
 

Default Constructor.

Definition at line 27 of file TopHatFitObject.cpp.

SctData::TopHatFitObject::TopHatFitObject const TF1 &  rootfunc  ) 
 

Constructor from root function.

Definition at line 30 of file TopHatFitObject.cpp.

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

destructor does nothing

Definition at line 29 of file TopHatFitObject.h.


Member Function Documentation

shared_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 33 of file TopHatFitObject.cpp.

vector< string > SctData::TopHatFitObject::createParNames  )  [static, private]
 

file static method to create vector of parameter names

Definition at line 15 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.

Returns:
the class name
Note:
Nothrow

Implements Sct::Streamable.

Definition at line 31 of file TopHatFitObject.h.

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 44 of file TopHatFitObject.cpp.

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

Equality with ROOT TF1.

Reimplemented from SctData::FitObject.

Definition at line 37 of file TopHatFitObject.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Jul 8 11:42:31 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5