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

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

Static Private Member Functions

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

Static Private Attributes

static std::vector< std::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 28 of file TopHatFitObject.cpp.

Referenced by clone().

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

Constructor from root function.

Definition at line 31 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 34 of file TopHatFitObject.cpp.

References TopHatFitObject().

Here is the call graph for this function:

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

file static method to create vector of parameter names

Definition at line 16 of file TopHatFitObject.cpp.

References parNames.

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

References SctData::FitObject::getVarMax(), and SctData::tophat().

Here is the call graph for this function:

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

Equality with ROOT TF1.

Reimplemented from SctData::FitObject.

Definition at line 38 of file TopHatFitObject.cpp.

References SctData::FitObject::operator=().

Here is the call graph for this function:


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