[3635] | 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:
|
---|
[3645] | 27 | BRProcARaw2C(RAcqMemZoneMgr& mem, string& path, uint_4 nmean=10,
|
---|
| 28 | uint_4 nmax=100, bool fgnotrl=false, int card=1);
|
---|
[3635] | 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 nmean_; // Nombre de blocs pour le calcul des moyennes
|
---|
| 37 | string path_;
|
---|
[3640] | 38 | bool fgnotrl_; // if true, don't check packet trailer - when using pre-june fits files
|
---|
[3645] | 39 | int card_; // Numeros de voies 2*card_-1, 2*card_
|
---|
[3635] | 40 | };
|
---|
| 41 |
|
---|
[3645] | 42 | //---------------------------------------------------------------------
|
---|
| 43 | // Classe thread de traitement 2 x 2 voies/frames (Apres BRProcARaw2C)
|
---|
| 44 | //---------------------------------------------------------------------
|
---|
| 45 | class BRProcBRaw4C : public ZThread {
|
---|
| 46 | public:
|
---|
| 47 | BRProcBRaw4C(RAcqMemZoneMgr& mem1, RAcqMemZoneMgr& mem2, string& path,
|
---|
| 48 | uint_4 nmean=10, uint_4 nmax=100, bool fgnotrl=false);
|
---|
| 49 | virtual void run();
|
---|
| 50 | void Stop();
|
---|
| 51 | inline void STOP() { stop_ = true; }
|
---|
| 52 | protected:
|
---|
| 53 | RAcqMemZoneMgr& memgr1;
|
---|
| 54 | RAcqMemZoneMgr& memgr2;
|
---|
| 55 | bool stop_;
|
---|
| 56 | uint_4 nmax_; // Nombre maxi de blocs MemZone traites
|
---|
| 57 | uint_4 nmean_; // Nombre de blocs pour le calcul des moyennes
|
---|
| 58 | string path_;
|
---|
| 59 | bool fgnotrl_; // if true, don't check packet trailer - when using pre-june fits files
|
---|
| 60 | };
|
---|
[3635] | 61 |
|
---|
[3645] | 62 |
|
---|
| 63 |
|
---|
[3635] | 64 | #endif
|
---|