$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #include "otsdaq-core/DataManager/DataProducer.h" 00002 #include "otsdaq-core/ConfigurationInterface/ConfigurationManager.h" 00003 #include "otsdaq-core/DataManager/DataManager.h" 00004 #include "otsdaq-core/DataManager/DataManagerSingleton.h" 00005 00006 #include <iostream> 00007 #include <memory> 00008 using namespace ots; 00009 00010 #undef __MF_SUBJECT__ 00011 #define __MF_SUBJECT__ "producer-" << bufferUID_ << "-" << processorUID_ 00012 00013 //======================================================================================================================== 00014 DataProducer::DataProducer(std::string supervisorApplicationUID, 00015 std::string bufferUID, 00016 std::string processorUID, 00017 unsigned int bufferSize) 00018 : WorkLoop(processorUID) 00019 , DataProducerBase(supervisorApplicationUID, bufferUID, processorUID, bufferSize) 00020 { 00021 __COUT__ << "Constructed." << __E__; 00022 } 00023 00024 //======================================================================================================================== 00025 DataProducer::~DataProducer(void) { __COUT__ << "Destructed." << __E__; } 00026 00027 //======================================================================================================================== 00028 void DataProducer::startProcessingData(std::string runNumber) 00029 { 00030 __COUT__ << "startWorkLoop..." << std::endl; 00031 WorkLoop::startWorkLoop(); 00032 } 00033 00034 //======================================================================================================================== 00035 void DataProducer::stopProcessingData(void) 00036 { 00037 __COUT__ << "stopWorkLoop..." << std::endl; 00038 WorkLoop::stopWorkLoop(); 00039 }