|
NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <XMLCrateReader.h>
Classes | |
| struct | SlotInformation |
Public Member Functions | |
| XMLCrateReader (const char *configFile) | |
| virtual | ~XMLCrateReader () |
| virtual SettingsReader * | createReader (unsigned short slot) |
| unsigned short | getCrateId () const |
| unsigned | getEvtLen (unsigned short slot) |
| unsigned | getFifoThreshold (unsigned short slot) |
| bool | isInfinityClock (unsigned short slot) |
| double | getTimestampScale (unsigned short slot) |
| bool | isExternalClock (unsigned short slot) |
|
const std::map< unsigned short, SlotInformation > & | getSlotInformation () const |
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 |
This class specializes the CrateReader class to work with a set of XML specifications of the crate, modules and their settings. The top level is a crate xml file which is of the form
* <crate id="1"> * <slot number="2" ... configfile="/user/fox/configs/Ge.xml" /> * <slot number="5" ... configfile="/user/fox/configs/Ge-short-trace.xml /> * </crate> * *
I've only shown the <slot> attributes we care/check for. The other attributes at this time are:
| DDAS::XMLCrateReader::XMLCrateReader | ( | const char * | configFile | ) |
constructor Given the crate information file, process it and use the resulting information to fill in the base class attributes:
| configFile | - the crate configuration file. |
| std::invalid_argument | if there are errors:
|
|
virtual |
destructor just let the map destroy itself
|
virtual |
createReader Given a slot number:
| slot | - slot number. |
Implements DDAS::CrateReader.
| unsigned DDAS::XMLCrateReader::getEvtLen | ( | unsigned short | slot | ) |
getEvtLen Returns the event length for a slot.
| slot | - the slot number. |
| unsigned DDAS::XMLCrateReader::getFifoThreshold | ( | unsigned short | slot | ) |
getFifoThreshold Return the fifo threshold for a slot.
| slot | - slot number. |
| double DDAS::XMLCrateReader::getTimestampScale | ( | unsigned short | slot | ) |
getTimestampScale Returns the timestamp scale factor.
| slot | - slot number to use. |
| bool DDAS::XMLCrateReader::isExternalClock | ( | unsigned short | slot | ) |
isExternalClock
| slot | - slot number to check. |
| bool DDAS::XMLCrateReader::isInfinityClock | ( | unsigned short | slot | ) |
isInfinityClock
| slot | - slot to get the flag for. - Flag of whether or not to use infinity clock. |
1.8.8