source: Sophya/trunk/ArchTOIPipe/Kernel/fitstoirdr.h@ 1709

Last change on this file since 1709 was 1629, checked in by ansari, 24 years ago
  • Ajout pthread_exit apres l'execution de run() ds TOIProcessor::ThreadStart()
  • Ajout de la classe ProcSampleCounter<T> pour affichage continu de stats ds toimanager.h .cc
  • correction mineure de toi2map.cc
  • Utilisation de ProcSampleCounter<T> ds tsttoi2map.cc et simtst.cc

Reza 8/8/2001

File size: 1.1 KB
RevLine 
[1365]1// This may look like C code, but it is really -*- C++ -*-
2
3#ifndef FITSTOIRDR_H
4#define FITSTOIRDR_H
5
6#include "toiprocessor.h"
7#include <string>
[1480]8#include <vector>
[1527]9#include <map>
[1365]10#include "fitsio.h"
11
12
13class FITSTOIReader : public TOIProcessor {
14public:
15 FITSTOIReader(string fn);
16 ~FITSTOIReader();
[1480]17
18 virtual void addFile(string fn);
19
[1365]20 virtual void init();
[1629]21 virtual void run();
22
23 inline int_8 ProcessedSampleCount() const { return totnscount; }
[1365]24
25protected:
26 virtual int calcMinOut();
27 virtual int calcMaxOut();
28
[1480]29 virtual void run1();
30 virtual void openFile(string fn);
31
[1365]32private:
[1480]33 fitsfile* fptr;
34 int fstatus;
35 string fname; // current file
36 long nrows; // current file
37 int firstSn; // current file
38
[1527]39 int ncols; // including flags. getNOut() is # of tois.
[1480]40 int snBegin; // first file
41 int snEnd; // last file
42
43 vector<string> allfn;
[1527]44 map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
45 // le flag est alors en colonne+1
[1480]46
[1629]47 int_8 totnscount; // Nombre total d'echantillon processe
48
[1365]49};
50
51
52#endif
Note: See TracBrowser for help on using the repository browser.