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

SctData::ScanResultWriter Class Reference

This class writes raw memory to IS in the form of ScanResults. More...

#include <ScanResultWriter.h>

Inheritance diagram for SctData::ScanResultWriter:

Sct::Streamer

Public Member Functions

virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Publishes ob to out.

virtual shared_ptr< Streamable > read (IStream &in, const IOManager &manager) const throw (LogicError, IoError)
 Create a new Streamable object of the appropriate type from IS.

virtual void read (IStream &in, Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Refreshes ob from in.


Static Public Member Functions

bool publish (scan_result_ptrs &scanResult)
 For truely public access
Exceptions:
IoException if something bad happens whilst writing
LogicError if you give it something it doesn't know how to deal with.


ScanResultWriter & getRawWriter ()
 Not for truely public access - some other mechanism maybe??

void writeClass (const string &name, OStream &out)

Protected Member Functions

void setData (scan_result_ptrs &scanResult)
void writeGuts (OStream &out) const
void writeHeader (OStream &out) const
void writeScanPoints (OStream &out) const
void writeConfiguration (OStream &out) const
void writeChipConfig (OStream &out, const ABCDChip &data) const
void writeData (OStream &out) const

Protected Attributes

scan_result_ptrsscanResult

Private Member Functions

 ScanResultWriter (const string &className)

Private Attributes

string className

Static Private Attributes

bool rawInMap

Detailed Description

This class writes raw memory to IS in the form of ScanResults.

Definition at line 20 of file ScanResultWriter.h.


Constructor & Destructor Documentation

SctData::ScanResultWriter::ScanResultWriter const string &    className [private]
 

Definition at line 45 of file ScanResultWriter.cpp.

Referenced by getRawWriter().


Member Function Documentation

ScanResultWriter & SctData::ScanResultWriter::getRawWriter   [static]
 

Not for truely public access - some other mechanism maybe??

Definition at line 48 of file ScanResultWriter.cpp.

References ScanResultWriter().

bool SctData::ScanResultWriter::publish scan_result_ptrs   scanResult [static]
 

For truely public access

Exceptions:
IoException if something bad happens whilst writing
LogicError if you give it something it doesn't know how to deal with.

Definition at line 61 of file ScanResultWriter.cpp.

References className, scan_result_ptrs::header, and setData().

void SctData::ScanResultWriter::read IStream &    in,
Streamable &    ob,
const IOManager &    manager
const throw (LogicError, IoError) [virtual]
 

Refreshes ob from in.

Parameters:
in The IStream
ob The Streamable object to be refreshed.
manager the IOManager to use
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 84 of file ScanResultWriter.cpp.

References Sct::IoError.

shared_ptr< Streamable > SctData::ScanResultWriter::read IStream &    in,
const IOManager &    manager
const throw (LogicError, IoError) [virtual]
 

Create a new Streamable object of the appropriate type from IS.

Parameters:
in The IStream.
manager the IOManager to use
Returns:
a new Streamable object
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 80 of file ScanResultWriter.cpp.

References Sct::IoError.

void SctData::ScanResultWriter::setData scan_result_ptrs   scanResult [protected]
 

Definition at line 89 of file ScanResultWriter.cpp.

Referenced by publish().

void SctData::ScanResultWriter::write OStream &    out,
const Streamable &    ob,
const IOManager &    manager
const throw (LogicError, IoError) [virtual]
 

Publishes ob to out.

Parameters:
out The OStream.
ob The Streamable object to stream.
manager the IOManager to use
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 73 of file ScanResultWriter.cpp.

References Sct::IoError.

void SctData::ScanResultWriter::writeChipConfig OStream &    out,
const ABCDChip   data
const [protected]
 

Definition at line 120 of file ScanResultWriter.cpp.

References ABCDConfig::accumulate, ABCDChip::active, ABCDChip::address, ABCDChip::basic, ABCDCaldata::c_factor, ABCDChip::caldata, ABCDConfig::calibMode, ABCDBasic::config, ABCDBasic::delay, ABCDConfig::edgeDetect, ABCDConfig::end, ABCDConfig::feedThrough, ABCDConfig::inputBypass, ABCDBasic::mask, ABCDConfig::mask, ABCDConfig::master, ABCDConfig::outputBypass, ABCDBasic::preamp, ABCDCaldata::rc_function, ABCDCaldata::rc_params, ABCDConfig::readoutMode, ABCDBasic::shaper, ABCDChip::target, ABCDChip::trim, ABCDConfig::trimRange, ABCDBasic::vcal, and ABCDBasic::vthr.

Referenced by writeConfiguration().

void SctData::ScanResultWriter::writeClass const string &    name,
OStream &    out
[static]
 

Definition at line 152 of file ScanResultWriter.cpp.

Referenced by writeConfiguration(), writeHeader(), and writeScanPoints().

void SctData::ScanResultWriter::writeConfiguration OStream &    out const [protected]
 

Definition at line 108 of file ScanResultWriter.cpp.

References ABCDModule::active, ABCDModule::chip, ABCDModule::groupId, scan_result_ptrs::header, N_SCT_CHIPS, ABCDModule::present, ABCDModule::pTTC, ABCDModule::rTTC, ABCDModule::rx, scanResult, ABCDModule::select, writeChipConfig(), and writeClass().

void SctData::ScanResultWriter::writeData OStream &    out const [protected]
 

Definition at line 145 of file ScanResultWriter.cpp.

References scan_result_ptrs::header, scanResult, and SctData::ScanDataWriter::writeData().

void SctData::ScanResultWriter::writeGuts OStream &    out const [protected]
 

void SctData::ScanResultWriter::writeHeader OStream &    out const [protected]
 

Definition at line 93 of file ScanResultWriter.cpp.

References scan_result_ptrs::header, SctData::ScanHeader::moduleName, SctData::ScanHeader::runNumber, SctData::ScanHeader::scanNumber, scanResult, and writeClass().

void SctData::ScanResultWriter::writeScanPoints OStream &    out const [protected]
 

Definition at line 98 of file ScanResultWriter.cpp.

References scan_result_ptrs::header, scan_result_ptrs::nErrorEvents, scan_result_ptrs::nEvents, scan_result_ptrs::points, scanResult, and writeClass().


Field Documentation

string SctData::ScanResultWriter::className [private]
 

Definition at line 59 of file ScanResultWriter.h.

Referenced by publish().

bool SctData::ScanResultWriter::rawInMap [static, private]
 

Definition at line 53 of file ScanResultWriter.cpp.

scan_result_ptrs* SctData::ScanResultWriter::scanResult [protected]
 

Definition at line 45 of file ScanResultWriter.h.

Referenced by writeConfiguration(), writeData(), writeHeader(), and writeScanPoints().


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:52 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3