| Rev | Line |  | 
|---|
| [2351] | 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 | //                               Cecile Renault | 
|---|
|  | 6 | //                               Christophe Magneville | 
|---|
|  | 7 | //                               Reza Ansari | 
|---|
| [2448] | 8 | // $Id: fitsringrdr.h,v 1.4 2003-10-13 20:48:36 aubourg Exp $ | 
|---|
| [2351] | 9 |  | 
|---|
|  | 10 | #ifndef FITSRINGRDR_H | 
|---|
|  | 11 | #define FITSRINGRDR_H | 
|---|
|  | 12 |  | 
|---|
| [2353] | 13 | #include "config.h" | 
|---|
| [2351] | 14 | #include "toiprocessor.h" | 
|---|
| [2353] | 15 | #include <string> | 
|---|
|  | 16 | #include <vector> | 
|---|
|  | 17 | #include <map> | 
|---|
| [2351] | 18 | #include "fitsio.h" | 
|---|
| [2353] | 19 | #include "flagtoidef.h" | 
|---|
| [2351] | 20 |  | 
|---|
|  | 21 | class FITSRingReader : public TOIProcessor { | 
|---|
|  | 22 | public: | 
|---|
|  | 23 | FITSRingReader(string fn,int buff_sz=1024); | 
|---|
|  | 24 | ~FITSRingReader(); | 
|---|
|  | 25 |  | 
|---|
|  | 26 |  | 
|---|
|  | 27 | void         setBufferSize(int buffsz=1024); | 
|---|
|  | 28 | inline int   getBufferSize() { return Buff_Sz; } | 
|---|
|  | 29 |  | 
|---|
|  | 30 | void  init(); | 
|---|
|  | 31 | void  run(); | 
|---|
| [2353] | 32 |  | 
|---|
|  | 33 | inline int_8  ProcessedSampleCount() const { return totnscount; } | 
|---|
|  | 34 | virtual void printLimits(); | 
|---|
|  | 35 |  | 
|---|
|  | 36 | protected: | 
|---|
| [2448] | 37 | virtual long  calcMinOut(); | 
|---|
|  | 38 | virtual long  calcMaxOut(); | 
|---|
| [2351] | 39 |  | 
|---|
| [2353] | 40 | // ajout vf 31/07/2002 | 
|---|
|  | 41 | virtual bool checkSampleLimits(long& min, long& max, int pass); | 
|---|
|  | 42 | virtual void calcSampleLimits(long& min, long& max); | 
|---|
|  | 43 | virtual bool checkSampleLimits(int pass) {return TOIProcessor::checkSampleLimits(pass);} | 
|---|
|  | 44 |  | 
|---|
| [2351] | 45 | virtual void openFile(string fn); | 
|---|
| [2353] | 46 |  | 
|---|
|  | 47 | private: | 
|---|
| [2359] | 48 | long nSamples; | 
|---|
| [2351] | 49 | long nRings; | 
|---|
|  | 50 | double aperture; | 
|---|
|  | 51 | string fname; | 
|---|
|  | 52 | fitsfile *fptr; | 
|---|
|  | 53 | int fstatus; | 
|---|
|  | 54 | int Buff_Sz; // buffer size = nSamples | 
|---|
|  | 55 | vector<string> allfn; | 
|---|
| [2353] | 56 | int_8 totnscount;   // Nombre total d'echantillon processe | 
|---|
| [2351] | 57 | }; | 
|---|
|  | 58 |  | 
|---|
|  | 59 |  | 
|---|
|  | 60 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.