1 #ifndef _ots_RawDataSaverConsumerBase_h_
2 #define _ots_RawDataSaverConsumerBase_h_
4 #include "otsdaq/Configurable/Configurable.h"
5 #include "otsdaq/DataManager/DataConsumer.h"
16 std::string bufferUID,
17 std::string processorUID,
19 const std::string& configurationPath);
23 virtual void openFile(std::string runNumber);
24 virtual void closeFile(
void);
25 virtual void save(
const std::string& data);
26 virtual void writeHeader(
void) { ; }
27 virtual void writeFooter(
void) { ; }
28 virtual void writePacketHeader(
const std::string& )
33 virtual void writePacketFooter(
const std::string& ) { ; }
34 virtual void startProcessingData(std::string runNumber)
override;
35 virtual void stopProcessingData(
void)
override;
36 virtual bool workLoopThread(toolbox::task::WorkLoop* workLoop)
override;
37 virtual void fastRead(
void);
38 virtual void slowRead(
void);
40 std::ofstream outFile_;
43 std::map<std::string, std::string>* headerP_;
46 std::map<std::string, std::string> header_;
48 std::string filePath_;
49 std::string fileRadix_;
51 std::string currentRunNumber_;
52 unsigned int currentSubRunNumber_;