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

SctData::StrobeDelayTestResult Class Reference

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

#include <StrobeDelayTestResult.h>

Inheritance diagram for SctData::StrobeDelayTestResult:

SctData::TestResult Sct::Serializable Sct::Streamable

Public Member Functions

 StrobeDelayTestResult () throw ()
 ~StrobeDelayTestResult () throw ()
 StrobeDelayTestResult (const unsigned int runNumber, const string &moduleName) throw ()
 Constructor.

virtual string getClassName () const 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.

void setFraction (const double f=0.25) throw ()
 set the position parameter for the optimum efficiency.

double getFraction () const throw ()
 get the position parameter for the optimum efficiency.

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

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

void setOptimum (unsigned int chip, double optimum) throw (Sct::LogicError)
 set the optimum of one chip to a particular value


Private Attributes

double m_fraction
 the fraction of the distance from rise to fall for optimum efficiency.

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 StrobeDelayTestResult.h.


Constructor & Destructor Documentation

SctData::StrobeDelayTestResult::StrobeDelayTestResult   throw ()
 

Definition at line 20 of file StrobeDelayTestResult.cpp.

SctData::StrobeDelayTestResult::~StrobeDelayTestResult   throw () [inline]
 

Definition at line 24 of file StrobeDelayTestResult.h.

SctData::StrobeDelayTestResult::StrobeDelayTestResult const unsigned int    runNumber,
const string &    moduleName
throw ()
 

Constructor.

Definition at line 24 of file StrobeDelayTestResult.cpp.


Member Function Documentation

void SctData::StrobeDelayTestResult::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 34 of file StrobeDelayTestResult.cpp.

string SctData::StrobeDelayTestResult::getClassName   const throw () [virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Todo:
We could use typeid instead here, but that would probably mean removing the namespace stuff.
Returns:
the class name

Implements Sct::Streamable.

Definition at line 30 of file StrobeDelayTestResult.cpp.

double SctData::StrobeDelayTestResult::getFraction   const throw () [inline]
 

get the position parameter for the optimum efficiency.

Definition at line 47 of file StrobeDelayTestResult.h.

References m_fraction.

Referenced by SctData::IO::StrobeDelayTestResultStreamer::write().

unsigned int SctData::StrobeDelayTestResult::getNOptima   const throw () [inline]
 

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

Definition at line 50 of file StrobeDelayTestResult.h.

References m_optima.

Referenced by SctData::IO::StrobeDelayTestResultStreamer::write().

double SctData::StrobeDelayTestResult::getOptimum unsigned    i const throw (Sct::LogicError)
 

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

Definition at line 39 of file StrobeDelayTestResult.cpp.

References Sct::nChipModule.

Referenced by SctCalibrationController::StrobeDelayConfigUpdater::update(), SctData::IO::StrobeDelayTestResultStreamer::write(), and SctData::TestSummary::StrobeDelaySummaryWriter::write().

void SctData::StrobeDelayTestResult::setFraction const double    f = 0.25 throw () [inline]
 

set the position parameter for the optimum efficiency.

Definition at line 42 of file StrobeDelayTestResult.h.

References m_fraction.

Referenced by SctData::IO::StrobeDelayTestResultStreamer::read().

void SctData::StrobeDelayTestResult::setNOptima unsigned int    n throw () [inline]
 

Definition at line 52 of file StrobeDelayTestResult.h.

References m_optima.

Referenced by SctData::IO::StrobeDelayTestResultStreamer::read().

void SctData::StrobeDelayTestResult::setOptimum unsigned int    chip,
double    optimum
throw (Sct::LogicError)
 

set the optimum of one chip to a particular value

Parameters:
chip in range 0->11 optimum the value of the optimum to set

Definition at line 45 of file StrobeDelayTestResult.cpp.

References Sct::nChipModule.

Referenced by SctData::IO::StrobeDelayTestResultStreamer::read().


Field Documentation

double SctData::StrobeDelayTestResult::m_fraction [private]
 

the fraction of the distance from rise to fall for optimum efficiency.

Definition at line 65 of file StrobeDelayTestResult.h.

Referenced by getFraction(), and setFraction().

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

the optimum value of the delay.

Definition at line 66 of file StrobeDelayTestResult.h.

Referenced by getNOptima(), and setNOptima().


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:53 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3