source: Sophya/trunk/ArchTOIPipe/TestPipes/tstseg3.cc

Last change on this file was 2397, checked in by aubourg, 22 years ago

securisation

File size: 993 bytes
RevLine 
[1693]1#include "toi.h"
2#include "toisegment.h"
3#include "toiprocessor.h"
4#include "fitstoirdr.h"
5#include "fitstoiwtr.h"
[1710]6#include "asciitoiwtr.h"
[1693]7#include "toisqfilter.h"
8#include "toimanager.h"
9
10int 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");
[1710]18// FITSTOIWriter w2("out2.fits");
19 // ASCIITOIWriter w1("out1.data");
20 // ASCIITOIWriter w2("out2.data");
[1693]21
[2397]22 w1.setRequestedSample(104000000,104020000);
23
[1693]24
[1698]25 TOI* toi1 = new TOISegmented(1024);
[1693]26 r1.addOutput("boloMuV_8", toi1);
27
[1698]28 TOI* toi2 = new TOISegmented(1024);
[1693]29 r2.addOutput("boloMuV_11", toi2);
30
31 w1.addInput("143K01", toi1);
32 w1.addInput("143K02", toi2);
33
[1710]34 // w2.addInput("143K01", toi1);
35 // w2.addInput("143K02", toi2);
[1693]36
37 cout << "starting" << endl;
38
39 r1.start();
40 r2.start();
41 w1.start();
[1710]42 //w2.start();
[1693]43
44 cout << "joining" << endl;
45 mgr->joinAll();
46 return(0);
47}
Note: See TracBrowser for help on using the repository browser.