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

SctData::LinearResponseCurve Class Reference

This class represents a linear fit to the response curve. More...

#include <ResponseCurve.h>

Inheritance diagram for SctData::LinearResponseCurve:

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

Collaboration graph
[legend]

Public Member Functions

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

double linFn (double *x, double *par) throw ()
 The function used by Root for the linear.

double invLinFn (double *x, double *par) throw ()
 It's inverse also used by root.


Static Public Attributes

bool inMap
 dummy member for initialization into map


Detailed Description

This class represents a linear fit to the response curve.

It uses the standard "pol1" ROOT function, y=[0]+[1]*x

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


Member Function Documentation

auto_ptr< ResponseCurve > SctData::LinearResponseCurve::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 110 of file ResponseCurve.cpp.

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

idendifier so that IO can find the right curve

Reimplemented from SctData::ResponseCurve.

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

double SctData::LinearResponseCurve::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 114 of file ResponseCurve.cpp.

shared_ptr< TF1 > SctData::LinearResponseCurve::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 97 of file ResponseCurve.cpp.

double SctData::LinearResponseCurve::invLinFn double *  x,
double *  par
throw () [static]
 

It's inverse also used by root.

Definition at line 121 of file ResponseCurve.cpp.

double SctData::LinearResponseCurve::linFn double *  x,
double *  par
throw () [static]
 

The function used by Root for the linear.

Definition at line 118 of file ResponseCurve.cpp.


Field Documentation

bool SctData::LinearResponseCurve::inMap [static]
 

dummy member for initialization into map

Definition at line 108 of file ResponseCurve.cpp.


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