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

Last change on this file since 11794 was 11743, checked in by tbretz, 13 years ago
Initialize fConv to 0.
File size: 637 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(uint32_t runid, MessageImp &imp) :
22 DataProcessorImp(runid, imp), fConv(0), fFile(imp)
23 {
24 }
25
26 ~DataWriteFits();
27
28 bool Open(RUN_HEAD* h);
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.