NSCL DDAS
12.1-001
Support for XIA DDAS at FRIB
|
Production readout class for DDAS systems. More...
#include <DDASReadoutMain.h>
Public Member Functions | |
virtual void | SetupReadout (CExperiment *pExperiment) |
Setup the Readout. More... | |
virtual void | SetupScalers (CExperiment *pExperiment) |
Setup the scaler Readout. More... | |
virtual void | addCommands (CTCLInterpreter *pInterp) |
Used to add Tcl commands. See the CTCLObjectProcessor class. More... | |
virtual void | SetupRunVariables (CTCLInterpreter *pInterp) |
Setup run variables. More... | |
virtual void | SetupStateVariables (CTCLInterpreter *pInterp) |
Setup state variables. More... | |
Production readout class for DDAS systems.
DDASReadoutMain is the 'application' class for the production readout software for DDAS systems i.e. systems utilizing XIA digitizer modules. The application class has overridden and implemented several member functions from the CReadoutMain base class for use in this application.
These are:
For more information about how to tailor this code, see the SBS readout CReadoutMain and Skeleton classes.
|
virtual |
Used to add Tcl commands. See the CTCLObjectProcessor class.
pInterp | Pointer to CTCLInterpreter object that encapsulates the Tcl_Interp* of our main interpreter. |
Register the statistics command in addition to all the usual stuff from the base class.
|
virtual |
Setup the Readout.
pExperiment | Pointer to the experiment object. |
This function must define the trigger as well as the response of the program to triggers. A trigger is an object that describes when an event happens. Triggers are objects derived from CEventTrigger. In this case we use the CMyTrigger class to define the trigger object.
|
virtual |
Setup run variables.
pInterp | Pointer to CTCLInterpreter object that encapsulates the Tcl_Interp* of our main interpreter. |
A run variable is a Tcl variable whose value is periodically written to the output event stream. Run variables are intended to monitor things that can change in the middle of a run.
See also: SetupStateVariables
|
virtual |
Setup the scaler Readout.
pExperiment | Pointer to the experiment object. |
We simply use a timed trigger to read out scaler data at regular intervals. By default the scaler read interval is 16 seconds. This can be overridden using the environment variable SCALER_SECONDS
or by specifying a value using the -scalerseconds
option when invoking this program with ddasReadout
.
|
virtual |
Setup state variables.
pInterp | Pointer to CTCLInterpreter object that encapsulates the Tcl_Interp* of our main interpreter. |
A state variable is a Tcl variable whose value is logged whenever the run transitions to active. While the run is not halted, state variables are write protected. State variables are intended to log a property of the run. Examples of state variables created by the production readout framework are run and title which hold the run number, and the title.
See also: SetupRunVariables