Changeset 3778 in Sophya
- Timestamp:
- May 18, 2010, 9:19:43 PM (15 years ago)
- Location:
- trunk/AddOn/TAcq
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brbaseproc.cc
r3774 r3778 34 34 fgokallfibers_=true; 35 35 totprocnpaq_=0; 36 setNameId("baseproc",0); 36 37 } 37 38 … … 74 75 int rc=0; 75 76 try { 76 cout << " BRBaseProcessor ::run() - Starting " << " NFibers=" << memgr_.NbFibres()77 cout << " BRBaseProcessor[" << bpid_ << "]::run() - Starting " << " NFibers=" << memgr_.NbFibres() 77 78 << " NChan=" << 2*memgr_.NbFibres() << endl; 78 79 … … 85 86 Byte* buffg = memgr_.GetMemZone(mid); 86 87 if (buffg == NULL) { 87 cout << "BRBaseProcessor ::run()/ERROR memgr.GetMemZone(" << mid << ") -> NULL" << endl;88 cout << "BRBaseProcessor[" << bpid_ << "]::run()/ERROR memgr.GetMemZone(" << mid << ") -> NULL" << endl; 88 89 setRC(7); fgrun=false; 89 90 break; … … 92 93 fbuff_[fib] = memgr_.GetMemZone(mid,fib); 93 94 if (fbuff_[fib] == NULL) { // cela ne devrait pas arriver 94 cout << "BRBaseProcessor ::run()/ERROR memgr.GetMemZone(" << mid << "," << fib << ") -> NULL" << endl;95 cout << "BRBaseProcessor[" << bpid_ << "]::run()/ERROR memgr.GetMemZone(" << mid << "," << fib << ") -> NULL" << endl; 95 96 setRC(9); fgrun=false; 96 97 break; … … 121 122 } // Fin de boucle sur les zones a traiter 122 123 //------------------------------------ 123 cout << " ---- ----- END BRBaseProcessor::run() , TotNbProcPaq=" << totprocnpaq_ << endl;124 cout << " ---- END BRBaseProcessor[" << bpid_ << "]::run() , TotNbProcPaq=" << totprocnpaq_ << endl; 124 125 /* 125 126 for(size_t fib=0; fib<(size_t)memgr_.NbFibres(); fib++) vpchk_[fib].Print(); … … 128 129 } 129 130 catch (std::exception& exc) { 130 cout << " BRBaseProcessor ::run()/catched std::exception " << exc.what() << endl;131 cout << " BRBaseProcessor[" << bpid_ << "]::run()/catched std::exception " << exc.what() << endl; 131 132 setRC(98); 132 133 return; 133 134 } 134 135 catch(...) { 135 cout << " BRBaseProcessor ::run()/catched unknown ... exception " << endl;136 cout << " BRBaseProcessor[" << bpid_ << "]::run()/catched unknown ... exception " << endl; 136 137 setRC(99); 137 138 return; -
trunk/AddOn/TAcq/brbaseproc.h
r3774 r3778 32 32 inline void STOP() { stop_ = true; } 33 33 34 inline void setNameId(const char* nom, int id) 35 { bpnom_=nom; bpid_=id; } 36 inline void setNameId(string nom, int id) 37 { bpnom_=nom; bpid_=id; } 38 34 39 protected: 35 40 // Methode devant etre redefinie pour effectuer le traitement - appele pour chaque trigger … … 50 55 51 56 uint_8 totprocnpaq_; 57 58 string bpnom_; // nom du processeur 59 int bpid_; // numero d'identificateur 52 60 }; 53 61 -
trunk/AddOn/TAcq/brproc.cc
r3777 r3778 69 69 fgallfibok=NULL; 70 70 fgcktt_=false; 71 setNameId("viscalc", 0); 71 72 } 72 73 … … 118 119 MemZaction mmzas[4]={MemZA_ProcA,MemZA_ProcB,MemZA_ProcC,MemZA_ProcD}; 119 120 SetMemZAction(mmzas[calcid_]); 121 setNameId("viscalc_grp", calcid_); 120 122 } 121 123 return ; … … 204 206 Byte* buffg = memgr_.GetMemZone(mid); 205 207 if (buffg == NULL) { 206 cout << "BRVisibilityCalculator ::run()/ERROR memgr.GetMemZone(" << mid << ") -> NULL" << endl;208 cout << "BRVisibilityCalculator[" << calcid_ << "]::run()/ERROR memgr.GetMemZone(" << mid << ") -> NULL" << endl; 207 209 setRC(7); fgrun=false; 208 210 break; … … 211 213 fbuff_[fib] = memgr_.GetMemZone(mid,fib); 212 214 if (fbuff_[fib] == NULL) { // cela ne devrait pas arriver 213 cout << "BRVisibilityCalculator ::run()/ERROR memgr.GetMemZone(" << mid << "," << fib << ") -> NULL" << endl;215 cout << "BRVisibilityCalculator[" << calcid_ << "]::run()/ERROR memgr.GetMemZone(" << mid << "," << fib << ") -> NULL" << endl; 214 216 setRC(9); fgrun=false; 215 217 break; … … 234 236 POutPersist po(flnm); 235 237 po << vismtx_; 236 cout << numfile_ << "-BRVisibilityCalculator ::run() NPaqProc="238 cout << numfile_ << "-BRVisibilityCalculator[" << calcid_ << "]::run() NPaqProc=" 237 239 << totnbpaq_ << " -> Visibility Matrix in " << flnm << endl; 238 240 FillVisibTable(moyfc_, moytt_); … … 267 269 // Execution parallele pour calcul des visibilites par bandes de frequence 268 270 int rcpex=paralex_.execute(); 269 if (rcpex!=0) cout << " BRVisibilityCalculator ::run() / Error Rc[paralex_.execute()]=" << rcpex << endl;271 if (rcpex!=0) cout << " BRVisibilityCalculator[" << calcid_ << "]::run() / Error Rc[paralex_.execute()]=" << rcpex << endl; 270 272 271 273 memgr_.FreeMemZone(mid, mmsta_); // (MemZS_ProcA); 272 274 } // Fin de boucle sur les zones a traiter 273 275 //------------------------------------ 274 cout << " --------- END BRVisibilityCalculator ::run() , TotNbProcPaq=" << totprocnpaq_ << endl;276 cout << " --------- END BRVisibilityCalculator[" << calcid_ << "]::run() , TotNbProcPaq=" << totprocnpaq_ << endl; 275 277 /* 276 278 for(size_t fib=0; fib<(size_t)memgr_.NbFibres(); fib++) vpchk_[fib].Print(); … … 280 282 } 281 283 catch (std::exception& exc) { 282 cout << " BRVisibilityCalculator ::run()/catched std::exception " << exc.what() << endl;284 cout << " BRVisibilityCalculator[" << calcid_ << "]::run()/catched std::exception " << exc.what() << endl; 283 285 setRC(98); 284 286 return; 285 287 } 286 288 catch(...) { 287 cout << " BRVisibilityCalculator ::run()/catched unknown ... exception " << endl;289 cout << " BRVisibilityCalculator[" << calcid_ << "]::run()/catched unknown ... exception " << endl; 288 290 setRC(99); 289 291 return;
Note:
See TracChangeset
for help on using the changeset viewer.