Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

bnet::RocWorkerApplication Class Reference

#include <RocWorkerApplication.h>

Collaboration diagram for bnet::RocWorkerApplication:
Collaboration graph
[legend]

Public Member Functions

 RocWorkerApplication ()
virtual bool CreateReadout (const char *portname, int portnumber)
virtual bool CreateCombiner (const char *name)
virtual std::string GetCombinerOutputName (const char *name)
virtual int ExecuteCommand (dabc::Command *cmd)
virtual bool AfterAppModulesStopped ()
virtual bool BeforeAppModulesDestroyed ()

Protected Types

enum  ECalibrationState { calNONE, calOFF, calON }

Protected Member Functions

bool SwitchCalibrationMode (bool on)

Protected Attributes

roc::BoardsVector fRocBrds
ECalibrationState fCalibrState
std::string fCombinerName
bool fDoMeasureADC

Detailed Description

Definition at line 23 of file RocWorkerApplication.h.


Member Enumeration Documentation

Enumerator:
calNONE 
calOFF 
calON 

Definition at line 52 of file RocWorkerApplication.h.


Constructor & Destructor Documentation

bnet::RocWorkerApplication::RocWorkerApplication (  ) 

Member Function Documentation

bool bnet::RocWorkerApplication::AfterAppModulesStopped (  )  [virtual]

Definition at line 139 of file RocWorkerApplication.cxx.

References calON, fCalibrState, and SwitchCalibrationMode().

bool bnet::RocWorkerApplication::BeforeAppModulesDestroyed (  )  [virtual]
bool bnet::RocWorkerApplication::CreateCombiner ( const char *  name  )  [virtual]
bool bnet::RocWorkerApplication::CreateReadout ( const char *  portname,
int  portnumber 
) [virtual]

Definition at line 89 of file RocWorkerApplication.cxx.

References fDoMeasureADC, fRocBrds, and roc::BoardsVector::numAdc().

int bnet::RocWorkerApplication::ExecuteCommand ( dabc::Command *  cmd  )  [virtual]
std::string bnet::RocWorkerApplication::GetCombinerOutputName ( const char *  name  )  [virtual]

Definition at line 113 of file RocWorkerApplication.cxx.

bool bnet::RocWorkerApplication::SwitchCalibrationMode ( bool  on  )  [protected]

Due to optic number of ports can be less than number of ROCs specified in configuration This function returns port number for specified ROC sequence number from configuration For all optic connection return the only port number, which connected with abb device

Definition at line 146 of file RocWorkerApplication.cxx.

References roc::BoardsVector::autoped_switch(), calOFF, calON, fCalibrState, fCombinerName, fDoMeasureADC, fRocBrds, and roc::BoardsVector::readoutExtraMessages().

Referenced by AfterAppModulesStopped(), and ExecuteCommand().


Field Documentation

List of boards for put/get operations

Definition at line 56 of file RocWorkerApplication.h.

Referenced by AfterAppModulesStopped(), and SwitchCalibrationMode().


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