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


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.cc

    r4012 r4015  
    3838
    3939  npaqcumul_=0;
     40  threshold_tt_=0;
    4041  moyfc_=moytt_=0.;
    4142  first_fc_=first_tt_=0;
     
    333334      if ( CheckInterval4VisMtxSave() ) {
    334335        if ((prtlev_>0)&&(numfile_%prtmodulo_==0)) {
    335           cout << numfile_ << "-BRVisCalc[" << calcid_ << "/" << nbcalc_ << "]::run() NPaqProc="
    336                << totnbpaq_ << " TotMegaFLOP=" << (uint_8)TotNbMegaFLOP() << " -> VisibMtx FileNum=" << numfile_ << endl;
     336          cout << numfile_ << "-BRVisCalc[" << calcid_ << "/" << nbcalc_ << "]::run() NPaqProc=" << totnbpaq_
     337               << " TTSec=" << getCurTimeTagSeconds() << " TotMegaFLOP=" << (uint_8)TotNbMegaFLOP()
     338               << " VisibMtx_FileNum=" << numfile_ << endl;
    337339        }
    338340        SaveVisibilityMatrix();
     
    353355              ttfirst_[fib]=vpaq_[fib].TimeTag();
    354356            }
     357            threshold_tt_=vpaq_[0].TimeTag();
     358            first_fc_=curfc_[0];
     359            first_tt_=vpaq_[0].TimeTag();
    355360          }
    356361          totprocnpaq_++;
     
    398403int BRVisibilityCalculator::Process()
    399404{
    400   if (totnbpaq_==0) UpdateChanIds();  // Appele ici pour etre sur que le thread de remplissage a mis l'info a jour.
     405  if (totnbpaq_==0) {    // qques initialisations a partir du premier paquet
     406    UpdateChanIds();  // Appele ici pour etre sur que le thread de remplissage a mis l'info a jour.
     407    threshold_tt_=vpaq_[0].TimeTag();
     408    first_fc_=curfc_[0];
     409    first_tt_= vpaq_[0].TimeTag();
     410  }
    401411  if (fgdataraw_) {  // Donnees firmware RAW apres TF soft
    402412    for(size_t fib=0; fib<(size_t)memgr_.NbFibres(); fib++) {
     
    414424  if ( CheckInterval4VisMtxSave() ) {
    415425    if ((prtlev_>0)&&(numfile_%prtmodulo_==0)) {
    416       cout << numfile_ << "-BRVisCalc[" << calcid_ << "/" << nbcalc_ << "]::Process() NPaqProc="
    417            << totnbpaq_ << " TotMegaFLOP=" << (uint_8)TotNbMegaFLOP() << " -> VisibMtx FileNum= " << numfile_ << endl;
     426      cout << numfile_ << "-BRVisCalc[" << calcid_ << "/" << nbcalc_ << "]::Process() NPaqProc="<< totnbpaq_
     427           << " TTSec=" << getCurTimeTagSeconds() << " TotMegaFLOP=" << (uint_8)TotNbMegaFLOP()
     428           << " VisibMtx_FileNum=" << numfile_ << endl;
    418429    }
    419430    SaveVisibilityMatrix();
     
    482493  vismtx_ = complex<r_4>((r_4)0.,(r_4)0.);
    483494  npaqcumul_=0;
     495  threshold_tt_=vpaq_[0].TimeTag();
    484496  moyfc_=moytt_=0.;
    485497  first_fc_=curfc_[0];
     
    495507{
    496508  string ikey,ikdesc;
    497   ikey="DATEOBS";  ikdesc=" Date/Time corresponding to TimeTagFirst";
     509  ikey="DATEOBS";  ikdesc=" Date,Time corresponding to TimeTagFirst";
    498510  vismtx_.Info().SetS(ikey,first_tmstamp_.ToString());
    499511  vismtx_.Info().SetComment(ikey,ikdesc);
     
    518530  ikey="NPAQSUM";  ikdesc="Number of paquets summed";
    519531  vismtx_.Info().SetI(ikey,npaqcumul_);
     532  vismtx_.Info().SetComment(ikey,ikdesc);
     533  ikey="DELTIME";  ikdesc="visib cumul time (seconds)";
     534  vismtx_.Info().SetD(ikey,(vpaq_[0].TimeTag()-first_tt_)/1.25e8);
     535  vismtx_.Info().SetComment(ikey,ikdesc);
    520536}
    521537
Note: See TracChangeset for help on using the changeset viewer.