Changeset 4015 in Sophya for trunk/AddOn/TAcq/brviscalc.cc
- Timestamp:
- Aug 8, 2011, 10:05:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brviscalc.cc
r4012 r4015 38 38 39 39 npaqcumul_=0; 40 threshold_tt_=0; 40 41 moyfc_=moytt_=0.; 41 42 first_fc_=first_tt_=0; … … 333 334 if ( CheckInterval4VisMtxSave() ) { 334 335 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; 337 339 } 338 340 SaveVisibilityMatrix(); … … 353 355 ttfirst_[fib]=vpaq_[fib].TimeTag(); 354 356 } 357 threshold_tt_=vpaq_[0].TimeTag(); 358 first_fc_=curfc_[0]; 359 first_tt_=vpaq_[0].TimeTag(); 355 360 } 356 361 totprocnpaq_++; … … 398 403 int BRVisibilityCalculator::Process() 399 404 { 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 } 401 411 if (fgdataraw_) { // Donnees firmware RAW apres TF soft 402 412 for(size_t fib=0; fib<(size_t)memgr_.NbFibres(); fib++) { … … 414 424 if ( CheckInterval4VisMtxSave() ) { 415 425 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; 418 429 } 419 430 SaveVisibilityMatrix(); … … 482 493 vismtx_ = complex<r_4>((r_4)0.,(r_4)0.); 483 494 npaqcumul_=0; 495 threshold_tt_=vpaq_[0].TimeTag(); 484 496 moyfc_=moytt_=0.; 485 497 first_fc_=curfc_[0]; … … 495 507 { 496 508 string ikey,ikdesc; 497 ikey="DATEOBS"; ikdesc=" Date /Time corresponding to TimeTagFirst";509 ikey="DATEOBS"; ikdesc=" Date,Time corresponding to TimeTagFirst"; 498 510 vismtx_.Info().SetS(ikey,first_tmstamp_.ToString()); 499 511 vismtx_.Info().SetComment(ikey,ikdesc); … … 518 530 ikey="NPAQSUM"; ikdesc="Number of paquets summed"; 519 531 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); 520 536 } 521 537
Note:
See TracChangeset
for help on using the changeset viewer.