FACT++  1.0
DataWriteFits.h
Go to the documentation of this file.
1 #ifndef FACT_DataWriteFits
2 #define FACT_DataWriteFits
3 
4 #include "DataProcessorImp.h"
5 #include "FitsFile.h"
6 
7 #include <array>
8 
9 class Converter;
10 
12 {
14 
16 
17  std::array<uint32_t, 8> fTriggerCounter;
18 
19  uint32_t fTstart[2];
20  uint32_t fTstop[2];
21 
22  template <typename T>
23  void WriteKey(const string &name, const int idx, const T &value, const string &comment);
24 
25  bool WriteFooter();
26 
27  virtual int GetDrsStep() const { return -1; }
28 
29 public:
30  DataWriteFits(const std::string path, uint64_t night, uint32_t runid, MessageImp &imp) :
31  DataProcessorImp(path, night, runid, imp), fConv(0), fFile(imp)
32  {
33  }
34 
36 
37  bool Open(const RUN_HEAD &h, const FAD::RunDescription &d);
38  bool WriteEvt(const EVT_CTRL2 &);
39  bool Close(const EVT_CTRL2 &);
40 };
41 
42 #endif
The base implementation of a distributed messaging system.
Definition: MessageImp.h:10
uint32_t fTstop[2]
Definition: DataWriteFits.h:20
virtual int GetDrsStep() const
Definition: DataWriteFits.h:27
bool Close(const EVT_CTRL2 &)
void WriteKey(const string &name, const int idx, const T &value, const string &comment)
Definition: FAD.h:92
FitsFile fFile
Definition: DataWriteFits.h:15
DataWriteFits(const std::string path, uint64_t night, uint32_t runid, MessageImp &imp)
Definition: DataWriteFits.h:30
Converter * fConv
Definition: DataWriteFits.h:13
FITS writter for the FACT project.
Definition: FitsFile.h:9
bool Open(const RUN_HEAD &h, const FAD::RunDescription &d)
uint32_t fTstart[2]
Definition: DataWriteFits.h:19
bool WriteEvt(const EVT_CTRL2 &)
A compiler for the DIM data format string.
Definition: Converter.h:16
std::array< uint32_t, 8 > fTriggerCounter
Definition: DataWriteFits.h:17