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