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

Sct Namespace Reference

This namespace contains things that might be generally useful. More...


Data Structures

class  AbstractThrowable
 A base implementation for Throwable All important information should be included in the string returned by getMessage(). More...

class  ConfigurationException
 Thrown when an error in the configuration is found. More...

class  Error
 Represents problems that might be more reasonably described as bugs. More...

class  Exception
 Represents genuinely exceptional events (such as resource acquisition failure). More...

class  FileException
 Thrown to indicate a file IO error. More...

class  IllegalStateError
 This error indicates that a class is not in an appropriate state for the request that was made of it. More...

class  InvalidArgumentError
 Thrown to report invalid arguments to functions. More...

class  InvariantViolatedError
 This error indicates that a class' invariants have been violated somehow. More...

class  IoException
 Thrown when an IO error has occured e.g. More...

class  IOManager
 An abstract class that represents an I/O backend. More...

class  IOName
class  IOParams
 A tag class. More...

class  IpcException
 Thrown to indicate an error with an Ipc call. More...

class  IpcObjectException
 Thrown when an error publishing or withdrawing IPCObjects. More...

class  IsException
 Thrown to indicate an error from the Information Service. More...

class  IStream
class  LogicError
 Logic errors represent internal problems in the logic of the program. More...

class  MathsError
 Thrown when an mathametical error has occured e.g. More...

class  NoSuchStreamerException
 Indicates that there is no Streamer for a given className. More...

class  OStream
class  OutOfRangeError
 Thrown to show that arguement value is not in the allowed range. More...

class  RangedVector
 Class is like a vector, but checks the array bounds of the vector. More...

class  SctNames
 This static class exists to provide the names of SCT Online Software components. More...

class  Serializable
 Classes should implement this interface if they want to be serialized by the IO system. More...

class  StdExceptionWrapper
class  Streamable
 Classes should implement this interface if they want to be serialized by the IO system. More...

class  StreamCorruptedException
 Thrown to indicate that the stream is somehow not in the state the I/O code thought it ought to be in. More...

class  Streamer
class  Throwable
 The base class for all of the exceptions which we throw in the SCT code. More...

class  UnsupportedOperationError
 Indicates a method is not supported by this class. More...

class  VersionNotSupportedException
 Indicates an that an I/O operation failed because the version of the data was not compatible with what the software was capable of dealing with. More...


Module Parameters

Parameters of SCT modules

Author:
Alan Barr
Date:
31 March 2003


const unsigned int nLinkModule
const unsigned int nChipModule
const unsigned int nChipLink
const unsigned int nChannelModule
const unsigned int nChannelLink
const unsigned int nChannelChip

Typedefs

typedef IoException IoError
 To maintain backward compatibility.

typedef map< string, shared_ptr<
Streamer > > 
StreamerMap
typedef InvalidArgumentError InvalidArgument
 For backward compatibility.


Functions

void Terminate () throw ()
 This function is called in case of exception violations It should NOT be called by the user.

void Unexpected () throw ()
 This function is called in case of uncaught exceptions It should NOT be called by the user.

void setExceptionHandlers (const char *name) throw ()
 Main programs should call this to the Sct defaults.

template<typename ILUSequence, typename ListMember> ILUSequence * copyListToILU (std::list< ListMember > thisList)
 Contains a set of functions useful for converting between normal objects and ILU objects.

template<typename ILUSequence, typename ListMember> std::list< ListMember > copyILUToList (ILUSequence *thisSeq)
template<typename ILUSequence, typename ArrayMember> ILUSequence * copyArrayToILU (ArrayMember *array, unsigned long length)
template<typename ILUSequence, typename ArrayMember> ILUSequence * copyVectorToILU (std::vector< ArrayMember > array)
template<typename ILUBlock, typename ArrayMember> ArrayMember * copyILUToArray (ILUBlock thisSeq, ArrayMember *array, size_t length)
unsigned char roundToUChar (float value)
unsigned char roundToUChar (double value)
double timer ()
 Get the current time in seconds with millisecond accuracy.

const char * getVersionString ()
const char * getVersionModifier ()
unsigned int getMajorVersion ()
unsigned int getMinorVersion ()
double getVersion ()

Variables

const char * process_name
const char * BuildSystem
const char * BuildHost
const char * BuildDate
const char * CmtConfig
const char * OnlineVersion
const char * RootVersion
const char * GccVersion
const char * RodDaqVersion
const char * DataFlowVersion
const char * VersionString
 The string that contains the version info. Should be in form SctRodDaq_x_xx_sometext.

const char * VersionModifier
 the bit at the end

const double Version
 x_xx => x.xx

const unsigned int MajorVersion
 The major version.

const unsigned int MinorVersion
 The minor version (decimal part of version * 100).


Detailed Description

This namespace contains things that might be generally useful.

All the classes currently here are to do with IS/Serialization in one way or another. Streamable and Serializable are interfaces that client classes should implement if they want the IO system to serialize them. The IS* classes are the machinery to do that for IS. In particular, look at the ISManager class. SctISName is a class that represents the name of something in IS. Finally, SctNames is a class that gives access to the IS server names and IPC partition.

Here are some pretty pictures that might explain how the IS/IO stuff works.

SCT_StreamableUse.gif

Shows how to use the Steamable interface

SCT_SerializerUse.gif

Shows how to use the Serializable interface


Typedef Documentation

typedef InvalidArgumentError Sct::InvalidArgument
 

For backward compatibility.

Definition at line 65 of file LogicErrors.h.

typedef IoException Sct::IoError
 

To maintain backward compatibility.

Definition at line 37 of file IoExceptions.h.

Referenced by SctAnalysis::TrimRangeAlgorithm::canAddFitScanResult(), SctAnalysis::NPtGainAlgorithm::canAddFitScanResult(), SctData::TestResult::getFit(), SctData::TestResult::getRaw(), SctData::IO::TrimRangeTestResultStreamer::read(), SctData::IO::TimeWalkTestResultStreamer::read(), SctData::IO::TGraphStreamer::read(), SctData::IO::TGraphAsymmErrorsStreamer::read(), SctData::IO::TF1Streamer::read(), SctData::IO::TestResultStreamer::read(), SctData::IO::StrobeDelayTestResultStreamer::read(), SctData::ScanResultWriter::read(), SctData::IO::ScanResultStreamer::read(), SctData::IO::ScanHeaderStreamer::read(), SctData::IO::ResponseCurveStreamer::read(), SctData::IO::RawScanResultStreamer::read(), SctData::IO::PipelineTestResultStreamer::read(), SctData::IO::NPtGainTestResultStreamer::read(), SctData::IO::NoiseOccupancyTestResultStreamer::read(), SctData::IO::NMaskTestResultStreamer::read(), SctData::IO::ModuleDefectListStreamer::read(), SctData::IO::ModuleConfigurationStreamer::read(), SctData::IO::FullBypassTestResultStreamer::read(), SctData::IO::FitScanResultStreamer::read(), SctData::IO::TopHatFitObjectStreamer::read(), SctData::IO::GausFitObjectStreamer::read(), SctData::IO::ErfFitObjectStreamer::read(), SctData::IO::ErfcFitObjectStreamer::read(), SctData::IO::FitObjectStreamer::read(), SctData::IO::ConfigurationVariableStreamer::read(), SctData::IO::TimeWalkTestResultStreamer::readChipResult(), SctData::IO::NoiseOccupancyTestResultStreamer::readChipResult(), SctData::IO::FullBypassTestResultStreamer::readChipResult(), SctData::IO::TrimRangeTestResultStreamer::readData(), SctData::IO::RawScanResultStreamer::readData(), SctData::IO::NPtGainTestResultStreamer::readData(), SctData::IO::RawScanResultStreamer::readRootData(), SctData::IO::RawScanResultStreamer::readSliceData(), SctData::IO::TrimRangeTestResultStreamer::write(), SctData::IO::TimeWalkTestResultStreamer::write(), SctData::IO::TGraphStreamer::write(), SctData::IO::TGraphAsymmErrorsStreamer::write(), SctData::IO::TF1Streamer::write(), SctData::IO::TestResultStreamer::write(), SctData::TestSummary::SummaryManager::write(), SctData::IO::StrobeDelayTestResultStreamer::write(), SctData::ScanResultWriter::write(), SctData::IO::ScanResultStreamer::write(), SctData::IO::ScanHeaderStreamer::write(), SctData::IO::ResponseCurveStreamer::write(), SctData::IO::RawScanResultStreamer::write(), SctData::IO::PipelineTestResultStreamer::write(), SctData::IO::NPtGainTestResultStreamer::write(), SctData::IO::NoiseOccupancyTestResultStreamer::write(), SctData::IO::NMaskTestResultStreamer::write(), SctData::IO::ModuleDefectListStreamer::write(), SctData::IO::ModuleConfigurationStreamer::write(), SctData::IO::FullBypassTestResultStreamer::write(), SctData::IO::FitScanResultStreamer::write(), SctData::IO::FitObjectStreamer::write(), SctData::IO::ConfigurationVariableStreamer::write(), SctData::IO::TimeWalkTestResultStreamer::writeChipResult(), SctData::IO::NoiseOccupancyTestResultStreamer::writeChipResult(), SctData::IO::FullBypassTestResultStreamer::writeChipResult(), SctData::IO::TrimRangeTestResultStreamer::writeData(), and SctData::IO::NPtGainTestResultStreamer::writeData().

typedef map<string, shared_ptr<Streamer> > Sct::StreamerMap
 

Definition at line 14 of file IOManager.cpp.

Referenced by Sct::IOManager::addToMap(), Sct::IOManager::getMap(), and Sct::IOManager::getStreamer().


Function Documentation

template<typename ILUSequence, typename ArrayMember>
ILUSequence* copyArrayToILU ArrayMember *    array,
unsigned long    length
[inline]
 

Definition at line 47 of file ILUMarshalling.h.

template<typename ILUBlock, typename ArrayMember>
ArrayMember* copyILUToArray ILUBlock    thisSeq,
ArrayMember *    array,
size_t    length
[inline]
 

Definition at line 77 of file ILUMarshalling.h.

template<typename ILUSequence, typename ListMember>
std::list<ListMember> copyILUToList ILUSequence *    thisSeq [inline]
 

Definition at line 34 of file ILUMarshalling.h.

template<typename ILUSequence, typename ListMember>
ILUSequence* copyListToILU std::list< ListMember >    thisList [inline]
 

Contains a set of functions useful for converting between normal objects and ILU objects.

Author:
Matthew Palmer based on an original by Bruce Gallop

Definition at line 16 of file ILUMarshalling.h.

template<typename ILUSequence, typename ArrayMember>
ILUSequence* copyVectorToILU std::vector< ArrayMember >    array [inline]
 

Definition at line 63 of file ILUMarshalling.h.

unsigned int getMajorVersion  
 

Definition at line 43 of file Version.cpp.

unsigned int getMinorVersion  
 

Definition at line 47 of file Version.cpp.

double getVersion  
 

Definition at line 51 of file Version.cpp.

const char* getVersionModifier  
 

Definition at line 39 of file Version.cpp.

const char* getVersionString  
 

Definition at line 24 of file Version.cpp.

unsigned char roundToUChar double    value [inline]
 

Definition at line 14 of file round.h.

unsigned char roundToUChar float    value [inline]
 

Definition at line 8 of file round.h.

Referenced by SctData::mVThresholdVariable::getActualPoint(), and SctData::mVCalChargeVariable::getActualPoint().

void Sct::Terminate   throw ()
 

This function is called in case of exception violations It should NOT be called by the user.

It sends a message to MRS and calls terminate();

Definition at line 130 of file Exception.cpp.

References Sct::AbstractThrowable::sendToMrs(), and Sct::Throwable::sendToMrs().

double timer   [inline]
 

Get the current time in seconds with millisecond accuracy.

Useful for timing short operations. Only utilizes first few numbers of seconds.

Definition at line 13 of file Timer.h.

Referenced by SctFitter::Fitter::doFits(), SctFitter::Fitter::ipcFit(), SctFitter::Fitter::ipcFitAll(), and SctFitter::FitterWorkerGroup::work().

void Sct::Unexpected   throw ()
 

This function is called in case of uncaught exceptions It should NOT be called by the user.

It sends the last created exception to MRS, and calls abort();

Definition at line 167 of file Exception.cpp.

References Sct::AbstractThrowable::sendToMrs().


Variable Documentation

const char * Sct::BuildDate
 

Definition at line 16 of file Version.cpp.

Referenced by longVersion().

const char * Sct::BuildHost
 

Definition at line 15 of file Version.cpp.

Referenced by longVersion().

const char * Sct::BuildSystem
 

Definition at line 14 of file Version.cpp.

Referenced by longVersion().

const char * Sct::CmtConfig
 

Definition at line 17 of file Version.cpp.

Referenced by longVersion().

const char * Sct::DataFlowVersion
 

Definition at line 22 of file Version.cpp.

Referenced by longVersion().

const char * Sct::GccVersion
 

Definition at line 20 of file Version.cpp.

Referenced by longVersion().

const unsigned int Sct::MajorVersion
 

The major version.

Definition at line 61 of file Version.cpp.

Referenced by longVersion().

const unsigned int Sct::MinorVersion
 

The minor version (decimal part of version * 100).

Definition at line 62 of file Version.cpp.

Referenced by longVersion().

const unsigned int Sct::nChannelChip
 

Definition at line 14 of file SctParameters.h.

Referenced by SctAnalysis::NoiseOccupancyAlgorithm::analyzeChip(), ArchTrimRangeTestResult::ArchTrimRangeTestResult(), SctAnalysis::TrimRangeAlgorithm::canAddFitScanResult(), SctAnalysis::PipelineAlgorithm::canAddRawScanResult(), SctAnalysis::NMaskAlgorithm::canAddRawScanResult(), SctAnalysis::TrimRangeAlgorithm::doTrimDataFit(), SctAnalysis::TrimRangeAlgorithm::getChipTrim(), SctData::TrimRangeTestResult::ChipTrimData::getOffsets(), SctData::TrimRangeTestResult::ChipTrimData::getSteps(), SctData::ModuleElement::isChip(), SctData::IO::TrimRangeTestResultStreamer::readData(), SctData::IO::TrimRangeTestResultStreamer::readTrim(), SctCalibrationController::TrimRangeConfigUpdater::update(), SctData::TestSummary::PipelineSummaryWriter::write(), SctData::TestSummary::NPtGainSummaryWriter::write(), and SctData::IO::TrimRangeTestResultStreamer::writeTrim().

const unsigned int Sct::nChannelLink
 

Definition at line 14 of file SctParameters.h.

Referenced by compareFits(), SctData::ModuleElement::isLink(), SctData::IO::RawScanResultStreamer::read(), SctData::IO::RawScanResultStreamer::readRootData(), and SctData::IO::RawScanResultStreamer::readSliceData().

const unsigned int Sct::nChannelModule
 

Definition at line 14 of file SctParameters.h.

Referenced by SctAnalysis::NPtGainAlgorithm::canAddFitScanResult(), compare(), SctData::ModuleElement::isModule(), SctData::ModuleElement::ModuleElement(), SctCalibrationController::TrimRangeConfigUpdater::update(), and SctData::TestSummary::SummaryWriter::write().

const unsigned int Sct::nChipLink
 

Definition at line 13 of file SctParameters.h.

Referenced by SctAnalysis::FullBypassAlgorithm::canAddRawScanResult(), SctData::TestSummary::TimeWalkSummaryWriter::write(), SctData::TestSummary::StrobeDelaySummaryWriter::write(), and SctData::TestSummary::PipelineSummaryWriter::write().

const unsigned int Sct::nChipModule
 

Definition at line 13 of file SctParameters.h.

Referenced by SctAnalysis::NoiseOccupancyAlgorithm::analyze(), ArchNoiseOccupancyTestResult::ArchNoiseOccupancyTestResult(), ArchTrimRangeTestResult::ArchTrimRangeTestResult(), SctAnalysis::TrimRangeAlgorithm::canAddFitScanResult(), SctAnalysis::TimeWalkAlgorithm::canAddFitScanResult(), SctAnalysis::NPtGainAlgorithm::canAddFitScanResult(), SctAnalysis::PipelineAlgorithm::canAddRawScanResult(), SctAnalysis::FullBypassAlgorithm::canAddRawScanResult(), compare(), SctAnalysis::TrimRangeAlgorithm::createRanges(), SctData::StrobeDelayTestResult::getOptimum(), SctAnalysis::StrobeDelayAlgorithm::optimize(), SctData::IO::TrimRangeTestResultStreamer::read(), SctData::IO::TimeWalkTestResultStreamer::read(), SctData::IO::NoiseOccupancyTestResultStreamer::read(), SctData::IO::FullBypassTestResultStreamer::read(), SctData::StrobeDelayTestResult::setOptimum(), SctData::TestSummary::TrimRangeSummaryWriter::write(), SctData::IO::TimeWalkTestResultStreamer::write(), SctData::TestSummary::TimeWalkSummaryWriter::write(), SctData::TestSummary::StrobeDelaySummaryWriter::write(), SctData::TestSummary::NPtGainSummaryWriter::write(), SctData::IO::NoiseOccupancyTestResultStreamer::write(), SctData::TestSummary::NoiseOccupancySummaryWriter::write(), SctData::IO::FullBypassTestResultStreamer::write(), and SctData::TestSummary::FullBypassSummaryWriter::write().

const unsigned int Sct::nLinkModule
 

Definition at line 12 of file SctParameters.h.

Referenced by SctAnalysis::FullBypassAlgorithm::canAddRawScanResult(), and compareFits().

const char * Sct::OnlineVersion
 

Definition at line 18 of file Version.cpp.

Referenced by longVersion().

const char* Sct::process_name
 

Definition at line 115 of file Exception.cpp.

Referenced by setExceptionHandlers().

const char * Sct::RodDaqVersion
 

Definition at line 21 of file Version.cpp.

Referenced by longVersion().

const char * Sct::RootVersion
 

Definition at line 19 of file Version.cpp.

Referenced by longVersion().

const double Sct::Version
 

x_xx => x.xx

Definition at line 60 of file Version.cpp.

Referenced by longVersion(), and shortVersion().

const char * Sct::VersionModifier
 

the bit at the end

Definition at line 59 of file Version.cpp.

Referenced by longVersion(), and shortVersion().

const char * Sct::VersionString
 

The string that contains the version info. Should be in form SctRodDaq_x_xx_sometext.

Definition at line 58 of file Version.cpp.

Referenced by longVersion().


Generated on Mon Dec 15 19:37:16 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3