1 #include "otsdaq/DataProcessorPlugins/RawDataVisualizerConsumer.h"
3 #include "otsdaq/Macros/CoutMacros.h"
4 #include "otsdaq/Macros/ProcessorPluginMacros.h"
5 #include "otsdaq/MessageFacility/MessageFacility.h"
10 RawDataVisualizerConsumer::RawDataVisualizerConsumer(std::string supervisorApplicationUID,
11 std::string bufferUID,
12 std::string processorUID,
14 const std::string& configurationPath)
16 ,
DataConsumer(supervisorApplicationUID, bufferUID, processorUID, LowConsumerPriority)
17 ,
Configurable(theXDAQContextConfigTree, configurationPath)
22 RawDataVisualizerConsumer::~RawDataVisualizerConsumer(
void) {}
25 void RawDataVisualizerConsumer::startProcessingData(std::string runNumber) { DataConsumer::startProcessingData(runNumber); }
28 void RawDataVisualizerConsumer::stopProcessingData(
void) { DataConsumer::stopProcessingData(); }
31 bool RawDataVisualizerConsumer::workLoopThread(toolbox::task::WorkLoop* )
33 __COUT__ << DataProcessor::processorUID_ <<
" running, because workloop: " << WorkLoop::continueWorkLoop_ << std::endl;
35 return WorkLoop::continueWorkLoop_;
39 void RawDataVisualizerConsumer::fastRead(
void)
43 if(DataConsumer::read(dataP_, headerP_) < 0)
48 __COUT__ << DataProcessor::processorUID_ <<
" UID: " << supervisorApplicationUID_ << std::endl;
55 DataConsumer::setReadSubBuffer<std::string, std::map<std::string, std::string>>();
59 void RawDataVisualizerConsumer::slowRead(
void)
62 if(DataConsumer::read(data_, header_) < 0)
67 __MOUT__ << DataProcessor::processorUID_ <<
" UID: " << supervisorApplicationUID_ << std::endl;