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 () 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.
shared_ptr< TGraph > getOffsetGraph () const
 Access all offset data in convenient graph format.
shared_ptr< TGraph > getNoiseGraph () const
 Access all noise data in convenient graph format.
shared_ptr< TGraph > getGainGraph () const
 Access all gain data in convenient graph format.

Data Fields

RangedVector< float > noiseSlope
 Noise slopes of the chips.
RangedVector< float > offsetSlope
 Offset slopes of the chip data.
RangedVector< float > gainSlope
 Gain slopes of the chip data.

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

References Sct::nChannelModule, and Sct::nChipModule.


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 149 of file NPtGainTestResult.h.

Referenced by getGainGraph(), getNoiseGraph(), getOffsetGraph(), and SctData::ISTestSummary::ISNPtGainSummaryWriter::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 141 of file NPtGainTestResult.h.

Referenced by NPtGainCompare::compareChip(), SctData::IO::NPtGainTestResultStreamer_v2::read(), SctData::IO::NPtGainTestResultStreamer_v1::read(), SctCalibrationController::NPtGainConfigUpdater::update(), SctData::IO::NPtGainTestResultStreamer_v2::write(), and SctData::IO::NPtGainTestResultStreamer_v1::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 75 of file NPtGainTestResult.cpp.

shared_ptr< TGraph > SctData::NPtGainTestResult::getGainGraph  )  const
 

Access all gain data in convenient graph format.

Definition at line 57 of file NPtGainTestResult.cpp.

References getChannelData(), and Sct::nChannelModule.

Referenced by SctAnalysis::NPtGainAlgorithm::doSlopes().

Here is the call graph for this function:

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.

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_v2::write(), and SctData::IO::NPtGainTestResultStreamer_v1::write().

shared_ptr< TGraph > SctData::NPtGainTestResult::getNoiseGraph  )  const
 

Access all noise data in convenient graph format.

Definition at line 48 of file NPtGainTestResult.cpp.

References getChannelData(), and Sct::nChannelModule.

Referenced by SctAnalysis::NPtGainAlgorithm::doSlopes().

Here is the call graph for this function:

shared_ptr< TGraph > SctData::NPtGainTestResult::getOffsetGraph  )  const
 

Access all offset data in convenient graph format.

Definition at line 66 of file NPtGainTestResult.cpp.

References getChannelData(), and Sct::nChannelModule.

Referenced by SctAnalysis::NPtGainAlgorithm::doSlopes().

Here is the call graph for this function:

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.

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


Field Documentation

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

The channel fits.

Definition at line 137 of file NPtGainTestResult.h.

Referenced by getNChannelData(), and NPtGainTestResult().

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

The chip fits.

Definition at line 136 of file NPtGainTestResult.h.

Referenced by getNChipData(), and NPtGainTestResult().

RangedVector<float> SctData::NPtGainTestResult::gainSlope
 

Gain slopes of the chip data.

Definition at line 132 of file NPtGainTestResult.h.

Referenced by SctAnalysis::NPtGainAlgorithm::doSlopes().

RangedVector<float> SctData::NPtGainTestResult::noiseSlope
 

Noise slopes of the chips.

Definition at line 130 of file NPtGainTestResult.h.

Referenced by SctAnalysis::NPtGainAlgorithm::doSlopes().

RangedVector<float> SctData::NPtGainTestResult::offsetSlope
 

Offset slopes of the chip data.

Definition at line 131 of file NPtGainTestResult.h.

Referenced by SctAnalysis::NPtGainAlgorithm::doSlopes().

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

The index of the special scan!

Definition at line 135 of file NPtGainTestResult.h.

Referenced by getSpecialScanIndex(), and getSpecialScanPointValue().


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