NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <SetFileCrateReader.h>
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 SettingsReader * | createReader (unsigned short slot) |
![]() | |
CrateReader (unsigned crate, const std::vector< unsigned short > &slots) | |
virtual | ~CrateReader () |
virtual Crate | readCrate () |
Additional Inherited Members | |
![]() | |
std::vector< unsigned short > | m_slots |
unsigned | m_crateId |
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.
DDAS::SetFileCrateReader::SetFileCrateReader | ( | const char * | setFile, |
unsigned | crateId, | ||
std::vector< unsigned short > | slots, | ||
std::vector< std::string > | varFiles, | ||
std::vector< unsigned short > | MHz | ||
) |
constructor
crateId | - Id of the crate. |
slots | - map of slots to read. |
varFiles | - vector of corresponding var files. |
MHz | - Vector of corresponding speeds. |
|
virtual |
createReader Create the reader for a slot.
slot | - slot number to read. |
Implements DDAS::CrateReader.