NSCL DDAS
12.1-001
Support for XIA DDAS at FRIB
|
Provides a statistics command processor that overrides the SBS one. More...
#include <CDDASStatisticsCommand.h>
Public Member Functions | |
CDDASStatisticsCommand (CTCLInterpreter &interp, const char *command, CMyEventSegment *pSeg, std::vector< CMyScaler * > &scalers) | |
Constructor. More... | |
virtual | ~CDDASStatisticsCommand () |
Destructor. More... | |
int | operator() (CTCLInterpreter &interp, std::vector< CTCLObject > &objv) |
Called to execute the Tcl command. More... | |
Provides a statistics command processor that overrides the SBS one.
We need to override because the concept of a trigger within DDAS is completely different than the triggering used to invoke the readouts. For DDAS readout, the triggering information comes from the module pseudo scalers. Thus we'll function by grabbing byte statistics from CMyEventSegment and trigger information from the collection of CMyScaler objects.
CDDASStatisticsCommand::CDDASStatisticsCommand | ( | CTCLInterpreter & | interp, |
const char * | command, | ||
CMyEventSegment * | pSeg, | ||
std::vector< CMyScaler * > & | scalers | ||
) |
Constructor.
interp | Interpreter on which the command is registered. |
command | Name of the command 'should/must' be "statistics" to smoothly replace the SBSReaout framework command. |
pSeg | Pointer to the event segment which provides byte counters. |
scalers | Reference to the array of scaler segments that provide the individual module trigger statistics information. |
|
virtual |
Destructor.
int CDDASStatisticsCommand::operator() | ( | CTCLInterpreter & | interp, |
std::vector< CTCLObject > & | objv | ||
) |
Called to execute the Tcl command.
interp | references The interpreter executing the command. |
objv | Command line parameters. |
TCL_OK | Successful completion. |
TCL_ERROR | Failure. Human readable reason is in the intepreter result. |