Line | |
---|
1 | #include "toi.h"
|
---|
2 | #include "toiprocessor.h"
|
---|
3 | #include "fitstoirdr.h"
|
---|
4 | #include "fitstoiwtr.h"
|
---|
5 | #include "toisqfilter.h"
|
---|
6 | #include "toimanager.h"
|
---|
7 |
|
---|
8 | int main(int argc, char** argv) {
|
---|
9 | cout << "tsttoi starting" << endl;
|
---|
10 | TOIManager* mgr = TOIManager::getManager();
|
---|
11 | mgr->setRequestedSample(11680920,11710584);
|
---|
12 | TOISqFilter f;
|
---|
13 | FITSTOIReader r(argv[1]); cout << "reader created" << endl;
|
---|
14 | FITSTOIWriter w(argv[2]);
|
---|
15 |
|
---|
16 |
|
---|
17 | TOI* toi = new TOIRegularWindow("t1");
|
---|
18 | // toi->dbg=true;
|
---|
19 | r.addOutput("boloMuV_11", toi);
|
---|
20 | f.addInput("signal", toi);
|
---|
21 |
|
---|
22 | toi = new TOIRegularWindow("t2");
|
---|
23 | // toi->dbg = true;
|
---|
24 | f.addOutput("out", toi);
|
---|
25 | w.addInput("bolo_filtered", toi);
|
---|
26 |
|
---|
27 | cout << "starting" << endl;
|
---|
28 |
|
---|
29 | r.start();
|
---|
30 | w.start();
|
---|
31 | f.start();
|
---|
32 |
|
---|
33 | cout << "joining" << endl;
|
---|
34 | mgr->joinAll();
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.