Warning, file /coresoftware/offline/framework/phoolraw/PHRawOManager.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003 #ifndef PHOOLRAW_PHRAWOMANAGER_H
0004 #define PHOOLRAW_PHRAWOMANAGER_H
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 #include <phool/PHIOManager.h>
0033
0034 #include <Event/phenixTypes.h>
0035
0036 #include <string>
0037
0038 class PHCompositeNode;
0039 class PHRawDataNode;
0040 class oBuffer;
0041
0042 class PHRawOManager : public PHIOManager
0043 {
0044 public:
0045 PHRawOManager() = default;
0046 PHRawOManager(const std::string &, const int run = 0, const int bufl = 100000, const int evtl = -1, const int complvl = 3);
0047 virtual ~PHRawOManager();
0048
0049 bool setFile(const std::string &, const int setRun, const int setBufl, const int setEvtl, const int complvl);
0050
0051 virtual void closeFile();
0052 virtual bool write(PHCompositeNode *);
0053 bool write(PHRawDataNode *);
0054
0055 virtual void print() const;
0056
0057 private:
0058 int filedesc {-1};
0059 PHDWORD *memBuffer {nullptr};
0060 oBuffer *fileBuffer {nullptr};
0061 int runNumber {0};
0062 int bufferSize {0};
0063 int eventLength {0};
0064 int compressionLevel {0};
0065 };
0066
0067 #endif