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

#include <PixieCrateWriter.h>

Inheritance diagram for DDAS::PixieCrateWriter:
DDAS::CrateWriter

Public Member Functions

 PixieCrateWriter (const Crate &settings)
 
virtual ~PixieCrateWriter ()
 
virtual void startCrate (int id, const std::vector< unsigned short > &slots)
 
virtual void endCrate (int id, const std::vector< unsigned short > &slots)
 
virtual SettingsWritergetWriter (unsigned short slotNum)
 
- Public Member Functions inherited from DDAS::CrateWriter
 CrateWriter (const Crate &settings)
 
virtual void write ()
 

Additional Inherited Members

- Protected Attributes inherited from DDAS::CrateWriter
Crate m_settings
 

Detailed Description

Crate writer that provides strategy methods to support writing a crate full of Pixie16 digitizers. This software uses a CrateManager to ensure the API is initialized and that the digitizer DSP parameter address maps get loaded.

Constructor & Destructor Documentation

DDAS::PixieCrateWriter::PixieCrateWriter ( const Crate settings)

constructor Construct the crate writer. We just pass the settings on to the base class.

Parameters
settings- crate settings.
DDAS::PixieCrateWriter::~PixieCrateWriter ( )
virtual

destructor ensure the crate manager is destroyed. That does an exit system.

Member Function Documentation

void DDAS::PixieCrateWriter::endCrate ( int  id,
const std::vector< unsigned short > &  slots 
)
virtual

endCrate ALl modules are now programmed with their crate ids. The crate manager is also deleted, which does a Pixie16ExitSystem.

Parameters
id- the crate id.
slots- the slot map.

Implements DDAS::CrateWriter.

SettingsWriter * DDAS::PixieCrateWriter::getWriter ( unsigned short  slot)
virtual

getWriter Produce a ModuleWriter which will write the settings to a module. Note that we'll write the slotid and the module id parameters directly ourselves.

Parameters
slot- the slot number to write.
Note
the crate manager must have been instantiated already.

Implements DDAS::CrateWriter.

void DDAS::PixieCrateWriter::startCrate ( int  id,
const std::vector< unsigned short > &  slots 
)
virtual

startCrate Called before the crate is written. Save the crate id. Save the slots so we can compute ids. Create the crate manager.

Parameters
id- the crate id.
slots- The slot map.

Implements DDAS::CrateWriter.


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