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

Last change on this file since 20086 was 18982, checked in by tbretz, 7 years ago
DrsCalibration is a struct not a class.
File size: 981 bytes
Line 
1#ifndef FACT_DataWriteFits2
2#define FACT_DataWriteFits2
3
4#include "DataProcessorImp.h"
5
6#include <array>
7
8class ofits;
9
10struct DrsCalibration;
11
12class DataWriteFits2 : public DataProcessorImp
13{
14 std::shared_ptr<ofits> fFile;
15
16 std::array<uint32_t, 8> fTriggerCounter;
17
18 uint32_t fTstart[2];
19 uint32_t fTstop[2];
20
21 void WriteHeader(const RUN_HEAD &h, const FAD::RunDescription &d);
22 void WriteFooter();
23
24 virtual int GetDrsStep() const { return -1; }
25
26public:
27 DataWriteFits2(const std::string &path, uint64_t night, uint32_t runid, MessageImp &imp);
28 DataWriteFits2(const std::string &path, uint64_t night, uint32_t runid, const DrsCalibration &cal, MessageImp &imp);
29
30 bool Open(const RUN_HEAD &h, const FAD::RunDescription &d);
31 bool WriteEvt(const EVT_CTRL2 &e);
32 bool Close(const EVT_CTRL2 &);
33
34 Time GetTstart() const { return Time(fTstart[0], fTstart[1]); }
35 Time GetTstop() const { return Time(fTstop[0], fTstop[1]); }
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.