SctTest::ModuleData Class Reference

Represents the contents of the ModuleDataFile. More...

#include <ModuleData.h>


Public Member Functions

 ModuleData ()
 Creates an empty ModuleData object.
 ModuleData (string fileName)
 Loads in the data from fileName.
void load (string fileName)
 Reloads in the data from fileName.
string getFileName () const
 Get the fileName.
bool dataExists (string serialNumber) const
 Returns true if there is data for serialNumber, false otherwise.
TestInfo getResponseCurveInfo (string serialNumber) const
 The following may all throw NoDataException if there is no data for the given serialNumber Get response curve information.
TestInfo get3PtGainInfo (string serialNumber) const
 Get 3 pt gain information.
TestInfo getStrobeDelayInfo (string serialNumber) const
 Get strobe delay information.
TestInfo getTrimInfo (string serialNumber) const
 Get trim information.
TestInfo getPipelineInfo (string serialNumber) const
 Get pipepline information.
TestInfo getFullBypassInfo (string serialNumber) const
 Get full bypass information.
TestInfo getNoiseOccupancyInfo (string serialNumber) const
 Get noise occupancy information.
TestInfo getTimeWalkInfo (string serialNumber) const
 Get timewalk information.

Private Member Functions

TestInfo getInfo (string serialNumber, unsigned int index) const
 Gets an indexed TestInfo.

Private Attributes

string fileName
map< string, ModuleDataInfodataMap

Data Structures

struct  ModuleDataInfo


Detailed Description

Represents the contents of the ModuleDataFile.

Author:
Matthew Palmer

Definition at line 27 of file ModuleData.h.


Constructor & Destructor Documentation

SctTest::ModuleData::ModuleData  ) 
 

Creates an empty ModuleData object.

Definition at line 12 of file ModuleData.cpp.

SctTest::ModuleData::ModuleData string  fileName  ) 
 

Loads in the data from fileName.

Performs environment variable substitution on fileName

Exceptions:
NoDataFileException if fileName doesn't exist
DataNotValidException if the format of the file is bad

Definition at line 16 of file ModuleData.cpp.

References load().

Here is the call graph for this function:


Member Function Documentation

bool SctTest::ModuleData::dataExists string  serialNumber  )  const
 

Returns true if there is data for serialNumber, false otherwise.

If this method returns true, all the getXXXInfo methods will return without throwing.

Definition at line 52 of file ModuleData.cpp.

References dataMap.

Referenced by SctTest::HighLevelApi::handy_setModuleSerial().

TestInfo SctTest::ModuleData::get3PtGainInfo string  serialNumber  )  const
 

Get 3 pt gain information.

Definition at line 70 of file ModuleData.cpp.

References getInfo().

Referenced by NPtGainCompare::downloadData(), and SctTest::HighLevelApi::threePointGain().

Here is the call graph for this function:

string SctTest::ModuleData::getFileName  )  const
 

Get the fileName.

Definition at line 48 of file ModuleData.cpp.

References fileName.

Referenced by SctTest::HighLevelApi::handy_getDataFile().

TestInfo SctTest::ModuleData::getFullBypassInfo string  serialNumber  )  const
 

Get full bypass information.

Definition at line 82 of file ModuleData.cpp.

References getInfo().

Referenced by FullBypassCompare::downloadData().

Here is the call graph for this function:

TestInfo SctTest::ModuleData::getInfo string  serialNumber,
unsigned int  index
const [private]
 

Gets an indexed TestInfo.

Definition at line 57 of file ModuleData.cpp.

References dataMap.

Referenced by get3PtGainInfo(), getFullBypassInfo(), getNoiseOccupancyInfo(), getPipelineInfo(), getResponseCurveInfo(), getStrobeDelayInfo(), getTimeWalkInfo(), and getTrimInfo().

TestInfo SctTest::ModuleData::getNoiseOccupancyInfo string  serialNumber  )  const
 

Get noise occupancy information.

Definition at line 86 of file ModuleData.cpp.

References getInfo().

Referenced by NoiseOccupancyCompare::downloadData(), and SctTest::HighLevelApi::noiseOccupancy().

Here is the call graph for this function:

TestInfo SctTest::ModuleData::getPipelineInfo string  serialNumber  )  const
 

Get pipepline information.

Definition at line 78 of file ModuleData.cpp.

References getInfo().

Referenced by PipelineCompare::downloadData(), and SctTest::HighLevelApi::pipeline().

Here is the call graph for this function:

TestInfo SctTest::ModuleData::getResponseCurveInfo string  serialNumber  )  const
 

The following may all throw NoDataException if there is no data for the given serialNumber Get response curve information.

Definition at line 62 of file ModuleData.cpp.

References getInfo().

Referenced by FitCompare::compare(), NPtGainCompare::downloadData(), and SctTest::HighLevelApi::responseCurve().

Here is the call graph for this function:

TestInfo SctTest::ModuleData::getStrobeDelayInfo string  serialNumber  )  const
 

Get strobe delay information.

Definition at line 66 of file ModuleData.cpp.

References getInfo().

Referenced by FitCompare::compare(), StrobeDelayCompare::downloadData(), and SctTest::HighLevelApi::strobeDelay().

Here is the call graph for this function:

TestInfo SctTest::ModuleData::getTimeWalkInfo string  serialNumber  )  const
 

Get timewalk information.

Definition at line 90 of file ModuleData.cpp.

References getInfo().

Referenced by FitCompare::compare(), TimeWalkCompare::downloadData(), and SctTest::HighLevelApi::timeWalk().

Here is the call graph for this function:

TestInfo SctTest::ModuleData::getTrimInfo string  serialNumber  )  const
 

Get trim information.

Definition at line 74 of file ModuleData.cpp.

References getInfo().

Referenced by TrimRangeCompare::downloadData(), and SctTest::HighLevelApi::trim().

Here is the call graph for this function:

void SctTest::ModuleData::load string  fileName  ) 
 

Reloads in the data from fileName.

Performs environment variable substitution on fileName

Exceptions:
NoDataFileException if fileName doesn't exist
DataNotValidException if the format of the file is bad

Definition at line 20 of file ModuleData.cpp.

References dataMap, SctTest::ModuleDataFile::getNextRecord(), and SctTest::ModuleDataFile::hasMoreRecords().

Referenced by AnalysisTestFramework< T >::analyzeAll(), SctTest::HighLevelApi::handy_setDataFile(), and ModuleData().

Here is the call graph for this function:


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