#include <NPtGainAlgorithm.h>
Inheritance diagram for SctAnalysis::NPtGainAlgorithm:
Public Member Functions | |
NPtGainAlgorithm (const TestData &testData, const string &moduleName, const AnalysisAlgorithm &alg) throw () | |
Constructor. | |
virtual | ~NPtGainAlgorithm () throw () |
Destructor. | |
virtual void | analyze () |
Does the analysis. | |
virtual void | loadData () |
Called to indicate the algorithm should try and load as much data as it can - perhaps by calling loadAllFits or loadAllRaws(). | |
virtual bool | canAnalyze () const |
Should check to see if the analysis can be performed. | |
virtual shared_ptr< SctData::TestResult > | createTestResult () const |
Called if the TestResult needs to be created. | |
virtual boost::shared_ptr< AnalysisAlgorithm > | clone (const TestData &testData, const string &moduleName) const throw () |
Must be overridden by sub-classes. | |
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 | |
void | setupGraph (unsigned int id, const ModuleElement &element, 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 | mergeDefects (NPtGainTestResult &test, const ModuleElement &element, unsigned int lastPoint) |
Merges defects from the FitScanResults that effect element up to and including scan: lastPoint. | |
Static Private Member Functions | |
void | doDefect (const ModuleElement &e, DefectList &defects, const NPtGainTestResultData &data, const NPtGainTestResultData &comparisonData) throw (LogicError) |
Once the fits are done, we need to figure out any defects. | |
Private Attributes | |
unsigned int | nOnePointTrimmed |
unsigned int | nTwoPointTrimmed |
Static Private Attributes | |
boost::shared_ptr< ResponseCurve > | s_responseCurve |
prototype used in virtual constuctor idiom to make rc's. | |
bool | inMap |
Definition at line 37 of file NPtGainAlgorithm.h.
|
Constructor.
Definition at line 42 of file NPtGainAlgorithm.h. |
|
Destructor.
Definition at line 46 of file NPtGainAlgorithm.h. |
|
Does the analysis. Should only be called after canAnalyze() returns true. Should not be called is isDone() returns true. It should also do any final initialization of the TestResult which requires data to be present
Implements SctAnalysis::AnalysisAlgorithm. Definition at line 57 of file NPtGainAlgorithm.cpp. References SctData::ModuleConfiguration::channelIsMasked(), doDefect(), doFit(), SctAnalysis::AnalysisAlgorithm::getFit(), SctAnalysis::AnalysisAlgorithm::getTestResult(), and setupGraph(). |
Here is the call graph for this function:
|
Should check to see if the analysis can be performed. Probably wants to call hasAllRaws() or hasAllFits().
Implements SctAnalysis::AnalysisAlgorithm. Definition at line 53 of file NPtGainAlgorithm.cpp. References SctAnalysis::AnalysisAlgorithm::hasAllFits(). |
Here is the call graph for this function:
|
Must be overridden by sub-classes. Returns a shared pointer to a concrete AnalysisAlgorithm of the correct type. Primarily used by the map to get an AnalysisAlgorithm of the correct type. Implements SctAnalysis::AnalysisAlgorithm. Definition at line 23 of file NPtGainAlgorithm.cpp. |
|
Called if the TestResult needs to be created.
Implements SctAnalysis::AnalysisAlgorithm. Definition at line 41 of file NPtGainAlgorithm.cpp. |
|
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 196 of file NPtGainAlgorithm.cpp. Referenced by analyze(). |
|
Does a fit given a way of getting the data.
Definition at line 179 of file NPtGainAlgorithm.cpp. Referenced by analyze(). |
|
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. |
|
Called to indicate the algorithm should try and load as much data as it can - perhaps by calling loadAllFits or loadAllRaws(). This is guarenteed to be called shortly before analyze(). Implements SctAnalysis::AnalysisAlgorithm. Definition at line 49 of file NPtGainAlgorithm.cpp. References SctAnalysis::AnalysisAlgorithm::loadAllFits(). |
Here is the call graph for this function:
|
Merges defects from the FitScanResults that effect element up to and including scan: lastPoint.
Definition at line 169 of file NPtGainAlgorithm.cpp. References SctData::DefectList::addDefect(), SctData::TestResult::getDefects(), and SctAnalysis::AnalysisAlgorithm::getFit(). |
Here is the call graph for this function:
|
Method of setting response curve type.
Definition at line 35 of file NPtGainAlgorithm.cpp. |
|
does what it says on the tin
Definition at line 120 of file NPtGainAlgorithm.cpp. References SctData::DefectList::defectSeverityAffectingElement(), and SctData::SERIOUS. Referenced by analyze(). |
Here is the call graph for this function:
|
prototype used in virtual constuctor idiom to make rc's.
Definition at line 69 of file NPtGainAlgorithm.h. |