source: trunk/FACT++/src/DataWriteFits.h@ 12491

Last change on this file since 12491 was 12478, checked in by tbretz, 13 years ago
Added RunDescription as argument to Open
File size: 703 bytes
Line 
1#ifndef FACT_DataWriteFits
2#define FACT_DataWriteFits
3
4#include "DataProcessorImp.h"
5#include "FitsFile.h"
6
7class Converter;
8
9class DataWriteFits : public DataProcessorImp
10{
11 Converter *fConv;
12
13 FitsFile fFile;
14
15 template <typename T>
16 void WriteKey(const string &name, const int idx, const T &value, const string &comment);
17
18 bool WriteFooter(RUN_TAIL *rt);
19
20public:
21 DataWriteFits(const std::string path, uint32_t runid, MessageImp &imp) :
22 DataProcessorImp(path, runid, imp), fConv(0), fFile(imp)
23 {
24 }
25
26 ~DataWriteFits();
27
28 bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
29 bool WriteEvt(EVENT *e);
30 bool Close(RUN_TAIL *rt = 0);
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.