| 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 | //                               Cecile Renault
 | 
|---|
| 6 | //                               Christophe Magneville
 | 
|---|
| 7 | //                               Reza Ansari
 | 
|---|
| 8 | // $Id: fitsringrdr.h,v 1.4 2003-10-13 20:48:36 aubourg Exp $
 | 
|---|
| 9 | 
 | 
|---|
| 10 | #ifndef FITSRINGRDR_H
 | 
|---|
| 11 | #define FITSRINGRDR_H
 | 
|---|
| 12 | 
 | 
|---|
| 13 | #include "config.h"
 | 
|---|
| 14 | #include "toiprocessor.h"
 | 
|---|
| 15 | #include <string>
 | 
|---|
| 16 | #include <vector>
 | 
|---|
| 17 | #include <map>
 | 
|---|
| 18 | #include "fitsio.h"
 | 
|---|
| 19 | #include "flagtoidef.h"
 | 
|---|
| 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();
 | 
|---|
| 32 | 
 | 
|---|
| 33 |   inline int_8  ProcessedSampleCount() const { return totnscount; }
 | 
|---|
| 34 |   virtual void printLimits();
 | 
|---|
| 35 | 
 | 
|---|
| 36 | protected:
 | 
|---|
| 37 |   virtual long  calcMinOut();
 | 
|---|
| 38 |   virtual long  calcMaxOut();
 | 
|---|
| 39 |   
 | 
|---|
| 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 | 
 | 
|---|
| 45 |   virtual void openFile(string fn);
 | 
|---|
| 46 | 
 | 
|---|
| 47 | private:
 | 
|---|
| 48 |   long nSamples;
 | 
|---|
| 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;
 | 
|---|
| 56 |   int_8 totnscount;   // Nombre total d'echantillon processe
 | 
|---|
| 57 | };
 | 
|---|
| 58 | 
 | 
|---|
| 59 | 
 | 
|---|
| 60 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.