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

SctData::NPtGainTestResult Class Reference

This class represents the result of doing either a 3 pt Gain Test or a Response Curve Test. More...

#include <NPtGainTestResult.h>

Inheritance diagram for SctData::NPtGainTestResult:

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

Public Member Functions

 NPtGainTestResult () throw ()
 ~NPtGainTestResult () throw ()
 NPtGainTestResult (unsigned int runNumber, const string &moduleName, const CalChargeVariable &testVariable, const ThresholdVariable &scanVariable) throw ()
 Contructor.

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

const ResponseCurvegetResponseCurve () const throw ()
void setChannelDataSize (unsigned int i) throw ()
void setChipDataSize (unsigned int i) throw ()
const NPtGainTestResultDatagetChipData (unsigned int chip) const throw (LogicError)
 Get the N Pt Gain data for a channel.

NPtGainTestResultDatagetChipData (unsigned int chip) throw (LogicError)
const NPtGainTestResultDatagetChannelData (unsigned int channel) const throw (LogicError)
 Get the N Pt Gain data for a channel.

NPtGainTestResultDatagetChannelData (unsigned int channel) throw (LogicError)
unsigned int getNChipData () const throw ()
 get the number of chip fits, 0 or 12;

unsigned int getNChannelData () const throw ()
 get the number of channel fits, 0 or 1535;

double getSpecialScanPointValue () const throw (LogicError)
unsigned int getSpecialScanIndex () const throw ()
void setSpecialScanPointValue (double pointValue) throw (LogicError)
 Set the value of the special point.


Private Attributes

unsigned int specialScanIndex
 The index of the special scan!

RangedVector< NPtGainTestResultDatachipData
 The chip fits.

RangedVector< NPtGainTestResultDatachannelData
 The channel fits.


Detailed Description

This class represents the result of doing either a 3 pt Gain Test or a Response Curve Test.

The difference is of course, N.

Author:
Matthew Palmer

Definition at line 46 of file NPtGainTestResult.h.


Constructor & Destructor Documentation

SctData::NPtGainTestResult::NPtGainTestResult   throw ()
 

Definition at line 20 of file NPtGainTestResult.cpp.

SctData::NPtGainTestResult::~NPtGainTestResult   throw ()
 

Definition at line 33 of file NPtGainTestResult.cpp.

SctData::NPtGainTestResult::NPtGainTestResult unsigned int    runNumber,
const string &    moduleName,
const CalChargeVariable   testVariable,
const ThresholdVariable   scanVariable
throw ()
 

Contructor.

Pass on all the necessary stuff to TestResult. NB the NPtGainTestResult owns the response curve.

Definition at line 25 of file NPtGainTestResult.cpp.


Member Function Documentation

NPtGainTestResultData & SctData::NPtGainTestResult::getChannelData unsigned int    channel throw (LogicError) [inline]
 

Definition at line 137 of file NPtGainTestResult.h.

const NPtGainTestResultData & SctData::NPtGainTestResult::getChannelData unsigned int    channel const throw (LogicError) [inline]
 

Get the N Pt Gain data for a channel.

Parameters:
chip The channel number [0,1535]
Returns:
The data.
Exceptions:
LogicError if out of range

Definition at line 133 of file NPtGainTestResult.h.

Referenced by SctData::IO::NPtGainTestResultStreamer::read(), SctData::IO::NPtGainTestResultStreamer::write(), and SctData::TestSummary::NPtGainSummaryWriter::write().

NPtGainTestResultData & SctData::NPtGainTestResult::getChipData unsigned int    chip throw (LogicError) [inline]
 

Definition at line 129 of file NPtGainTestResult.h.

const NPtGainTestResultData & SctData::NPtGainTestResult::getChipData unsigned int    chip const throw (LogicError) [inline]
 

Get the N Pt Gain data for a channel.

Parameters:
chip The channel number [0,11]
Returns:
The data.
Exceptions:
LogicError if out of range

Definition at line 125 of file NPtGainTestResult.h.

Referenced by SctData::IO::NPtGainTestResultStreamer::read(), SctCalibrationController::NPtGainConfigUpdater::update(), SctData::IO::NPtGainTestResultStreamer::write(), and SctData::TestSummary::NPtGainSummaryWriter::write().

string SctData::NPtGainTestResult::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 37 of file NPtGainTestResult.cpp.

unsigned int SctData::NPtGainTestResult::getNChannelData   const throw () [inline]
 

get the number of channel fits, 0 or 1535;

Definition at line 94 of file NPtGainTestResult.h.

References channelData.

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

unsigned int SctData::NPtGainTestResult::getNChipData   const throw () [inline]
 

get the number of chip fits, 0 or 12;

Definition at line 89 of file NPtGainTestResult.h.

References chipData.

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

const ResponseCurve& SctData::NPtGainTestResult::getResponseCurve   const throw ()
 

Returns:
the Response Curve

unsigned int SctData::NPtGainTestResult::getSpecialScanIndex   const throw () [inline]
 

Definition at line 106 of file NPtGainTestResult.h.

References specialScanIndex.

double SctData::NPtGainTestResult::getSpecialScanPointValue   const throw (LogicError) [inline]
 

Returns:
the special point
Exceptions:
LogicError if the special point hasn't been initialized.

Definition at line 102 of file NPtGainTestResult.h.

References SctData::TestResult::getTestPointAt().

Referenced by SctData::TestSummary::NPtGainSummaryWriter::write().

void SctData::NPtGainTestResult::setChannelDataSize unsigned int    i throw ()
 

Definition at line 54 of file NPtGainTestResult.cpp.

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

void SctData::NPtGainTestResult::setChipDataSize unsigned int    i throw ()
 

Definition at line 58 of file NPtGainTestResult.cpp.

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

void SctData::NPtGainTestResult::setSpecialScanPointValue double    pointValue throw (LogicError)
 

Set the value of the special point.

Parameters:
pointValue the value of the testVariable for the special scan
Exceptions:
LogicError if no scan with such a value exists.

Definition at line 41 of file NPtGainTestResult.cpp.


Field Documentation

RangedVector<NPtGainTestResultData> SctData::NPtGainTestResult::channelData [private]
 

The channel fits.

Definition at line 121 of file NPtGainTestResult.h.

Referenced by getNChannelData().

RangedVector<NPtGainTestResultData> SctData::NPtGainTestResult::chipData [private]
 

The chip fits.

Definition at line 120 of file NPtGainTestResult.h.

Referenced by getNChipData().

unsigned int SctData::NPtGainTestResult::specialScanIndex [private]
 

The index of the special scan!

Definition at line 119 of file NPtGainTestResult.h.

Referenced by getSpecialScanIndex().


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