SctAnalysis::RxDelayAlgorithm Class Reference

Algorithm for single-scan Rx-Delay Test. More...

#include <RxDelayAlgorithm.h>

Inheritance diagram for SctAnalysis::RxDelayAlgorithm:

Inheritance graph
[legend]
Collaboration diagram for SctAnalysis::RxDelayAlgorithm:

Collaboration graph
[legend]

Public Member Functions

virtual void analyze ()
 finds the optimum - a fractions of the way from the mid-rise to the mid-fall of the function.
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::TestResultcreateTestResult () const
 Called if the TestResult needs to be created.
virtual boost::shared_ptr<
AnalysisAlgorithm
clone (shared_ptr< const TestData > testData, const string &moduleName) const throw ()
 Must be overridden by sub-classes.
 RxDelayAlgorithm (shared_ptr< const TestData > testData, const string &moduleName, const AnalysisAlgorithm &alg) throw ()
 constructor
virtual ~RxDelayAlgorithm () throw ()
 destructor

Private Member Functions

 RxDelayAlgorithm ()

Static Private Attributes

static bool inMap

Detailed Description

Algorithm for single-scan Rx-Delay Test.

Uses a single FitScanResult to find the optimum value of the strobe delay.

Definition at line 15 of file RxDelayAlgorithm.h.


Constructor & Destructor Documentation

SctAnalysis::RxDelayAlgorithm::RxDelayAlgorithm shared_ptr< const TestData testData,
const string &  moduleName,
const AnalysisAlgorithm alg
throw () [inline]
 

constructor

Definition at line 29 of file RxDelayAlgorithm.h.

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

destructor

Definition at line 33 of file RxDelayAlgorithm.h.


Member Function Documentation

void SctAnalysis::RxDelayAlgorithm::analyze  )  [virtual]
 

finds the optimum - a fractions of the way from the mid-rise to the mid-fall of the function.

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 36 of file RxDelayAlgorithm.cpp.

References SctData::ScanPoints::ascending(), SctAnalysis::AnalysisAlgorithm::getRaw(), SctAnalysis::AnalysisAlgorithm::getTestResult(), Sct::nLinkModule, SctData::SingleVariableTestResult::setNOptima(), and SctData::TestResult::setScanVariable().

Here is the call graph for this function:

bool SctAnalysis::RxDelayAlgorithm::canAnalyze  )  const [virtual]
 

Should check to see if the analysis can be performed.

Probably wants to call hasAllRaws() or hasAllFits().

Exceptions:
no exceotions.

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 31 of file RxDelayAlgorithm.cpp.

References SctAnalysis::AnalysisAlgorithm::hasAllRaws().

Here is the call graph for this function:

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

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 19 of file RxDelayAlgorithm.cpp.

shared_ptr< TestResult > SctAnalysis::RxDelayAlgorithm::createTestResult  )  const [virtual]
 

Called if the TestResult needs to be created.

Exceptions:
nothing. 

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 23 of file RxDelayAlgorithm.cpp.

void SctAnalysis::RxDelayAlgorithm::loadData  )  [virtual]
 

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 27 of file RxDelayAlgorithm.cpp.

References SctAnalysis::AnalysisAlgorithm::loadAllRaws().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:04:04 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6