7 #include "FairMQLogger.h"
8 #include "GenericProcessor.h"
9 #include "runSimpleMQStateMachine.h"
10 #include "BoostSerializer.h"
11 #include "RootSerializer.h"
24 int main(
int argc,
char** argv) {
30 po::options_description processor_options(
"Processor options");
31 processor_options.add_options()(
"task-name",
32 po::value<std::string>(&taskname)->required(),
33 "Name of task to run")(
"keep-data",
34 po::value<std::string>(&keepdata),
35 "Name of data to keep in stream");
37 FairMQProgOptions config;
38 config.AddToCmdLineOptions(processor_options);
40 config.ParseAll(argc, argv);
42 if (strcmp(taskname.c_str(),
"PndMvdPixelClusterTask") == 0) {
45 runStateMachine(processor, config);
46 }
else if (strcmp(taskname.c_str(),
"PndMvdStripClusterTask") == 0) {
49 runStateMachine(processor, config);
51 LOG(INFO) <<
"TASK \"" << taskname <<
"\" UNKNOWN!!! " << strcmp(taskname.c_str(),
"PndMvdStripClusterTask");
55 }
catch (std::exception& e) {
56 LOG(ERROR) <<
"Unhandled Exception reached the top of main: "
57 << e.what() <<
", application will now exit";
void SetDataToKeep(std::string tStr)
int main(int argc, char **argv)