forked from ASTRO-BO/DAQStreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
31 lines (25 loc) · 797 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "CameraEventStreamer.h"
#include "DebugWorker.h"
#include "Processor.h"
int main(int argc, char* argv[])
{
if(argc <= 2)
{
std::cout << "Wrong arguments, please provide the .xml or .stream and the raw input file." << std::endl;
std::cout << "Example: " << argv[0] << " rta_fadc_all.xml Aar.raw" << std::endl;
return 1;
}
std::string conf_filename = argv[1];
std::string input_filename = argv[2];
RTA::CameraEventStreamer streamer(conf_filename, input_filename, 10000);
streamer.addConnection(ZMQ_PUSH, "tcp://*:12345");
streamer.start();
streamer.join();
/* CTATools::Core::Processor<RTA::DebugWorker> dbgProc("0", 1);
CTATools::Core::Streamer::connect(streamer, dbgProc);
streamer.start();
dbgProc.start();
streamer.join();
dbgProc.join();*/
return 0;
}