Last change
on this file since 14751 was 14483, checked in by tbretz, 12 years ago |
Make cint happy for newer root versions.
|
File size:
1.5 KB
|
Line | |
---|
1 | #ifndef MARS_MReportFitsRead
|
---|
2 | #define MARS_MReportFitsRead
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MTime
|
---|
8 | #include "MTime.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | #ifdef __CINT__
|
---|
12 | #define int32_t Int_t
|
---|
13 | #else
|
---|
14 | #include <stdint.h>
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | #include <map>
|
---|
18 |
|
---|
19 | namespace std
|
---|
20 | {
|
---|
21 | class fits;
|
---|
22 | }
|
---|
23 | class THashTable;
|
---|
24 |
|
---|
25 | class MTime;
|
---|
26 | class MReport;
|
---|
27 | class MReportHelp;
|
---|
28 |
|
---|
29 | class MReportFitsRead : public MTask
|
---|
30 | {
|
---|
31 | private:
|
---|
32 | TString fFileName; // Name of the input file
|
---|
33 | TString fReportName; // Name of the report class
|
---|
34 |
|
---|
35 | MReport *fReport; // List of possible reports to be interpreted
|
---|
36 |
|
---|
37 | MTime fStart; // Time range which should be read from file
|
---|
38 | MTime fStop; // Time range which should be read from file
|
---|
39 |
|
---|
40 | int32_t fBufQos; //! Buffer for Quality of Service
|
---|
41 | Double_t fBufTime; //! Buffer for Time
|
---|
42 |
|
---|
43 | UInt_t fMjdRef;
|
---|
44 |
|
---|
45 | enum { kHasNoHeader = BIT(14) };
|
---|
46 |
|
---|
47 | Int_t PreProcess(MParList *pList);
|
---|
48 | Int_t Process();
|
---|
49 | Int_t PostProcess();
|
---|
50 |
|
---|
51 | virtual Int_t CheckFileHeader() { return 0; }
|
---|
52 |
|
---|
53 | protected:
|
---|
54 | std::fits *fIn; //! buffered input stream (file to read from)
|
---|
55 |
|
---|
56 | public:
|
---|
57 | MReportFitsRead(const char *filename, const char *name=NULL, const char *title=NULL);
|
---|
58 | ~MReportFitsRead();
|
---|
59 |
|
---|
60 | void SetHasNoHeader() { SetBit(kHasNoHeader); }
|
---|
61 | void SetTimeStart(const MTime &tm) { fStart = tm; }
|
---|
62 | void SetTimeStop(const MTime &tm) { fStop = tm; }
|
---|
63 |
|
---|
64 | void SetReportName(const char *name) { fReportName = name; }
|
---|
65 |
|
---|
66 | ClassDef(MReportFitsRead, 0)// Task to read general report file
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.