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

SctData::GrilloResponseCurve Class Reference

The fit function as suggested by Alex Grillo. More...

#include <ResponseCurve.h>

Inheritance diagram for SctData::GrilloResponseCurve:

SctData::ResponseCurve Sct::Streamable

Public Member Functions

 GrilloResponseCurve () throw (LogicError)
virtual ~GrilloResponseCurve () 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

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


Static Public Attributes

bool inMap
 dummy member for initialization into map The function used by Root for the exponential


Detailed Description

The fit function as suggested by Alex Grillo.

Implemented as: [0] + [1]*x/sqrt(1+[2]*[2]*x*x)

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


Constructor & Destructor Documentation

SctData::GrilloResponseCurve::GrilloResponseCurve   throw (LogicError)
 

Definition at line 165 of file ResponseCurve.cpp.

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

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


Member Function Documentation

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

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

idendifier so that IO can find the right curve

Reimplemented from SctData::ResponseCurve.

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

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

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

double SctData::GrilloResponseCurve::grilloFn double *    x,
double *    par
throw () [static]
 

Definition at line 190 of file ResponseCurve.cpp.

double SctData::GrilloResponseCurve::invGrilloFn double *    x,
double *    par
throw () [static]
 

It's inverse also used by root.

Definition at line 196 of file ResponseCurve.cpp.


Field Documentation

bool SctData::GrilloResponseCurve::inMap [static]
 

dummy member for initialization into map The function used by Root for the exponential

Definition at line 181 of file ResponseCurve.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:46 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3