[3687] | 1 | #ifndef BRANAPARAM
|
---|
| 2 | #define BRANAPARAM
|
---|
| 3 |
|
---|
| 4 | //--------------------------------------------------------------
|
---|
| 5 | // Projet BAORadio - (C) LAL/IRFU 2008-2010
|
---|
| 6 | // Classe de gestion des parametres programmes d'analyse
|
---|
| 7 | //--------------------------------------------------------------
|
---|
| 8 |
|
---|
| 9 | #include "machdefs.h"
|
---|
| 10 |
|
---|
| 11 | #include <string>
|
---|
| 12 | #include <vector>
|
---|
| 13 | #include <iostream>
|
---|
| 14 |
|
---|
| 15 | class BRAnaParam {
|
---|
| 16 | public:
|
---|
| 17 | BRAnaParam(uint_4 nmean=1000, uint_4 nzon=4, uint_4 npaqz=128);
|
---|
| 18 | int DecodeArgs(int narg, char* arg[]);
|
---|
| 19 | int Usage(bool fgshort);
|
---|
| 20 |
|
---|
| 21 | int PaqSizeFromFits();
|
---|
| 22 |
|
---|
[3705] | 23 | uint_8 TotalNPaquets() { return ((imax_-imin_+1)*npaqinfile_/istep_); }
|
---|
| 24 |
|
---|
[3687] | 25 | ostream& Print(ostream& os);
|
---|
| 26 |
|
---|
[3872] | 27 | static int DecodeMiniFitsHeader(const char* filename, uint_4& paqsz, uint_4& npaq,
|
---|
| 28 | bool& fgdatafft, bool& fgsinglechannel);
|
---|
[3687] | 29 |
|
---|
| 30 | vector<string> dirlist_;
|
---|
| 31 | string action_;
|
---|
| 32 | string outpath_;
|
---|
[3956] | 33 | bool fgfitsout_; // true -> force fichier sortie format FITS (defaut PPF)
|
---|
[3687] | 34 | uint_4 nmean_;
|
---|
[3688] | 35 | uint_4 nbloc_;
|
---|
[3687] | 36 | uint_4 imin_, imax_, istep_;
|
---|
[3883] | 37 | bool rdsamefc_; // read paquets with same frame counter
|
---|
[3688] | 38 | uint_4 freqmin_, freqmax_, nbinfreq_;
|
---|
[3687] | 39 | uint_4 paqsize_;
|
---|
| 40 | uint_4 nzones_, npaqinzone_;
|
---|
[3705] | 41 | uint_4 npaqinfile_; // nombre de paquets dans un fichier p
|
---|
[3872] | 42 | bool fgdatafft_; // true -> donnee FFT (provenant du firmware FFT)
|
---|
[3956] | 43 | bool fgforceraworfft_; // true force par la ligne de commande fgdatafft_ true or false
|
---|
[3872] | 44 | bool fgsinglechannel_; // true -> un seul canal par fibre (par defaut=2 canaux/fibres)
|
---|
[3943] | 45 | bool fgforcesinglechan_; // true force par la ligne de commande
|
---|
[3688] | 46 | int prtlevel_;
|
---|
[3883] | 47 | long int prtmodulo_;
|
---|
[3956] | 48 |
|
---|
[3776] | 49 | uint_4 nbcalgrp_; // Nb d'objets/threads dans BRVisCalcGroup
|
---|
| 50 | uint_4 nthreads_; // Nb de threads pour l'execution parallele ds BRVisibilityCalculator
|
---|
[3886] | 51 |
|
---|
[3905] | 52 | uint_4 spec_win_sz_; // taille de fenetre (temps/no de paquet) pour les spectres
|
---|
| 53 | uint_4 spw_ext_sz_; // zone de garde en temps / no de paquet pour la fenetre des spectres
|
---|
| 54 | uint_4 nbmax_specwfiles_; // nb maxi de fichiers de fenetres de spectres sauvees
|
---|
| 55 |
|
---|
[3886] | 56 | double vmin_,vmax_; // coupure min-max sur la variance
|
---|
[3943] | 57 | int nbands_,bandfirst_,bandlast_; //bandes en frequences pour mean, variance et cut
|
---|
| 58 | bool fgdt_; //if true fill datatable
|
---|
| 59 |
|
---|
| 60 | bool fgfreqfilter_; // if true force median filtering on the frequencies
|
---|
| 61 |
|
---|
[3888] | 62 | string gainfile_; // nom du fichier de gain (reponse spectrale)
|
---|
[3687] | 63 | };
|
---|
| 64 |
|
---|
| 65 | #endif
|
---|