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