Changeset 1723 in Sophya for trunk/ArchTOIPipe/TestPipes/tstmap2toi.cc
- Timestamp:
- Oct 27, 2001, 6:43:01 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tstmap2toi.cc
r1651 r1723 1 //#define TOISEQBUFFERED 2 1 3 #include <unistd.h> 2 4 #include <stdexcept> … … 7 9 #include "fitstoiwtr.h" 8 10 #include "toimanager.h" 11 #ifdef TOISEQBUFFERED 9 12 #include "toiseqbuff.h" 13 #else 14 #include "toisegment.h" 15 #endif 10 16 11 17 #include "sambainit.h" … … 156 162 157 163 // Definition des tuyaux 164 #ifdef TOISEQBUFFERED 165 cout<<">>>> Using TOISeqBuffered"<<endl; 158 166 TOISeqBuffered * toicoord1in = new TOISeqBuffered("toi_coord1_in",width); 167 #else 168 cout<<">>>> Using TOISegmented"<<endl; 169 TOISegmented * toicoord1in = new TOISegmented("toi_coord1_in",width); 170 #endif 159 171 // toicoord1in->setDebugLevel(1); 160 172 rfits.addOutput(label_coord1,toicoord1in); 161 173 m2toi.addInput("Coord1In",toicoord1in); 162 174 175 #ifdef TOISEQBUFFERED 163 176 TOISeqBuffered * toicoord1out = new TOISeqBuffered("toi_coord1_out",width); 177 #else 178 TOISegmented * toicoord1out = new TOISegmented("toi_coord1_out",width); 179 #endif 164 180 m2toi.addOutput("Coord1Out",toicoord1out); 165 181 wfits.addInput(label_coord1,toicoord1out); 166 182 183 #ifdef TOISEQBUFFERED 167 184 TOISeqBuffered * toicoord2in = new TOISeqBuffered("toi_coord2_in",width); 185 #else 186 TOISegmented * toicoord2in = new TOISegmented("toi_coord2_in",width); 187 #endif 168 188 // toicoord2in->setDebugLevel(1); 169 189 rfits.addOutput(label_coord2,toicoord2in); 170 190 m2toi.addInput("Coord2In",toicoord2in); 171 191 192 #ifdef TOISEQBUFFERED 172 193 TOISeqBuffered * toicoord2out = new TOISeqBuffered("toi_coord2_out",width); 194 #else 195 TOISegmented * toicoord2out = new TOISegmented("toi_coord2_out",width); 196 #endif 173 197 m2toi.addOutput("Coord2Out",toicoord2out); 174 198 wfits.addInput(label_coord2,toicoord2out); 175 199 200 #ifdef TOISEQBUFFERED 176 201 TOISeqBuffered * toibolout = new TOISeqBuffered("toi_bolo_out",width); 202 #else 203 TOISegmented * toibolout = new TOISegmented("toi_bolo_out",width); 204 #endif 177 205 // toibolout->setDebugLevel(1); 178 206 m2toi.addOutput("BoloOut",toibolout); … … 198 226 199 227 // Affichage de l'avancement des TOIProcessors 200 ProcSampleCounter<FITSTOIReader> stats(rfits);201 stats.InfoMessage() = "tstmap2toi/Info";202 stats.PrintStats();228 //ProcSampleCounter<FITSTOIReader> stats(rfits); 229 //stats.InfoMessage() = "tstmap2toi/Info"; 230 //stats.PrintStats(); 203 231 204 232 mgr->joinAll();
Note:
See TracChangeset
for help on using the changeset viewer.