Ignore:
Timestamp:
Sep 13, 2002, 4:51:53 PM (23 years ago)
Author:
cmv
Message:

intermediaire cmv echanch EA 13/9/02

File:
1 edited

Legend:

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

    r2086 r2192  
    88#include "toi.h"
    99#include "toimanager.h"
    10 #include "cgt.h"
    1110#include "fitstoirdr.h"
    1211#include "fitstoiwtr.h"
     
    9998 // Set Pipe
    10099 TOIManager* mgr = TOIManager::getManager();
    101  if(gsetstart) mgr->setRequestedSample(sdeb,sfin);
     100 //if(gsetstart) mgr->setRequestedSample(sdeb,sfin);
     101 if(fgsegmented) mgr->selectTOISegmented(width);
     102   else          mgr->selectTOISeqBuffered(width);
    102103
    103104 // Create FITS writer
     
    105106 string cmd = "rm -f "; cmd += namefitsout; system(cmd.c_str());
    106107 FITSTOIWriter wfits(namefitsout);
     108 //if(gsetstart) wfits.setRequestedSample(sdeb,sfin);
    107109
    108110 // Create FITS reader table
     
    111113 for(int i=0;i<ntoi;i++) rfits[i]=NULL;
    112114
    113  // Create FITS reader and connect with CGT
    114  cout<<"> Connecting Processors through plombier ... "<<endl;
    115  CGT plombier(fgsegmented,width);
    116  //plombier.SetDebugLevel(lp);
     115 // Create FITS reader and connect
     116 cout<<"> Connecting Processors ... "<<endl;
    117117 for(int i=0;i<ntoi;i++) {
    118118   int nread = TOI_Merge[i].FileNameIn.size();
     
    127127       else   rfits[i]->addFile(fname);
    128128   }
    129    plombier.Connect(*(rfits[i]),colin,wfits,colout,"",width,withflag);
     129   mgr->connect(*(rfits[i]),colin,wfits,colout,"",width,withflag);
    130130 }
    131131
    132132 // Start Pipe
    133  cout<<"> Plombier status before start"<<endl;
    134  cout<<plombier;
    135133 PrtTim("starting processors");
    136  plombier.Start();
     134 mgr->startAll();
    137135
    138136 // ------------------- Impression continu de stat ------------------------
     
    146144
    147145 // End Pipe
    148  mgr->joinAll();
     146 mgr->waitForAll();
    149147 PrtTim("End threads");
    150148
Note: See TracChangeset for help on using the changeset viewer.