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

SctData::SingleVariableTestResult Class Reference

A derived class of TestResult, containing the results data for a Strobe Delay Test. More...

#include <SingleVariableTestResult.h>

Inheritance diagram for SctData::SingleVariableTestResult:

Inheritance graph
[legend]
Collaboration diagram for SctData::SingleVariableTestResult:

Collaboration graph
[legend]

Public Member Functions

 SingleVariableTestResult (const ConfigurationVariable &scanVariable, const unsigned int runNumber, const string &moduleName) throw ()
 Constructor.

virtual string getClassName () const=0 throw ()
 Get the class name for this object.

virtual void addScan (unsigned int scanNumber, double testPoint=0) throw (LogicError)
 Override addScan to ensure there is only 1 scanNumber.

virtual unsigned int getNOptima () const throw ()
 get the number of optmimised chip delays (usually 0 or 12).

virtual void setNOptima (unsigned int n) throw ()
virtual void setOptimum (unsigned i, double value) throw (Sct::LogicError)
 set the optimum for chip i to value

virtual double getOptimum (unsigned i) const throw (Sct::LogicError)
 get the value of one of the chip delays (chip `i').


Private Attributes

vector< double > m_optima
 the optimum value of the delay.


Detailed Description

A derived class of TestResult, containing the results data for a Strobe Delay Test.

Such a test requires only a single scan.

The result of the analysis is an optimum delay value for each of the 12 chips.

Author:
Alan Barr

Definition at line 20 of file SingleVariableTestResult.h.


Constructor & Destructor Documentation

SctData::SingleVariableTestResult::SingleVariableTestResult const ConfigurationVariable scanVariable,
const unsigned int  runNumber,
const string &  moduleName
throw ()
 

Constructor.

Definition at line 14 of file SingleVariableTestResult.cpp.


Member Function Documentation

void SctData::SingleVariableTestResult::addScan unsigned int  scanNumber,
double  testPoint = 0
throw (LogicError) [virtual]
 

Override addScan to ensure there is only 1 scanNumber.

Reimplemented from SctData::TestResult.

Definition at line 18 of file SingleVariableTestResult.cpp.

virtual string SctData::SingleVariableTestResult::getClassName  )  const throw () [pure virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Returns:
the class name
Note:
Nothrow

Implements Sct::Streamable.

Implemented in SctData::RxDelayTestResult, SctData::RxThresholdTestResult, and SctData::StrobeDelayTestResult.

virtual unsigned int SctData::SingleVariableTestResult::getNOptima  )  const throw () [inline, virtual]
 

get the number of optmimised chip delays (usually 0 or 12).

Definition at line 40 of file SingleVariableTestResult.h.

References m_optima.

Referenced by SctData::IO::StrobeDelayTestResultStreamer_v1::write(), SctData::IO::SingleVariableTestResultStreamer_v2::write(), and SctData::IO::SingleVariableTestResultStreamer_v1::write().

double SctData::SingleVariableTestResult::getOptimum unsigned  i  )  const throw (Sct::LogicError) [virtual]
 

get the value of one of the chip delays (chip `i').

Definition at line 23 of file SingleVariableTestResult.cpp.

Referenced by SctData::IO::StrobeDelayTestResultStreamer_v1::write(), SctData::TestSummary::StrobeDelaySummaryWriter::write(), SctData::IO::SingleVariableTestResultStreamer_v2::write(), SctData::IO::SingleVariableTestResultStreamer_v1::write(), SctData::TestSummary::RxThresholdSummaryWriter::write(), and SctData::TestSummary::RxDelaySummaryWriter::write().

virtual void SctData::SingleVariableTestResult::setOptimum unsigned  i,
double  value
throw (Sct::LogicError) [virtual]
 

set the optimum for chip i to value

Referenced by SctAnalysis::StrobeDelayAlgorithm::analyze(), SctAnalysis::RxThresholdAlgorithm::analyze(), SctAnalysis::RxDelayAlgorithm::analyze(), SctData::IO::StrobeDelayTestResultStreamer_v1::read(), SctData::IO::SingleVariableTestResultStreamer_v2::read(), and SctData::IO::SingleVariableTestResultStreamer_v1::read().


Field Documentation

vector<double> SctData::SingleVariableTestResult::m_optima [private]
 

the optimum value of the delay.

Definition at line 48 of file SingleVariableTestResult.h.

Referenced by getNOptima().


The documentation for this class was generated from the following files:
Generated on Thu Jul 8 11:42:28 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5