NSCL DDAS  12.1-001
Support for XIA DDAS at FRIB
Public Member Functions | List of all members
CDDASStatisticsCommand Class Reference

Provides a statistics command processor that overrides the SBS one. More...

#include <CDDASStatisticsCommand.h>

Inheritance diagram for CDDASStatisticsCommand:
Inheritance graph
[legend]
Collaboration diagram for CDDASStatisticsCommand:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CDDASStatisticsCommand()

CDDASStatisticsCommand::CDDASStatisticsCommand ( CTCLInterpreter &  interp,
const char *  command,
CMyEventSegment pSeg,
std::vector< CMyScaler * > &  scalers 
)

Constructor.

Parameters
interpInterpreter on which the command is registered.
commandName of the command 'should/must' be "statistics" to smoothly replace the SBSReaout framework command.
pSegPointer to the event segment which provides byte counters.
scalersReference to the array of scaler segments that provide the individual module trigger statistics information.

◆ ~CDDASStatisticsCommand()

CDDASStatisticsCommand::~CDDASStatisticsCommand ( )
virtual

Destructor.

Member Function Documentation

◆ operator()()

int CDDASStatisticsCommand::operator() ( CTCLInterpreter &  interp,
std::vector< CTCLObject > &  objv 
)

Called to execute the Tcl command.

Parameters
interpreferences The interpreter executing the command.
objvCommand line parameters.
Returns
Status of the command.
Return values
TCL_OKSuccessful completion.
TCL_ERRORFailure. Human readable reason is in the intepreter result.

The documentation for this class was generated from the following files: