16 #ifndef HADAQ_BnetMasterModule
17 #define HADAQ_BnetMasterModule
19 #ifndef DABC_ModuleAsync
80 void AddItem(std::vector<std::string> &items, std::vector<std::string> &nodes,
const std::string &item,
const std::string &node);
82 void PreserveLastCalibr(
bool do_write =
false,
double quality = 1.,
unsigned runid = 0);
Represents command with its arguments.
Base class for user-derived code, implementing event-processing.
Master monitor for BNet components.
void PreserveLastCalibr(bool do_write=false, double quality=1., unsigned runid=0)
double fCtrlEvents
accumulated events rate
virtual int ExecuteCommand(dabc::Command cmd)
Main method where commands are executed.
dabc::TimeStamp fLastRateTm
last time ratemeter was updated
dabc::TimeStamp fNewRunTm
time when last control count was send
int fRefreshCnt
currently running refresh command
int fCtrlInpNodesCnt
count of recognized input nodes
int fCtrlCnt
how many control replies are awaited
unsigned fCtrlRunId
received run id from builders
int fCmdReplies
number of replies for current command
double fCmdQuality
current command quality, used when creating calibration
double fCtrlStateQuality
<0.3 error, <0.7 warning, more is ok
virtual bool ReplyCommand(dabc::Command cmd)
Reimplement this method to react on command reply Return true if command can be destroyed by framewor...
uint64_t fCurrentData
current value
uint64_t fTotalData
last value
unsigned fMaxRunSize
maximal run size in MB
uint64_t fTotalLost
last value
uint64_t fTotalEvents
last value
int fCtrlBldNodesExpect
count of expected builder nodes
uint64_t fCurrentLost
current value
BnetMasterModule(const std::string &name, dabc::Command cmd=nullptr)
uint64_t fCurrentEvents
current value
virtual void BeforeModuleStart()
std::string fCtrlStateName
current name
dabc::Command fCurrentRefreshCmd
currently running cmd to refresh nodes qualities
std::vector< std::string > fLastBuilders
last list of builder nodes
int fCtrlErrorCnt
number of consequent control errors
int fCtrlSzLimit
0 - do nothing, 1 - start checking (after start run), 2 - exced
virtual void ProcessTimerEvent(unsigned timer)
Method called by framework when timer event is produced.
unsigned fCalibrRunId
last calibration runid
int fCtrlId
counter for control requests
int fSameBuildersCnt
how many time same number of inputs was detected
dabc::Command fCurrentFileCmd
currently running cmd to switch files
std::string fCtrlRunPrefix
received run prefix from builders
bool fCtrlError
if there are error during current communication loop
dabc::TimeStamp fCtrlTm
time when last control count was send
int fCtrlBldNodesCnt
count of recognized builder nodes
int fCtrlInpNodesExpect
count of expected input nodes
dabc::Command fInitRunCmd
command used to start run at very beginning, uses delay technique
bool fControl
when true, master actively controls BNET nodes and switches to new RUNs
double fCtrlData
accumulated data rate
int fRefreshReplies
number of replies for current command
void AddItem(std::vector< std::string > &items, std::vector< std::string > &nodes, const std::string &item, const std::string &node)
double fCtrlLost
accumulated lost rate
int fCmdCnt
just counter to avoid mismatch
Support for HADAQ - HADES DAQ
Class for acquiring and holding timestamps.