Changeset 1439 in Sophya for trunk/ArchTOIPipe/TestPipes
- Timestamp:
- Mar 13, 2001, 7:23:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tstrztoi.cc
r1437 r1439 1 1 #include <unistd.h> 2 #include <stdexcept> 2 3 #include "toi.h" 3 4 #include "toiprocessor.h" … … 105 106 // FITSTOIWriter w("/data/Archeops/rz.fits"); 106 107 FITSTOIWriter w(outfile); 107 w.setOutFlags(true);108 108 cout << "fits writer created" << endl; 109 109 110 110 111 111 char * colname[5] = {"MJD", "UTC","boloMuV_11","magnFlux","pivot"}; 112 char * toiname[5] = {"MJD", "UTC","bolo11","magneto","pivot"}; 112 113 TOI* toitab[5]; 113 114 TOI* toi2; … … 116 117 cout << " Using TOIRegularWindow TOI's ... " << endl; 117 118 for(kk=0; kk<5; kk++) { 118 toitab[kk] = new TOIRegularWindow( (string)"t_"+colname[kk]);119 toitab[kk] = new TOIRegularWindow(toiname[kk]); 119 120 } 120 121 toi2 = new TOIRegularWindow("t2"); … … 123 124 cout << " Using TOISeqBuffered TOI's ... " << endl; 124 125 for(kk=0; kk<5; kk++) { 125 TOISeqBuffered * toisb = new TOISeqBuffered( (string)"t_"+colname[kk], w1);126 TOISeqBuffered * toisb = new TOISeqBuffered(toiname[kk], w1); 126 127 toitab[kk] = toisb; 127 128 if (fgdbg) toisb->setDebugLevel(1); … … 163 164 164 165 165 w.addInput("bolo_filtered", toi2); 166 w.setOutFlags(true); 167 w.addInput("bolodrift", toi2); 168 169 cout << " ------ FITSReaderTOI::PrintStatus() : ----- " << endl; 170 r.PrintStatus(cout); 171 cout << "----- FITSWriterTOI::PrintStatus() : ----- " << endl; 172 w.PrintStatus(cout); 166 173 167 174 PrtTim("starting threads"); … … 170 177 else rzp.start(); 171 178 w.start(); 172 173 r.PrintStatus(cout);174 179 175 for(int jj=0; jj<3; jj++) {176 sleep(2);177 cout << *toi;178 }180 // for(int jj=0; jj<3; jj++) { 181 // sleep(2); 182 // cout << *toi; 183 // } 179 184 180 185 mgr->joinAll(); 181 186 PrtTim("End threads"); 187 188 // cout << " ------ FITSReaderTOI::PrintStatus() : ----- " << endl; 189 // r.PrintStatus(cout); 190 // cout << "----- FITSWriterTOI::PrintStatus() : ----- " << endl; 191 // w.PrintStatus(cout); 192 182 193 cout << " ------ toi and toi2 Status information ------- " << endl; 183 194 cout << *toi; … … 185 196 } 186 197 catch (PThrowable & exc) { 187 cerr << " rztsttoi: Catched Exception \n" << (string)typeid(exc).name()198 cerr << "\nrztsttoi: Catched Exception \n" << (string)typeid(exc).name() 188 199 << " - Msg= " << exc.Msg() << endl; 189 200 } 201 catch (const std::exception & sex) { 202 cerr << "\nrztsttoi: Catched std::exception \n" 203 << (string)typeid(sex).name() << endl; 204 } 190 205 catch (...) { 191 cerr << " rztsttoi: some other exception was caught ! " << endl;206 cerr << "\nrztsttoi: some other exception was caught ! " << endl; 192 207 } 193 208
Note:
See TracChangeset
for help on using the changeset viewer.