NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | List of all members
DDAS::SetFileCrateReader Class Reference

#include <SetFileCrateReader.h>

Inheritance diagram for DDAS::SetFileCrateReader:
DDAS::CrateReader

Public Member Functions

 SetFileCrateReader (const char *setFile, unsigned crateId, std::vector< unsigned short > slots, std::vector< std::string > varFiles, std::vector< unsigned short > MHz)
 
virtual SettingsReadercreateReader (unsigned short slot)
 
- Public Member Functions inherited from DDAS::CrateReader
 CrateReader (unsigned crate, const std::vector< unsigned short > &slots)
 
virtual ~CrateReader ()
 
virtual Crate readCrate ()
 

Additional Inherited Members

- Protected Attributes inherited from DDAS::CrateReader
std::vector< unsigned short > m_slots
 
unsigned m_crateId
 

Detailed Description

Provides a crate readerthat can read the module settings for a crate from a set file. Set files don't, by themselves, provide sufficient information to read them into a ModuleSettings struct. In addtion we need the digitizer speed and a .VAR file that describes the layout of DSP Parameters in memory. These are per module items. The .set file, however is a per crate item...as we use it here.

Constructor & Destructor Documentation

DDAS::SetFileCrateReader::SetFileCrateReader ( const char *  setFile,
unsigned  crateId,
std::vector< unsigned short >  slots,
std::vector< std::string >  varFiles,
std::vector< unsigned short >  MHz 
)

constructor

  • Construct the base class passing our slot map vector.
  • Build the maps for the var file an speeds.
Parameters
crateId- Id of the crate.
slots- map of slots to read.
varFiles- vector of corresponding var files.
MHz- Vector of corresponding speeds.

Member Function Documentation

SettingsReader * DDAS::SetFileCrateReader::createReader ( unsigned short  slot)
virtual

createReader Create the reader for a slot.

Parameters
slot- slot number to read.
Returns
SettingsReader* - pointer to the new'd SetFileReader object.

Implements DDAS::CrateReader.


The documentation for this class was generated from the following files: