Changeset 4015 in Sophya for trunk/AddOn/TAcq/brviscalc.h


Ignore:
Timestamp:
Aug 8, 2011, 10:05:42 PM (14 years ago)
Author:
ansari
Message:

Validation/debug calcul de visibilites par tranches en temps, Reza, 08 Aout 2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/brviscalc.h

    r4012 r4015  
    7272  // Pour passer en mode intervalle en temps pour sauvegarde matrices visibilites - intervalle de temps en secondes
    7373  inline void SetTimeIntervalMode(double dtime=1.)
    74     { fgnpaq_time=false; dtimemean_=(dtime>1e-6)?dtime:1.; }
     74    { fgnpaq_time=false; dtimemean_=(dtime>1e-6)?dtime:1.; dtimem_ttops_=(uint_8)(dtimemean_*1.25e8); }
    7575
    7676  // Methode d'execution standard du thread (on redefinit la methode de BRBaseProcessor)
     
    103103      return ((npaqcumul_>=nmean_)?true:false);
    104104    else {
    105       return (((vpaq_[0].TimeTag()-first_tt_)/1.25e8>=dtimemean_)?true:false);
     105      return (((vpaq_[0].TimeTag()-threshold_tt_)>=dtimem_ttops_)?true:false);
    106106    }
    107107  }
     
    117117  uint_4 nmean_;  // Nombre de spectres pour le calcul des moyennes
    118118  double dtimemean_;  // Intervalle en temps pour le calcul des moyennes - exprimes en secondes
     119  uint_8 dtimem_ttops_;  // Intervalle en temps pour le calcul des moyennes - en impulsions TimeTag (125 MHz)
     120  uint_8 threshold_tt_;  // Valeurs seuil TimeTag pour chaque matrice de visibilite - muliple de dtimem_ttops_
    119121  bool fgnpaq_time;  // true -> utilisation nmean_ comme nb de paquet/spectre, false -> dtimemean_
    120122
Note: See TracChangeset for help on using the changeset viewer.