#include <DimServerCommandHandler.h>
Public Member Functions | |
DimServerCommandHandler (char side) | |
~DimServerCommandHandler (void) | |
void | setJamPlayerFilename (string filename) |
int | PoolingFunction () |
void | SendHearthbit () |
Protected Member Functions | |
void | commandHandler () |
Callback method to handle all DIM commands. | |
UInt32 | getRouterAddressFromCommand (const char *command) |
UInt32 | getLrxAdressFromCommand (const char *command) |
gets VME the address of a LRX register according to command string | |
UInt32 | getBusyAddressFromCommand (const char *command) |
gets VME the address of the busy box acording to command string | |
void | argumentError () |
int | RegisterCmdHandlerRt (void) |
comand handler for register access in the router | |
int | RegisterCmdHandlerLRx (void) |
command handler for router access in the link receiver | |
int | RegisterCmdHandlerBusy (void) |
command handler for register access in the busy card | |
int | InitCmdHandler (void) |
command handler for initializing things, is this needed?! | |
int | JTAGCmdHandler (void) |
command handler for jtag access in the halfstaves | |
int | ConfCmdHandler (void) |
command handler for configuyration issues (this is used for global router access also= | |
int | ROOTCmdHandler (void) |
command handler for the SPD analisys tool | |
int | HSConfCmdHandler (void) |
command handler for halfstave configuration commands | |
int | ScanCmdHandler (void) |
scan command handler | |
int | StringCmdHandler (void) |
Protected Attributes | |
DimCommand * | cmdSetRootChNumber |
integer dim command for the analisys tool channel number (this can be removed) | |
DimCommand * | cmdSetChNumber |
integer dim command to receive the channel number for PVSS operation | |
DimCommand * | cmdRxCommand |
string dim commad to handle the commands received from PVSS | |
DimCommand * | cmdDataIn |
integer array (32 bit) dim command to receive the data for the commands | |
DimCommand * | cmdSetOffset |
integer (32 bit) dim command for offset (not really used either) | |
string | jamPlayerExecutable |
UInt32 | DetSide |
keeps the detector side 0 = A 1 = C | |
DimServerServiceHandler * | SRV |
Dim service handler to update the data to PVSS. | |
PoolingOperationControl * | POOL |
takes care of all pooling operations | |
SPDConfig * | SPD |
SPD config containing halfstaves and routers. | |
UInt32 | commNumb |
counts the number of commands | |
Int8 | RootChNumber |
keeps the analisys tool channel number | |
Int8 | ChNumber |
keeps the channel number from the dim command | |
UInt32 | Offset |
keeps the offset (a VME thing) its now deprecated | |
UInt32 | dataSize |
keeps the size of the data array | |
UInt32 * | DataIn |
keeps the data in array, this is deleted and reallocated in the receiving of the DimCommand cmdDataIn | |
UInt32 * | DataOut |
Data out array. | |
UInt32 * | DataStream |
data for the analisys tool deprecated | |
char * | CommString |
Command name input string. | |
char * | CommStringOriginal |
keeps an copy of the command name (now its here only for historical reasons) | |
spdLogger * | logger |
logger instance | |
unsigned | runNumber |
It works basically as the top level class containing instance of all main subclasses and managing commands. It uses the commandHandler method inherit from DimServer to get the data from PVSS.
DimServerCommandHandler::DimServerCommandHandler | ( | char | side | ) |
DimServerCommandHandler::~DimServerCommandHandler | ( | void | ) |
void DimServerCommandHandler::commandHandler | ( | void | ) | [protected] |
Callback method to handle all DIM commands.
UInt32 DimServerCommandHandler::getRouterAddressFromCommand | ( | const char * | command | ) | [protected] |
UInt32 DimServerCommandHandler::getLrxAdressFromCommand | ( | const char * | command | ) | [protected] |
gets VME the address of a LRX register according to command string
UInt32 DimServerCommandHandler::getBusyAddressFromCommand | ( | const char * | command | ) | [protected] |
gets VME the address of the busy box acording to command string
void DimServerCommandHandler::argumentError | ( | ) | [protected] |
method to be used when the number of arguments is not correct it will update all the DIM services informing the PVSS side of the error
int DimServerCommandHandler::RegisterCmdHandlerRt | ( | void | ) | [protected] |
comand handler for register access in the router
int DimServerCommandHandler::RegisterCmdHandlerLRx | ( | void | ) | [protected] |
command handler for router access in the link receiver
int DimServerCommandHandler::RegisterCmdHandlerBusy | ( | void | ) | [protected] |
command handler for register access in the busy card
int DimServerCommandHandler::InitCmdHandler | ( | void | ) | [protected] |
command handler for initializing things, is this needed?!
int DimServerCommandHandler::JTAGCmdHandler | ( | void | ) | [protected] |
command handler for jtag access in the halfstaves
int DimServerCommandHandler::ConfCmdHandler | ( | void | ) | [protected] |
command handler for configuyration issues (this is used for global router access also=
int DimServerCommandHandler::ROOTCmdHandler | ( | void | ) | [protected] |
command handler for the SPD analisys tool
int DimServerCommandHandler::HSConfCmdHandler | ( | void | ) | [protected] |
command handler for halfstave configuration commands
int DimServerCommandHandler::ScanCmdHandler | ( | void | ) | [protected] |
scan command handler
int DimServerCommandHandler::StringCmdHandler | ( | void | ) | [protected] |
New command decoder function that will implement a new way of parsing strings this function will expect to receive a white space separated string first the command and then all the arguments ex: "command arg1 arg2 ... argn" the prefix for this command is "STR_"
void DimServerCommandHandler::setJamPlayerFilename | ( | string | filename | ) |
Setter for the jamplayer external executable filename
int DimServerCommandHandler::PoolingFunction | ( | ) | [inline] |
makes all pooling operations in this loop
void DimServerCommandHandler::SendHearthbit | ( | ) | [inline] |
sends the heartbit to PVSS
DimCommand* DimServerCommandHandler::cmdSetRootChNumber [protected] |
integer dim command for the analisys tool channel number (this can be removed)
DimCommand* DimServerCommandHandler::cmdSetChNumber [protected] |
integer dim command to receive the channel number for PVSS operation
DimCommand* DimServerCommandHandler::cmdRxCommand [protected] |
string dim commad to handle the commands received from PVSS
DimCommand* DimServerCommandHandler::cmdDataIn [protected] |
integer array (32 bit) dim command to receive the data for the commands
DimCommand* DimServerCommandHandler::cmdSetOffset [protected] |
integer (32 bit) dim command for offset (not really used either)
string DimServerCommandHandler::jamPlayerExecutable [protected] |
The internal member storing the jam player executable filename The fed server will call this file as an external executable on the program router command
UInt32 DimServerCommandHandler::DetSide [protected] |
keeps the detector side 0 = A 1 = C
DimServerServiceHandler* DimServerCommandHandler::SRV [protected] |
Dim service handler to update the data to PVSS.
PoolingOperationControl* DimServerCommandHandler::POOL [protected] |
takes care of all pooling operations
SPDConfig* DimServerCommandHandler::SPD [protected] |
SPD config containing halfstaves and routers.
UInt32 DimServerCommandHandler::commNumb [protected] |
counts the number of commands
Int8 DimServerCommandHandler::RootChNumber [protected] |
keeps the analisys tool channel number
Int8 DimServerCommandHandler::ChNumber [protected] |
keeps the channel number from the dim command
UInt32 DimServerCommandHandler::Offset [protected] |
keeps the offset (a VME thing) its now deprecated
UInt32 DimServerCommandHandler::dataSize [protected] |
keeps the size of the data array
UInt32* DimServerCommandHandler::DataIn [protected] |
keeps the data in array, this is deleted and reallocated in the receiving of the DimCommand cmdDataIn
UInt32* DimServerCommandHandler::DataOut [protected] |
Data out array.
UInt32* DimServerCommandHandler::DataStream [protected] |
data for the analisys tool deprecated
char* DimServerCommandHandler::CommString [protected] |
Command name input string.
char* DimServerCommandHandler::CommStringOriginal [protected] |
keeps an copy of the command name (now its here only for historical reasons)
spdLogger* DimServerCommandHandler::logger [protected] |
logger instance
unsigned DimServerCommandHandler::runNumber [protected] |
Variable to store the run number of a command