#include "toi.h" #include "toisegment.h" #include "toiprocessor.h" #include "fitstoirdr.h" #include "fitstoiwtr.h" #include "toisqfilter.h" #include "toimanager.h" int main(int argc, char** argv) { cout << "tsttoi starting" << endl; TOIManager* mgr = TOIManager::getManager(); mgr->setRequestedSample(104001000,104003000); FITSTOIReader r1(argv[1]); r1.addFile(argv[2]); FITSTOIWriter w(argv[3]); TOI* toi1 = new TOISegmented(); r1.addOutput("boloMuV_8", toi1); // TOI* toi2 = new TOISegmented(); // r2.addOutput("boloMuV_11", toi2); w.addInput("143K01", toi1); // w.addInput("143K02", toi2); cout << "starting" << endl; r1.start(); // r2.start(); w.start(); cout << "joining" << endl; mgr->joinAll(); return(0); }