Changeset 1723 in Sophya for trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
- Timestamp:
- Oct 27, 2001, 6:43:01 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
r1633 r1723 1 //#define TOISEQBUFFERED 2 1 3 #include <unistd.h> 2 4 #include <stdexcept> … … 8 10 #include "fitstoiwtr.h" 9 11 #include "toimanager.h" 12 #ifdef TOISEQBUFFERED 10 13 #include "toiseqbuff.h" 14 #else 15 #include "toisegment.h" 16 #endif 11 17 12 18 #include "sambainit.h" 13 19 #include "toi2map.h" 14 #include "fitsspherehealpix.h" 20 #include "fitsspherehealpix.h" 15 21 #include "timing.h" 16 22 … … 191 197 192 198 // Definition des tuyaux 199 #ifdef TOISEQBUFFERED 200 cout<<">>>> Using TOISeqBuffered"<<endl; 193 201 TOISeqBuffered * toicoord1in = new TOISeqBuffered("toi_coord1_in",width); 202 #else 203 cout<<">>>> Using TOISegmented"<<endl; 204 TOISegmented * toicoord1in = new TOISegmented("toi_coord1_in",width); 205 #endif 194 206 // toicoord1in->setDebugLevel(1); 195 207 rfitsp.addOutput(label_coord1,toicoord1in); 196 208 toi2m.addInput("Coord1In",toicoord1in); 197 209 210 #ifdef TOISEQBUFFERED 198 211 TOISeqBuffered * toicoord2in = new TOISeqBuffered("toi_coord2_in",width); 212 #else 213 TOISegmented * toicoord2in = new TOISegmented("toi_coord2_in",width); 214 #endif 199 215 // toicoord2in->setDebugLevel(1); 200 216 rfitsp.addOutput(label_coord2,toicoord2in); 201 217 toi2m.addInput("Coord2In",toicoord2in); 202 218 219 #ifdef TOISEQBUFFERED 203 220 TOISeqBuffered * toibolin = new TOISeqBuffered("toi_bolo_in",width); 221 #else 222 TOISegmented * toibolin = new TOISegmented("toi_bolo_in",width); 223 #endif 204 224 // toibolin->setDebugLevel(1); 205 225 rfitsb.addOutput(label_bolomuv,toibolin); … … 216 236 toi2m.start(); 217 237 218 if(lp>1)219 for(int jjjj=0;jjjj<5;jjjj++) {220 cout<<*toicoord1in;221 cout<<*toibolin;222 sleep(2);223 }238 // if(lp>1) 239 // for(int jjjj=0;jjjj<5;jjjj++) { 240 // cout<<*toicoord1in; 241 // cout<<*toibolin; 242 // sleep(2); 243 // } 224 244 225 245 // Affichage de l'avancement des TOIProcessors 226 ProcSampleCounter<FITSTOIReader> stats(rfitsb);227 stats.InfoMessage() = "tsttoi2map/Info";228 stats.PrintStats();246 // ProcSampleCounter<FITSTOIReader> stats(rfitsb); 247 // stats.InfoMessage() = "tsttoi2map/Info"; 248 // stats.PrintStats(); 229 249 230 250 // Fin des traitements des TOIProcessors
Note:
See TracChangeset
for help on using the changeset viewer.