SctTest::ScanMap Class Reference

This class represents the map from serial numbers to data files. More...

#include <ScanMap.h>


Public Member Functions

void initialize (string fileName)
 Initialize the ScanMap with filename.
string getDataFile (string serialNum, const ABCDModule &config, unsigned short scanVar) const
 Gets the data file for a given module, configuration and scan variable.

Static Public Member Functions

static ScanMapinstance ()
 Get the instance of the ScanMap.
static string convertSerial (string serialNum)
 Converts a serial number into the serial number of the stored data.

Private Types

typedef multimap< ScanInfo,
string > 
DigitalMap
typedef multimap< string,
ThresholdScanDetails
ThresholdMap
typedef multimap< string,
StrobeDelayScanDetails
StrobeMap

Private Member Functions

 ScanMap ()
string getThresholdDataFile (string serialNum, const ABCDModule &config) const
string getStrobeDataFile (string serialNum, const ABCDModule &config) const
void addFullBypassTest (const ModuleDataRecord &mdr)
void addPipelineTest (const ModuleDataRecord &mdr)
void addStrobeDelay (const ModuleDataRecord &mdr)
void addThreePointGain (const ModuleDataRecord &mdr)
void addTrim (const ModuleDataRecord &mdr)
void addResponseCurve (const ModuleDataRecord &mdr)
void addNoise (const ModuleDataRecord &mdr)
void addTimewalk (const ModuleDataRecord &mdr)
string constructFileName (string path, unsigned int runNumber, unsigned int scanNumber) const

Private Attributes

DigitalMap digitalMap
ThresholdMap thresholdMap
StrobeMap strobeMap


Detailed Description

This class represents the map from serial numbers to data files.

Definition at line 23 of file ScanMap.h.


Member Function Documentation

string SctTest::ScanMap::convertSerial string  serialNum  )  [static]
 

Converts a serial number into the serial number of the stored data.

Definition at line 18 of file ScanMap.cpp.

Referenced by getDataFile().

string SctTest::ScanMap::getDataFile string  serialNum,
const ABCDModule &  config,
unsigned short  scanVar
const
 

Gets the data file for a given module, configuration and scan variable.

Exceptions:
NoDataFileException if a data file cannot be found

Definition at line 25 of file ScanMap.cpp.

References convertSerial(), digitalMap, getStrobeDataFile(), getThresholdDataFile(), SctTest::ScanInfo::scanVar, and SctTest::ScanInfo::serialNum.

Here is the call graph for this function:

void SctTest::ScanMap::initialize string  fileName  ) 
 

Initialize the ScanMap with filename.

Clears the map first

Exceptions:
FileException if there is a problem opening the file.

Definition at line 76 of file ScanMap.cpp.

References addFullBypassTest(), addNoise(), addPipelineTest(), addResponseCurve(), addStrobeDelay(), addThreePointGain(), addTimewalk(), addTrim(), digitalMap, SctTest::ModuleDataFile::getNextRecord(), SctTest::ModuleDataFile::hasMoreRecords(), strobeMap, and thresholdMap.

Referenced by SctTest::Configuration::handy_setDataFile().

Here is the call graph for this function:

ScanMap & SctTest::ScanMap::instance  )  [static]
 

Get the instance of the ScanMap.

Definition at line 13 of file ScanMap.cpp.

Referenced by SctTest::Configuration::handy_setDataFile().


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