#include <PndMvdMQFileSampler.h>
#include <csignal>
#include "FairMQLogger.h"
#include "runSimpleMQStateMachine.h"
Go to the source code of this file.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
std
FairRoot - FairMQ - base/MQ
Definition at line 15 of file MvdOfflineTBAnalysis_Topix4/MQ/runFileSampler.cxx.
References PndMvdMQFileSampler::AddInputBranchName(), PndMvdMQFileSampler::AddInputFileName(), filename, and PndMvdMQFileSampler::SetMaxIndex().
20 std::string branchname;
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";
void AddInputFileName(std::string tempString)
void SetMaxIndex(int64_t tempInt)
void AddInputBranchName(std::string tempString)