#include <csignal>
#include "FairMQLogger.h"
#include "runSimpleMQStateMachine.h"
#include "PndMvdMQFileSamplerBursts.h"
Go to the source code of this file.
      
        
          | int main | ( | int | argc, | 
        
          |  |  | char ** | argv | 
        
          |  | ) |  |  | 
      
 
Definition at line 29 of file runFileSamplerBursts.cxx.
References PndMvdMQFileSamplerBursts::AddInputChannelBranchName(), PndMvdMQFileSamplerBursts::AddInputFileName(), filename, i, and PndMvdMQFileSamplerBursts::SetMaxIndex().
   38         po::options_description sampler_options(
"Sampler options");
 
   39         sampler_options.add_options()
 
   40           (
"file-name",   po::value<std::vector<std::string>>(&
filename)                     , 
"Path to the input file")
 
   41           (
"max-index",   po::value<int64_t>                 (&maxindex)  ->default_value(-1), 
"number of events to read")
 
   42           (
"branch-name", po::value<channelBranches>(&branchnames) ->multitoken()                  , 
"branch name");
 
   45         FairMQProgOptions config;
 
   46         config.AddToCmdLineOptions(sampler_options);
 
   48         config.ParseAll(argc, argv);
 
   52         for ( 
unsigned int ielem = 0 ; ielem < filename.size() ; ielem++ ) {
 
   58         for(
int i = 0; 
i < branchnames.size(); 
i++){
 
   59                 LOG(INFO) << 
"BranchNames: " << branchnames[
i].first << 
"/" << branchnames[
i].second;
 
   65     runStateMachine(sampler, config);
 
   69     catch (std::exception& e)
 
   71         LOG(ERROR)  << 
"Unhandled Exception reached the top of main: "  
   72                     << e.what() << 
", application will now exit";
 
void AddInputFileName(std::string tempString)
std::vector< std::pair< std::string, std::string > > channelBranches
std 
void AddInputChannelBranchName(std::pair< std::string, std::string > tempString)
void SetMaxIndex(int64_t tempInt)