Line | |
---|
1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
2 |
|
---|
3 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
---|
4 | // Eric Aubourg
|
---|
5 | // Christophe Magneville
|
---|
6 | // Reza Ansari
|
---|
7 | // $Id: fitstoirdr.h,v 1.7 2001-11-08 15:47:45 aubourg Exp $
|
---|
8 |
|
---|
9 |
|
---|
10 | #ifndef FITSTOIRDR_H
|
---|
11 | #define FITSTOIRDR_H
|
---|
12 |
|
---|
13 | #include "toiprocessor.h"
|
---|
14 | #include <string>
|
---|
15 | #include <vector>
|
---|
16 | #include <map>
|
---|
17 | #include "fitsio.h"
|
---|
18 |
|
---|
19 |
|
---|
20 | class FITSTOIReader : public TOIProcessor {
|
---|
21 | public:
|
---|
22 | FITSTOIReader(string fn,int buff_sz=1000);
|
---|
23 | ~FITSTOIReader();
|
---|
24 |
|
---|
25 | void setImplicitSN(int snStart=0);
|
---|
26 |
|
---|
27 | virtual void addFile(string fn);
|
---|
28 |
|
---|
29 | virtual void init();
|
---|
30 | virtual void run();
|
---|
31 |
|
---|
32 | inline int_8 ProcessedSampleCount() const { return totnscount; }
|
---|
33 |
|
---|
34 | protected:
|
---|
35 | virtual int calcMinOut();
|
---|
36 | virtual int calcMaxOut();
|
---|
37 |
|
---|
38 | virtual void run1();
|
---|
39 | virtual void run2();
|
---|
40 | virtual void openFile(string fn);
|
---|
41 |
|
---|
42 | private:
|
---|
43 | fitsfile* fptr;
|
---|
44 | int fstatus;
|
---|
45 | string fname; // current file
|
---|
46 | long nrows; // current file
|
---|
47 | int firstSn; // current file
|
---|
48 | int Buff_Sz; // buffer size
|
---|
49 |
|
---|
50 | int ncols; // including flags. getNOut() is # of tois.
|
---|
51 | int snBegin; // first file
|
---|
52 | int snEnd; // last file
|
---|
53 |
|
---|
54 | bool implicitSN;
|
---|
55 | int implicitSNStart;
|
---|
56 |
|
---|
57 | vector<string> allfn;
|
---|
58 | map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
|
---|
59 | // le flag est alors en colonne+1
|
---|
60 |
|
---|
61 | int_8 totnscount; // Nombre total d'echantillon processe
|
---|
62 |
|
---|
63 | };
|
---|
64 |
|
---|
65 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.