Last change
on this file since 12650 was 12619, checked in by tbretz, 13 years ago |
Implemented writing to the header whether a corresponding drs-calib file should exist.
|
File size:
872 bytes
|
Line | |
---|
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 |
|
---|
11 | class DataWriteFits : public DataProcessorImp
|
---|
12 | {
|
---|
13 | Converter *fConv;
|
---|
14 |
|
---|
15 | FitsFile fFile;
|
---|
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(RUN_TAIL *rt);
|
---|
26 |
|
---|
27 | virtual bool IsDrsCalib() const { return false; }
|
---|
28 |
|
---|
29 | public:
|
---|
30 | DataWriteFits(const std::string path, uint32_t runid, MessageImp &imp) :
|
---|
31 | DataProcessorImp(path, runid, imp), fConv(0), fFile(imp)
|
---|
32 | {
|
---|
33 | }
|
---|
34 |
|
---|
35 | ~DataWriteFits();
|
---|
36 |
|
---|
37 | bool Open(const RUN_HEAD* h, const FAD::RunDescription &d);
|
---|
38 | bool WriteEvt(EVENT *e);
|
---|
39 | bool Close(RUN_TAIL *rt = 0);
|
---|
40 | };
|
---|
41 |
|
---|
42 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.