Line | |
---|
1 | #include "toi.h"
|
---|
2 | #include "toiseqbuff.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(104001000,104003000);
|
---|
13 |
|
---|
14 | FITSTOIReader r1(argv[1]);
|
---|
15 | r1.addFile(argv[2]);
|
---|
16 | FITSTOIWriter w(argv[3]);
|
---|
17 |
|
---|
18 |
|
---|
19 | TOI* toi1 = new TOISeqBuffered();
|
---|
20 | r1.addOutput("boloMuV_8", toi1);
|
---|
21 |
|
---|
22 | // TOI* toi2 = new TOISeqBuffered();
|
---|
23 | // r2.addOutput("boloMuV_11", toi2);
|
---|
24 |
|
---|
25 | w.addInput("143K01", toi1);
|
---|
26 | // w.addInput("143K02", toi2);
|
---|
27 |
|
---|
28 | cout << "starting" << endl;
|
---|
29 |
|
---|
30 | r1.start();
|
---|
31 | // r2.start();
|
---|
32 | w.start();
|
---|
33 |
|
---|
34 | cout << "joining" << endl;
|
---|
35 | mgr->joinAll();
|
---|
36 | return(0);
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.