source: branches/fscctrl_safety_limits/src/DataWriteFits2.h@ 19166

Last change on this file since 19166 was 17329, checked in by tbretz, 11 years ago
Removed trigger counter - this is now done globally; adapted function calls to get access to the new information.
File size: 978 bytes
Line 
1#ifndef FACT_DataWriteFits2
2#define FACT_DataWriteFits2
3
4#include "DataProcessorImp.h"
5
6#include <array>
7
8class ofits;
9
10class 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.