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

SctAnalysis::NPtGainAlgorithm Class Reference

Encodes how to do a response curve fit thing. More...

#include <NPtGainAlgorithm.h>

Inheritance diagram for SctAnalysis::NPtGainAlgorithm:

SctAnalysis::AnalysisAlgorithm

Public Member Functions

 NPtGainAlgorithm (const TestData &testData, const string &moduleName) throw ()
 Constructor.

virtual ~NPtGainAlgorithm () throw ()
 Destructor.

virtual void canAddFitScanResult (const string &name) throw (LogicError, IoError)
 over-ride

virtual boost::shared_ptr<
AnalysisAlgorithm
clone (const TestData &testData, const string &moduleName) const throw ()
 over-ride


Static Public Member Functions

boost::shared_ptr< ResponseCurve > getResponseCurve (unsigned int nPts=4) throw (LogicError)
 Source of response curves of type given by setResponseCurve.

void setResponseCurve (auto_ptr< ResponseCurve > rc) throw ()
 Method of setting response curve type.


Private Types

typedef FitObject &(FitScanResult::* getFitFunction )(unsigned int) const

Private Member Functions

 NPtGainAlgorithm ()

Static Private Member Functions

void setupGraph (unsigned int id, getFitFunction fitFunc, NPtGainTestResult &test, NPtGainTestResultData &testData, bool trimPoints=false) throw (LogicError)
 does what it says on the tin

void doFit (unsigned int id, getFitFunction fitFunc, NPtGainTestResult &test, NPtGainTestResultData &testData) throw (LogicError)
 Does a fit given a way of getting the data.

void doDefect (const ModuleElement &e, ModuleDefectList &defects, const NPtGainTestResultData &data, const NPtGainTestResultData &comparisonData) throw (LogicError)
 Once the fits are done, we need to figure out any defects.


Static Private Attributes

boost::shared_ptr< ResponseCurve > s_responseCurve
 prototype used in virtual constuctor idiom to make rc's.

bool inMap

Detailed Description

Encodes how to do a response curve fit thing.

Definition at line 36 of file NPtGainAlgorithm.h.


Member Typedef Documentation

typedef FitObject&(FitScanResult::* SctAnalysis::NPtGainAlgorithm::getFitFunction)(unsigned int) const [private]
 

Definition at line 72 of file NPtGainAlgorithm.h.


Constructor & Destructor Documentation

SctAnalysis::NPtGainAlgorithm::NPtGainAlgorithm const TestData   testData,
const string &    moduleName
throw () [inline]
 

Constructor.

Definition at line 41 of file NPtGainAlgorithm.h.

virtual SctAnalysis::NPtGainAlgorithm::~NPtGainAlgorithm   throw () [inline, virtual]
 

Destructor.

Definition at line 45 of file NPtGainAlgorithm.h.

SctAnalysis::NPtGainAlgorithm::NPtGainAlgorithm   [inline, private]
 

Definition at line 67 of file NPtGainAlgorithm.h.


Member Function Documentation

void SctAnalysis::NPtGainAlgorithm::canAddFitScanResult const string &    name throw (LogicError, IoError) [virtual]
 

over-ride

Definition at line 41 of file NPtGainAlgorithm.cpp.

References Sct::IoError, Sct::nChannelModule, and Sct::nChipModule.

shared_ptr< AnalysisAlgorithm > SctAnalysis::NPtGainAlgorithm::clone const TestData   testData,
const string &    moduleName
const throw () [virtual]
 

over-ride

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 23 of file NPtGainAlgorithm.cpp.

void SctAnalysis::NPtGainAlgorithm::doDefect const ModuleElement &    e,
ModuleDefectList &    defects,
const NPtGainTestResultData &    data,
const NPtGainTestResultData &    comparisonData
throw (LogicError) [static, private]
 

Once the fits are done, we need to figure out any defects.

These are worked out by conparison with some other data.

Definition at line 144 of file NPtGainAlgorithm.cpp.

void SctAnalysis::NPtGainAlgorithm::doFit unsigned int    id,
getFitFunction    fitFunc,
NPtGainTestResult &    test,
NPtGainTestResultData &    testData
throw (LogicError) [static, private]
 

Does a fit given a way of getting the data.

Definition at line 124 of file NPtGainAlgorithm.cpp.

shared_ptr< ResponseCurve > SctAnalysis::NPtGainAlgorithm::getResponseCurve unsigned int    nPts = 4 throw (LogicError) [static]
 

Source of response curves of type given by setResponseCurve.

nPts The number of points in the response curve (default such that large number of points response curve is returned)

Definition at line 27 of file NPtGainAlgorithm.cpp.

void SctAnalysis::NPtGainAlgorithm::setResponseCurve auto_ptr< ResponseCurve >    rc throw () [static]
 

Method of setting response curve type.

Parameters:
smart pointer to prototype response curve
Note:
parameter is sunk.

Always uses linear response curve if number of points is <= 3

Definition at line 35 of file NPtGainAlgorithm.cpp.

void SctAnalysis::NPtGainAlgorithm::setupGraph unsigned int    id,
getFitFunction    fitFunc,
NPtGainTestResult &    test,
NPtGainTestResultData &    testData,
bool    trimPoints = false
throw (LogicError) [static, private]
 

does what it says on the tin

Definition at line 92 of file NPtGainAlgorithm.cpp.


Field Documentation

bool SctAnalysis::NPtGainAlgorithm::inMap [static, private]
 

Definition at line 39 of file NPtGainAlgorithm.cpp.

boost::shared_ptr<ResponseCurve> SctAnalysis::NPtGainAlgorithm::s_responseCurve [static, private]
 

prototype used in virtual constuctor idiom to make rc's.

Definition at line 70 of file NPtGainAlgorithm.h.


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