Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | 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:

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

Collaboration graph
[legend]

Public Member Functions

 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 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 24 of file NPtGainTestResult.cpp.


Member Function Documentation

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_v1::read(), SctData::IO::NPtGainTestResultStreamer_v1::write(), and SctData::TestSummary::NPtGainSummaryWriter::write().

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_v1::read(), SctData::IO::NPtGainTestResultStreamer_v1::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.

Returns:
the class name
Note:
Nothrow

Implements Sct::Streamable.

Definition at line 36 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_v1::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_v1::write().

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

Returns:
the Response Curve

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(), and specialScanIndex.

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

Here is the call graph for this function:

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 40 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 getSpecialScanPointValue().


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