SctData::ErfcFitObject Class Reference

A derived class of the FitObject class of complimentary error function. More...

#include <ErfcFitObject.h>

Inheritance diagram for SctData::ErfcFitObject:

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

Collaboration graph
[legend]

Public Member Functions

 ErfcFitObject ()
 Constructor.
 ErfcFitObject (const TF1 &rootfunc)
 Constructor from a root TF1;.
virtual string getClassName () const throw ()
 Get the class name for this object.
virtual shared_ptr< FitObjectclone () const throw ()
 Allows any sub-class of FitObject to be used as a prototype.
virtual ~ErfcFitObject () throw ()
 Destructor does nothing.
ErfcFitObjectoperator= (const TF1 &rootfunc) throw (LogicError)
 equality with root TF1

Static Public Member Functions

static shared_ptr< ErfcFitObjectcreate ()
 Prefered way to create an ErfcFitObject.

Protected Member Functions

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

Static Private Member Functions

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

Static Private Attributes

static std::vector< std::string > parNames

Detailed Description

A derived class of the FitObject class of complimentary error function.

parameters: prefactor, mean, sigma. Evaluation uses TMath function Erf(x) = (2/sqrt(pi)) Integral(exp(-t^2))dt between 0 and x

Author:
Alan Barr
Date:
9 December 2002

Definition at line 18 of file ErfcFitObject.h.


Constructor & Destructor Documentation

SctData::ErfcFitObject::ErfcFitObject  ) 
 

Constructor.

Definition at line 31 of file ErfcFitObject.cpp.

SctData::ErfcFitObject::ErfcFitObject const TF1 &  rootfunc  ) 
 

Constructor from a root TF1;.

Definition at line 45 of file ErfcFitObject.cpp.

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

Destructor does nothing.

Definition at line 38 of file ErfcFitObject.h.


Member Function Documentation

shared_ptr< FitObject > SctData::ErfcFitObject::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 35 of file ErfcFitObject.cpp.

References create().

Here is the call graph for this function:

shared_ptr< ErfcFitObject > SctData::ErfcFitObject::create  )  [static]
 

Prefered way to create an ErfcFitObject.

May use more efficient allocation stuff than the default constructor.

Note:
Nothrow

Definition at line 26 of file ErfcFitObject.cpp.

References SctData::ObjectPool< T >::get().

Referenced by clone().

Here is the call graph for this function:

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

static method to create vector of parameter names

Definition at line 16 of file ErfcFitObject.cpp.

References parNames.

virtual string SctData::ErfcFitObject::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 33 of file ErfcFitObject.h.

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

call the correct constructor for making a ROOT TF1

Implements SctData::FitObject.

Definition at line 50 of file ErfcFitObject.cpp.

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

Here is the call graph for this function:

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

equality with root TF1

Reimplemented from SctData::FitObject.

Definition at line 40 of file ErfcFitObject.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:07:13 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6