source: Sophya/trunk/ArchTOIPipe/TestPipes/tsttoi.cc@ 4054

Last change on this file since 4054 was 1480, checked in by aubourg, 24 years ago

join & merge

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