7 #include "FairMQLogger.h"
8 #include "runSimpleMQStateMachine.h"
15 int main(
int argc,
char** argv)
20 std::string branchname;
23 namespace po = boost::program_options;
24 po::options_description sampler_options(
"Sampler options");
25 sampler_options.add_options()
26 (
"file-name", po::value<std::vector<std::string>>(&
filename) ,
"Path to the input file")
27 (
"max-index", po::value<int64_t> (&maxindex) ->default_value(-1),
"number of events to read")
28 (
"branch-name", po::value<std::string> (&branchname) ,
"branch name");
31 FairMQProgOptions config;
32 config.AddToCmdLineOptions(sampler_options);
34 config.ParseAll(argc, argv);
38 for (
unsigned int ielem = 0 ; ielem < filename.size() ; ielem++ ) {
48 runStateMachine(sampler, config);
52 catch (std::exception& e)
54 LOG(ERROR) <<
"Unhandled Exception reached the top of main: "
55 << e.what() <<
", application will now exit";
int main(int argc, char **argv)
void AddInputFileName(std::string tempString)
void SetMaxIndex(int64_t tempInt)
void AddInputBranchName(std::string tempString)