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 () throw ()
 ~SingleVariableTestResult () throw ()
 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 18 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.

References SctData::TestResult::addScan().

Here is the call graph for this function:

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 38 of file SingleVariableTestResult.h.

References m_optima.

Referenced by SctCalibrationController::StrobeDelayConfigUpdater::update(), 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.

References Sct::nChipModule.

Referenced by StrobeDelayCompare::compare(), SctCalibrationController::RxThresholdConfigUpdater::update(), SctCalibrationController::RxDelayConfigUpdater::update(), SctData::IO::StrobeDelayTestResultStreamer_v1::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(), 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 46 of file SingleVariableTestResult.h.

Referenced by getNOptima(), and setNOptima().


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