| 
            Last change
 on this file since 3741 was             3724, checked in by ansari, 16 years ago           | 
        
        
          | 
             
Implementation possibilite calcul visibilites avec des threads en parallele, Reza 29/12/2009 
 
           | 
        
        
          | 
            File size:
            1.1 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [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 | 
 | 
|---|
 | 27 |   static int DecodeMiniFitsHeader(const char* filename, uint_4& paqsz, uint_4& npaq);
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 |   vector<string> dirlist_;
 | 
|---|
 | 30 |   string action_;
 | 
|---|
 | 31 |   string outpath_;
 | 
|---|
 | 32 |   uint_4 nmean_;
 | 
|---|
| [3688] | 33 |   uint_4 nbloc_;
 | 
|---|
| [3687] | 34 |   uint_4 imin_, imax_, istep_;
 | 
|---|
| [3688] | 35 |   uint_4 freqmin_, freqmax_, nbinfreq_;
 | 
|---|
| [3687] | 36 |   uint_4 paqsize_; 
 | 
|---|
 | 37 |   uint_4 nzones_, npaqinzone_;
 | 
|---|
| [3705] | 38 |   uint_4 npaqinfile_;    // nombre de paquets dans un fichier p
 | 
|---|
| [3688] | 39 |   int prtlevel_;
 | 
|---|
| [3724] | 40 |   uint_4 nthreads_;  // Nb de threads pour l'execution parallele 
 | 
|---|
| [3687] | 41 | };
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.