Changeset 1723 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Oct 27, 2001, 6:43:01 PM (24 years ago)
Author:
cmv
Message:

TOIsegmented remplace TOISeqBuffered cmv 27/10/01

Location:
trunk/ArchTOIPipe/TestPipes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/tstmap2toi.cc

    r1651 r1723  
     1//#define TOISEQBUFFERED
     2
    13#include <unistd.h>
    24#include <stdexcept>
     
    79#include "fitstoiwtr.h"
    810#include "toimanager.h"
     11#ifdef TOISEQBUFFERED
    912#include "toiseqbuff.h"
     13#else
     14#include "toisegment.h"
     15#endif
    1016
    1117#include "sambainit.h"
     
    156162
    157163 // Definition des tuyaux
     164#ifdef TOISEQBUFFERED
     165 cout<<">>>> Using TOISeqBuffered"<<endl;
    158166 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
    159171 // toicoord1in->setDebugLevel(1);
    160172 rfits.addOutput(label_coord1,toicoord1in);
    161173 m2toi.addInput("Coord1In",toicoord1in);
    162174
     175#ifdef TOISEQBUFFERED
    163176 TOISeqBuffered * toicoord1out = new TOISeqBuffered("toi_coord1_out",width);
     177#else
     178 TOISegmented * toicoord1out = new TOISegmented("toi_coord1_out",width);
     179#endif
    164180 m2toi.addOutput("Coord1Out",toicoord1out);
    165181 wfits.addInput(label_coord1,toicoord1out);
    166182
     183#ifdef TOISEQBUFFERED
    167184 TOISeqBuffered * toicoord2in = new TOISeqBuffered("toi_coord2_in",width);
     185#else
     186 TOISegmented * toicoord2in = new TOISegmented("toi_coord2_in",width);
     187#endif
    168188 // toicoord2in->setDebugLevel(1);
    169189 rfits.addOutput(label_coord2,toicoord2in);
    170190 m2toi.addInput("Coord2In",toicoord2in);
    171191
     192#ifdef TOISEQBUFFERED
    172193 TOISeqBuffered * toicoord2out = new TOISeqBuffered("toi_coord2_out",width);
     194#else
     195 TOISegmented * toicoord2out = new TOISegmented("toi_coord2_out",width);
     196#endif
    173197 m2toi.addOutput("Coord2Out",toicoord2out);
    174198 wfits.addInput(label_coord2,toicoord2out);
    175199
     200#ifdef TOISEQBUFFERED
    176201 TOISeqBuffered * toibolout = new TOISeqBuffered("toi_bolo_out",width);
     202#else
     203 TOISegmented * toibolout = new TOISegmented("toi_bolo_out",width);
     204#endif
    177205 // toibolout->setDebugLevel(1);
    178206 m2toi.addOutput("BoloOut",toibolout);
     
    198226
    199227 //  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();
    203231
    204232 mgr->joinAll();
  • trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc

    r1633 r1723  
     1//#define TOISEQBUFFERED
     2
    13#include <unistd.h>
    24#include <stdexcept>
     
    810#include "fitstoiwtr.h"
    911#include "toimanager.h"
     12#ifdef TOISEQBUFFERED
    1013#include "toiseqbuff.h"
     14#else
     15#include "toisegment.h"
     16#endif
    1117
    1218#include "sambainit.h"
    1319#include "toi2map.h"
    14 #include "fitsspherehealpix.h" 
     20#include "fitsspherehealpix.h"
    1521#include "timing.h"
    1622
     
    191197
    192198 // Definition des tuyaux
     199#ifdef TOISEQBUFFERED
     200 cout<<">>>> Using TOISeqBuffered"<<endl;
    193201 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
    194206 // toicoord1in->setDebugLevel(1);
    195207 rfitsp.addOutput(label_coord1,toicoord1in);
    196208 toi2m.addInput("Coord1In",toicoord1in);
    197209
     210#ifdef TOISEQBUFFERED
    198211 TOISeqBuffered * toicoord2in = new TOISeqBuffered("toi_coord2_in",width);
     212#else
     213 TOISegmented * toicoord2in = new TOISegmented("toi_coord2_in",width);
     214#endif
    199215 // toicoord2in->setDebugLevel(1);
    200216 rfitsp.addOutput(label_coord2,toicoord2in);
    201217 toi2m.addInput("Coord2In",toicoord2in);
    202218 
     219#ifdef TOISEQBUFFERED
    203220 TOISeqBuffered * toibolin = new TOISeqBuffered("toi_bolo_in",width);
     221#else
     222 TOISegmented * toibolin = new TOISegmented("toi_bolo_in",width);
     223#endif
    204224 // toibolin->setDebugLevel(1);
    205225 rfitsb.addOutput(label_bolomuv,toibolin);
     
    216236 toi2m.start();
    217237
    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 //   }
    224244
    225245 //  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();
    229249
    230250 // Fin des traitements des TOIProcessors 
Note: See TracChangeset for help on using the changeset viewer.