Last change
on this file since 12464 was 11893, checked in by tbretz, 13 years ago |
Implemented a new determination fo run-number after noon in the fadctrl; created the possibility to add the date to the raw-data path; allow to set the path as program option; for all this moved some code from the datalogger to DimWriteStatistics
|
File size:
667 bytes
|
Line | |
---|
1 | #ifndef FACT_DataWriteFits
|
---|
2 | #define FACT_DataWriteFits
|
---|
3 |
|
---|
4 | #include "DataProcessorImp.h"
|
---|
5 | #include "FitsFile.h"
|
---|
6 |
|
---|
7 | class Converter;
|
---|
8 |
|
---|
9 | class 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 |
|
---|
20 | public:
|
---|
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(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.