Changeset 2192 in Sophya for trunk/ArchTOIPipe/TestPipes/toimerge.cc
- Timestamp:
- Sep 13, 2002, 4:51:53 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/toimerge.cc
r2086 r2192 8 8 #include "toi.h" 9 9 #include "toimanager.h" 10 #include "cgt.h"11 10 #include "fitstoirdr.h" 12 11 #include "fitstoiwtr.h" … … 99 98 // Set Pipe 100 99 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); 102 103 103 104 // Create FITS writer … … 105 106 string cmd = "rm -f "; cmd += namefitsout; system(cmd.c_str()); 106 107 FITSTOIWriter wfits(namefitsout); 108 //if(gsetstart) wfits.setRequestedSample(sdeb,sfin); 107 109 108 110 // Create FITS reader table … … 111 113 for(int i=0;i<ntoi;i++) rfits[i]=NULL; 112 114 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; 117 117 for(int i=0;i<ntoi;i++) { 118 118 int nread = TOI_Merge[i].FileNameIn.size(); … … 127 127 else rfits[i]->addFile(fname); 128 128 } 129 plombier.Connect(*(rfits[i]),colin,wfits,colout,"",width,withflag);129 mgr->connect(*(rfits[i]),colin,wfits,colout,"",width,withflag); 130 130 } 131 131 132 132 // Start Pipe 133 cout<<"> Plombier status before start"<<endl;134 cout<<plombier;135 133 PrtTim("starting processors"); 136 plombier.Start();134 mgr->startAll(); 137 135 138 136 // ------------------- Impression continu de stat ------------------------ … … 146 144 147 145 // End Pipe 148 mgr-> joinAll();146 mgr->waitForAll(); 149 147 PrtTim("End threads"); 150 148
Note:
See TracChangeset
for help on using the changeset viewer.