otsdaq  v2_05_02_indev
DataProducer.cc
1 #include "otsdaq/DataManager/DataProducer.h"
2 #include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
3 #include "otsdaq/DataManager/DataManager.h"
4 #include "otsdaq/DataManager/DataManagerSingleton.h"
5 
6 #include <iostream>
7 #include <memory>
8 using namespace ots;
9 
10 #undef __MF_SUBJECT__
11 #define __MF_SUBJECT__ "Producer"
12 #define mfSubject_ (std::string("Producer-") + bufferUID_ + "-" + processorUID_)
13 
14 //==============================================================================
15 DataProducer::DataProducer(std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, unsigned int bufferSize)
16  : WorkLoop(processorUID), DataProducerBase(supervisorApplicationUID, bufferUID, processorUID, bufferSize)
17 {
18  __GEN_COUT__ << "Constructed." << __E__;
19 }
20 
21 //==============================================================================
22 DataProducer::~DataProducer(void) { __GEN_COUT__ << "Destructed." << __E__; }
23 
24 //==============================================================================
25 void DataProducer::startProcessingData(std::string /*runNumber*/)
26 {
27  __GEN_COUT__ << "startWorkLoop..." << std::endl;
28  WorkLoop::startWorkLoop();
29 }
30 
31 //==============================================================================
32 void DataProducer::stopProcessingData(void)
33 {
34  __GEN_COUT__ << "stopWorkLoop..." << std::endl;
35  WorkLoop::stopWorkLoop();
36 }