| Line |   | 
|---|
| 1 | #include "toi.h"
 | 
|---|
| 2 | #include "toisegment.h"
 | 
|---|
| 3 | #include "toiprocessor.h"
 | 
|---|
| 4 | #include "fitstoirdr.h"
 | 
|---|
| 5 | #include "fitstoiwtr.h"
 | 
|---|
| 6 | #include "asciitoiwtr.h"
 | 
|---|
| 7 | #include "toisqfilter.h"
 | 
|---|
| 8 | #include "toimanager.h"
 | 
|---|
| 9 | 
 | 
|---|
| 10 | int main(int argc, char** argv) {
 | 
|---|
| 11 |   cout << "tsttoi starting" << endl;
 | 
|---|
| 12 |   TOIManager* mgr = TOIManager::getManager();
 | 
|---|
| 13 | 
 | 
|---|
| 14 |   FITSTOIReader r1(argv[1]);
 | 
|---|
| 15 |   FITSTOIReader r2(argv[2]);
 | 
|---|
| 16 | 
 | 
|---|
| 17 |   FITSTOIWriter w1("out1.fits");
 | 
|---|
| 18 | //  FITSTOIWriter w2("out2.fits");
 | 
|---|
| 19 |  // ASCIITOIWriter w1("out1.data");
 | 
|---|
| 20 |  // ASCIITOIWriter w2("out2.data");
 | 
|---|
| 21 | 
 | 
|---|
| 22 |   w1.setRequestedSample(104000000,104020000);
 | 
|---|
| 23 | 
 | 
|---|
| 24 |   
 | 
|---|
| 25 |   TOI* toi1 = new TOISegmented(1024);
 | 
|---|
| 26 |   r1.addOutput("boloMuV_8", toi1);
 | 
|---|
| 27 | 
 | 
|---|
| 28 |   TOI* toi2 = new TOISegmented(1024);
 | 
|---|
| 29 |   r2.addOutput("boloMuV_11", toi2);
 | 
|---|
| 30 |   
 | 
|---|
| 31 |   w1.addInput("143K01", toi1);
 | 
|---|
| 32 |   w1.addInput("143K02", toi2);
 | 
|---|
| 33 | 
 | 
|---|
| 34 |  // w2.addInput("143K01", toi1);
 | 
|---|
| 35 |  // w2.addInput("143K02", toi2);
 | 
|---|
| 36 |   
 | 
|---|
| 37 |   cout << "starting" << endl;
 | 
|---|
| 38 | 
 | 
|---|
| 39 |   r1.start();
 | 
|---|
| 40 |   r2.start();
 | 
|---|
| 41 |   w1.start();
 | 
|---|
| 42 |   //w2.start();
 | 
|---|
| 43 | 
 | 
|---|
| 44 |   cout << "joining" << endl;
 | 
|---|
| 45 |   mgr->joinAll();
 | 
|---|
| 46 |   return(0);
 | 
|---|
| 47 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.