#include <PixieCrateWriter.h>
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.
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.
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: