1 #include "otsdaq/DataProcessorPlugins/OtsDataSaverConsumer.h"
2 #include "otsdaq/Macros/ProcessorPluginMacros.h"
7 OtsDataSaverConsumer::OtsDataSaverConsumer(std::string supervisorApplicationUID,
9 std::string processorUID,
11 const std::string& configurationPath)
17 OtsDataSaverConsumer::~OtsDataSaverConsumer(
void) {}
20 void OtsDataSaverConsumer::writeHeader(
void) {}
24 void OtsDataSaverConsumer::writePacketHeader(
const std::string& data)
26 unsigned char quadWordsCount = (data.length() - 2) / 8;
27 outFile_.write((
char*)&quadWordsCount, 1);
34 unsigned char seqId = data[1];
35 __CFG_COUT__ <<
"quadcount: " << quadWordsCount <<
" packetType: " << data[0] <<
" sequence id: " << seqId <<
" last: " << lastSeqId_ << __E__;
36 if(!(lastSeqId_ + 1 == seqId || (lastSeqId_ == 255 && seqId == 0)))
38 __CFG_COUT__ <<
"?????? NOOOO Missing Packets: " << (
unsigned int)lastSeqId_ <<
" v " << (
unsigned int)seqId << __E__;