source: trunk/FACT++/src/DataWriteFits2.h@ 13827

Last change on this file since 13827 was 12997, checked in by tbretz, 13 years ago
Data writer using our own fits streamer class.
File size: 742 bytes
Line 
1#ifndef FACT_DataWriteFits2
2#define FACT_DataWriteFits2
3
4#include "DataProcessorImp.h"
5#include "externals/ofits.h"
6
7#include <array>
8
9class DataWriteFits2 : public DataProcessorImp
10{
11 std::ofits fFile;
12
13 std::array<uint32_t, 8> fTriggerCounter;
14
15 uint32_t fTstart[2];
16 uint32_t fTstop[2];
17
18 void WriteHeader(const RUN_HEAD* h, const FAD::RunDescription &d);
19 void WriteFooter(RUN_TAIL *rt);
20
21 virtual int GetDrsStep() const { return -1; }
22
23public:
24 DataWriteFits2(const std::string path, uint32_t runid, MessageImp &imp) :
25 DataProcessorImp(path, runid, imp)
26 {
27 }
28
29 bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
30 bool WriteEvt(EVENT *e);
31 bool Close(RUN_TAIL *rt = 0);
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.