| 
            Last change
 on this file since 3641 was             3640, checked in by ansari, 16 years ago           | 
        
        
          | 
             
Correction et ameliorations multiples - en particulier mcrd.cc, brproc.cc et brfitsrd.cc, Reza 27/05/2009 
 
           | 
        
        
          | 
            File size:
            1.3 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | #ifndef  BRPROCA_H_SEEN
 | 
|---|
| 2 | #define  BRPROCA_H_SEEN
 | 
|---|
| 3 | 
 | 
|---|
| 4 | //----------------------------------------------------------------
 | 
|---|
| 5 | // ---- classe de thread de traitememt  acquisition BAORadio -----
 | 
|---|
| 6 | // LAL -      R. Ansari - Juin/Juillet 2008 
 | 
|---|
| 7 | //----------------------------------------------------------------
 | 
|---|
| 8 | 
 | 
|---|
| 9 | 
 | 
|---|
| 10 | #include "racqumem.h"
 | 
|---|
| 11 | #include <string>
 | 
|---|
| 12 | #include <vector>
 | 
|---|
| 13 | #include <iostream>
 | 
|---|
| 14 | #include "sopnamsp.h"
 | 
|---|
| 15 | #include "zthread.h"
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #include "brtypes.h"
 | 
|---|
| 18 | 
 | 
|---|
| 19 | using namespace std;
 | 
|---|
| 20 | 
 | 
|---|
| 21 | 
 | 
|---|
| 22 | //---------------------------------------------------------------------
 | 
|---|
| 23 | // Classe thread de traitement avec 2 voies par frame (donnees brutes)
 | 
|---|
| 24 | //---------------------------------------------------------------------
 | 
|---|
| 25 | class BRProcARaw2C : public ZThread {
 | 
|---|
| 26 | public: 
 | 
|---|
| 27 |   BRProcARaw2C(RAcqMemZoneMgr& mem, string& path, uint_4 nmean=1, 
 | 
|---|
| 28 |                uint_4 step=1, uint_4 nmax=100, bool fgnotrl=false);
 | 
|---|
| 29 |   virtual void run(); 
 | 
|---|
| 30 |   void Stop();
 | 
|---|
| 31 |   inline void STOP() { stop_ = true; }  
 | 
|---|
| 32 | protected:
 | 
|---|
| 33 |   RAcqMemZoneMgr& memgr;
 | 
|---|
| 34 |   bool stop_;  
 | 
|---|
| 35 |   uint_4 nmax_;  // Nombre maxi de blocs MemZone traites
 | 
|---|
| 36 |   uint_4 step_;  // 1/step_ frame traite ds chaque bloc
 | 
|---|
| 37 |   uint_4 nmean_;  // Nombre de blocs pour le calcul des moyennes 
 | 
|---|
| 38 |   string path_;  
 | 
|---|
| 39 |   bool fgnotrl_;   // if true, don't check packet trailer - when using pre-june fits files
 | 
|---|
| 40 | };
 | 
|---|
| 41 | 
 | 
|---|
| 42 | 
 | 
|---|
| 43 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.