SctData::ExponentialResponseCurve Class Reference

This class represents the normal exponential fit to the response curve. More...

#include <ResponseCurve.h>

Inheritance diagram for SctData::ExponentialResponseCurve:

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

Collaboration graph
[legend]

Public Member Functions

 ExponentialResponseCurve () throw (LogicError)
virtual ~ExponentialResponseCurve () throw ()
virtual shared_ptr< TF1 > getInverseFunction () const throw (LogicError)
 Get a TF1 that represents the inverse function.
virtual double getGain (const double charge) const throw ()
 Given a TF1 and a charge point, return the gain.
virtual string getCurveName () const throw ()
 idendifier so that IO can find the right curve
virtual auto_ptr< ResponseCurvecreate () const throw ()
 Method used by IO refresh to create from a general mode a mode of the appropriate type.

Static Public Member Functions

static double expFn (double *x, double *par) throw ()
 The function used by Root for the exponential.
static double invExpFn (double *x, double *par) throw ()
 It's inverse also used by root.

Static Public Attributes

static bool inMap
 dummy member for initialization into map

Detailed Description

This class represents the normal exponential fit to the response curve.

The fit function is: [2]+ [0]/(1 + exp(-x/[1])).

Definition at line 119 of file SCTData/src/ResponseCurve.h.


Member Function Documentation

auto_ptr< ResponseCurve > SctData::ExponentialResponseCurve::create  )  const throw () [virtual]
 

Method used by IO refresh to create from a general mode a mode of the appropriate type.

Returns:
a new object of the derived class type.

Implements SctData::ResponseCurve.

Definition at line 167 of file SCTData/src/ResponseCurve.cpp.

References ExponentialResponseCurve().

Here is the call graph for this function:

double SctData::ExponentialResponseCurve::expFn double *  x,
double *  par
throw () [static]
 

The function used by Root for the exponential.

Definition at line 178 of file SCTData/src/ResponseCurve.cpp.

virtual string SctData::ExponentialResponseCurve::getCurveName  )  const throw () [inline, virtual]
 

idendifier so that IO can find the right curve

Reimplemented from SctData::ResponseCurve.

Definition at line 125 of file SCTData/src/ResponseCurve.h.

double SctData::ExponentialResponseCurve::getGain const double  charge  )  const throw () [virtual]
 

Given a TF1 and a charge point, return the gain.

Parameters:
charge The charge for which the gain is wanted.
Returns:
The gain.

Implements SctData::ResponseCurve.

Definition at line 171 of file SCTData/src/ResponseCurve.cpp.

shared_ptr< TF1 > SctData::ExponentialResponseCurve::getInverseFunction  )  const throw (LogicError) [virtual]
 

Get a TF1 that represents the inverse function.

(i.e. charge as a function of threshold)

Exceptions:
LogicError if TF1 can't be made;

Implements SctData::ResponseCurve.

Definition at line 154 of file SCTData/src/ResponseCurve.cpp.

References invExpFn(), and SctData::ResponseCurve::ptr_inverse.

Here is the call graph for this function:

double SctData::ExponentialResponseCurve::invExpFn double *  x,
double *  par
throw () [static]
 

It's inverse also used by root.

Definition at line 181 of file SCTData/src/ResponseCurve.cpp.

Referenced by getInverseFunction().


Field Documentation

bool SctData::ExponentialResponseCurve::inMap [static]
 

dummy member for initialization into map

Definition at line 133 of file SCTData/src/ResponseCurve.h.


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