BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawFile/include/RawFile/RawFileMerger.h
Go to the documentation of this file.
1#ifndef RAW_FILE_MERGER_H
2#define RAW_FILE_MERGER_H
3
4#include "RawFile/CgemIndexFile.h"
5#include "RawFile/RawDataMining.h"
6#include "RawFile/RawDataCache.h"
7
8class RawFileMerger final
9{
10public:
11 RawFileMerger() = delete;
12 RawFileMerger(const std::string& srcfile);
14
15 void setOutputDir(const std::string& dir) { m_destdir = dir; }
16
17 bool mergeWithIndexFile(const std::string& file);
18
19 uint32_t ignored() const { return m_ignored; }
20
21private:
22 bool openDestFile( char fcount );
23
24 char m_fcount{ '0' };
25 uint32_t m_ignored{ 0 };
26 CgemIndexFile* m_fidx{ nullptr };
27 RawDataMining* m_srcfile{ nullptr };
28 RawDataCache* m_cache{ nullptr };
29 std::string m_srcfname;
30 std::string m_destdir;
31 std::ofstream m_fs;
32};
33
34#endif
char * file
Definition DQA_TO_DB.cxx:16
bool mergeWithIndexFile(const std::string &file)
RawFileMerger()=delete
void setOutputDir(const std::string &dir)