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::PixieCrateReader Class Reference

#include <PixieCrateReader.h>

Inheritance diagram for DDAS::PixieCrateReader:
DDAS::CrateReader

Public Member Functions

 PixieCrateReader (unsigned crate, const std::vector< unsigned short > &slots)
 
virtual ~PixieCrateReader ()
 
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

This is a crate reader that reads the configuration of an entire crate from the Pixie/cPCI crate. Caveats:

Constructor & Destructor Documentation

DDAS::PixieCrateReader::PixieCrateReader ( unsigned  crate,
const std::vector< unsigned short > &  slots 
)

constructor Just initializes the base class:

Parameters
crate- id of the crate.
slots- Vector of slots.
DDAS::PixieCrateReader::~PixieCrateReader ( )
virtual

destructor Release the crate manager.

Member Function Documentation

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

createReader Creates a reader for a single slot. We just need to translate the slot number to a module id. The module id is the corresponding index in the m_slots vector.

Parameters
slot- slot number to create a reader for.
Returns
SettingsReader* - pointer to a dynamically created Pixie settings reader object.

Implements DDAS::CrateReader.


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