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

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 (const TestData &testData, const string &moduleName) const throw ()
 Must be overridden by sub-classes.

 RxDelayAlgorithm (const TestData &testData, const string &moduleName, const AnalysisAlgorithm &alg) throw ()
 constructor

virtual ~RxDelayAlgorithm () throw ()
 destructor


Static Private Attributes

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 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(), SctData::ScanResult::getHeader(), SctData::ScanPoints::getNEvents(), SctData::ScanResult::getPoints(), SctAnalysis::AnalysisAlgorithm::getRaw(), SctData::RawScanResult::getScanData(), SctAnalysis::AnalysisAlgorithm::getTestResult(), SctData::ResultHeader::getVariable(), SctData::SingleVariableTestResult::setNOptima(), SctData::SingleVariableTestResult::setOptimum(), SctData::TestResult::setPassed(), 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 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 Thu Jul 15 09:51:52 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5