source: Sophya/trunk/ArchTOIPipe/Kernel/fitsringrdr.h@ 2382

Last change on this file since 2382 was 2359, checked in by aubourg, 22 years ago

correction plein de betises dans ring2cout

File size: 1.5 KB
RevLine 
[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
[2359]8// $Id: fitsringrdr.h,v 1.3 2003-04-01 13:27:48 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
21class FITSRingReader : public TOIProcessor {
22public:
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
36protected:
37 virtual int calcMinOut();
38 virtual int 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
47private:
[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.