[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 | //---------------------------------------------------------------------
|
---|
[3652] | 25 |
|
---|
| 26 | /*-- Arguments du constructeur :
|
---|
| 27 | o mem : gestionnaire zones memoires avec contenant les "frames" avec 2 voies/frame
|
---|
| 28 | o path : Chemin et nom des fichiers PPF produits (on ajoute _numero.ppf )
|
---|
| 29 | o nmean : Nombre de frame (paquets) moyennes
|
---|
| 30 | o nmax : Nombre maxi de frames traites
|
---|
| 31 | o fghist = true -> fait aussi l'histo des valeurs des echantillons temps
|
---|
| 32 | o fgnotrl = true -> fichiers fits / paquets sans trailer
|
---|
| 33 | o card : numero de carte , juste pour les impressions
|
---|
| 34 | */
|
---|
[3635] | 35 | class BRProcARaw2C : public ZThread {
|
---|
| 36 | public:
|
---|
[3645] | 37 | BRProcARaw2C(RAcqMemZoneMgr& mem, string& path, uint_4 nmean=10,
|
---|
[3652] | 38 | uint_4 nmax=100, bool fgtshist=false, bool fgnotrl=false, int card=1);
|
---|
[3635] | 39 | virtual void run();
|
---|
| 40 | void Stop();
|
---|
| 41 | inline void STOP() { stop_ = true; }
|
---|
| 42 | protected:
|
---|
| 43 | RAcqMemZoneMgr& memgr;
|
---|
| 44 | bool stop_;
|
---|
| 45 | uint_4 nmax_; // Nombre maxi de blocs MemZone traites
|
---|
| 46 | uint_4 nmean_; // Nombre de blocs pour le calcul des moyennes
|
---|
| 47 | string path_;
|
---|
[3652] | 48 | bool fghist_; // if true, fill and save histogram with time sample values
|
---|
[3640] | 49 | bool fgnotrl_; // if true, don't check packet trailer - when using pre-june fits files
|
---|
[3645] | 50 | int card_; // Numeros de voies 2*card_-1, 2*card_
|
---|
[3635] | 51 | };
|
---|
| 52 |
|
---|
[3645] | 53 | //---------------------------------------------------------------------
|
---|
| 54 | // Classe thread de traitement 2 x 2 voies/frames (Apres BRProcARaw2C)
|
---|
| 55 | //---------------------------------------------------------------------
|
---|
[3652] | 56 | /*-- Arguments du constructeur :
|
---|
| 57 | o mem1,mem2 : gestionnairea zones memoires avec contenant les donnees des 4 voies (2 voies/frame)
|
---|
| 58 | o path : Chemin et nom des fichiers PPF produits (on ajoute _numero.ppf )
|
---|
| 59 | o nmean : Nombre de frame (paquets) moyennes
|
---|
| 60 | o nmax : Nombre maxi de frames traites
|
---|
| 61 | o fgnotrl = true -> fichiers fits / paquets sans trailer
|
---|
| 62 | o card : numero de carte , juste pour les impressions
|
---|
| 63 | */
|
---|
| 64 |
|
---|
[3645] | 65 | class BRProcBRaw4C : public ZThread {
|
---|
| 66 | public:
|
---|
| 67 | BRProcBRaw4C(RAcqMemZoneMgr& mem1, RAcqMemZoneMgr& mem2, string& path,
|
---|
| 68 | uint_4 nmean=10, uint_4 nmax=100, bool fgnotrl=false);
|
---|
| 69 | virtual void run();
|
---|
| 70 | void Stop();
|
---|
| 71 | inline void STOP() { stop_ = true; }
|
---|
| 72 | protected:
|
---|
| 73 | RAcqMemZoneMgr& memgr1;
|
---|
| 74 | RAcqMemZoneMgr& memgr2;
|
---|
| 75 | bool stop_;
|
---|
| 76 | uint_4 nmax_; // Nombre maxi de blocs MemZone traites
|
---|
| 77 | uint_4 nmean_; // Nombre de blocs pour le calcul des moyennes
|
---|
| 78 | string path_;
|
---|
| 79 | bool fgnotrl_; // if true, don't check packet trailer - when using pre-june fits files
|
---|
| 80 | };
|
---|
[3635] | 81 |
|
---|
[3645] | 82 |
|
---|
| 83 |
|
---|
[3635] | 84 | #endif
|
---|