1 #include "otsdaq-core/DataManager/DataProducer.h"
2 #include "otsdaq-core/DataManager/DataManagerSingleton.h"
3 #include "otsdaq-core/DataManager/DataManager.h"
4 #include "otsdaq-core/ConfigurationInterface/ConfigurationManager.h"
12 DataProducer::DataProducer(std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID,
unsigned int bufferSize)
14 ,
DataProcessor (supervisorApplicationUID, bufferUID, processorUID)
15 , bufferSize_ (bufferSize)
21 DataProducer::~DataProducer(
void)
26 void DataProducer::registerToBuffer(
void)
28 __MOUT__ <<
"\tProducerID: " << processorUID_ <<
" is registering to DataManager pointer: " << DataManagerSingleton::getInstance(supervisorApplicationUID_) << std::endl;
29 (DataManagerSingleton::getInstance(supervisorApplicationUID_))->registerProducer(bufferUID_,
this);
30 __MOUT__ <<
"\tProducerID: " << processorUID_ <<
"...registered" << std::endl;
34 void DataProducer::startProcessingData(std::string runNumber)
36 WorkLoop::startWorkLoop();
40 void DataProducer::stopProcessingData(
void)
42 WorkLoop::stopWorkLoop();