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

SctData::TrimRangeTestResult::TrimData Class Reference

Contains (representation of a) graph of TrimDAQ against target, and fitparameters, p0, and p1, such that trim=(int) p0 + target * p1. More...

#include <TrimRangeTestResult.h>


Public Member Functions

 TrimData (float p0, float p1) throw ()
float getVthr (const short unsigned trim) const throw ()
 convert trim value to threshold in mV

int getTrim (const float vthr) const throw ()
 convert threshold in mV to integer value of trim

TrimData & operator+= (const TrimData &d) throw ()
TrimData & operator/= (const unsigned i) throw ()
TrimData operator * (const TrimData &d) const throw ()
 TrimData () throw ()

Data Fields

vector< pair< float, float > > graph
 representation of the graph .

float p0
 offset of slope to graph

float p1
 slope of fit to graph


Detailed Description

Contains (representation of a) graph of TrimDAQ against target, and fitparameters, p0, and p1, such that trim=(int) p0 + target * p1.

Definition at line 74 of file TrimRangeTestResult.h.


Constructor & Destructor Documentation

SctData::TrimRangeTestResult::TrimData::TrimData float    p0,
float    p1
throw () [inline]
 

Definition at line 76 of file TrimRangeTestResult.h.

SctData::TrimRangeTestResult::TrimData::TrimData   throw () [inline]
 

Definition at line 91 of file TrimRangeTestResult.h.

Referenced by operator *().


Member Function Documentation

int SctData::TrimRangeTestResult::TrimData::getTrim const float    vthr const throw () [inline]
 

convert threshold in mV to integer value of trim

Definition at line 125 of file TrimRangeTestResult.h.

float SctData::TrimRangeTestResult::TrimData::getVthr const short unsigned    trim const throw () [inline]
 

convert trim value to threshold in mV

Definition at line 121 of file TrimRangeTestResult.h.

References trim.

TrimData SctData::TrimRangeTestResult::TrimData::operator * const TrimData &    d const throw () [inline]
 

Definition at line 90 of file TrimRangeTestResult.h.

References TrimData().

TrimData& SctData::TrimRangeTestResult::TrimData::operator+= const TrimData &    d throw () [inline]
 

Definition at line 88 of file TrimRangeTestResult.h.

References p0.

TrimData& SctData::TrimRangeTestResult::TrimData::operator/= const unsigned    i throw () [inline]
 

Definition at line 89 of file TrimRangeTestResult.h.


Field Documentation

vector<pair<float, float> > SctData::TrimRangeTestResult::TrimData::graph
 

representation of the graph .

first is x, second is y

Definition at line 78 of file TrimRangeTestResult.h.

float SctData::TrimRangeTestResult::TrimData::p0
 

offset of slope to graph

Definition at line 80 of file TrimRangeTestResult.h.

Referenced by operator+=().

float SctData::TrimRangeTestResult::TrimData::p1
 

slope of fit to graph

Definition at line 82 of file TrimRangeTestResult.h.


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