FairRoot/PandaRoot
runPixelDigisProcessor.cxx
Go to the documentation of this file.
1 
3 #include <csignal>
4 
6 #include "FairMQLogger.h"
7 #include "runSimpleMQStateMachine.h"
8 
9 
10 // 9-PixelDetector example
12 
13 // ////////////////////////////////////////////////////////////////////////
14 namespace po = boost::program_options;
15 
16 using channelBranches = std::vector<std::pair<std::string, std::string> >;
17 
18 namespace std {
19  static inline std::istream& operator>>(std::istream& is, std::pair<std::string, std::string>& into)
20  {
21  char ch;
22  while (is >> ch && ch!='=') into.first += ch;
23  return is >> into.second;
24  }
25 }
26 
27 
28 
29 int main(int argc, char** argv)
30 {
31  try
32  {
33 
34  FairMQProgOptions config;
35 
36  config.ParseAll(argc, argv);
37 
39 
40 
41  runStateMachine(processor, config);
42 
43 
44  }
45  catch (std::exception& e)
46  {
47  LOG(ERROR) << "Unhandled Exception reached the top of main: "
48  << e.what() << ", application will now exit";
49  return 1;
50  }
51 
52  return 0;
53 }
int main(int argc, char **argv)
static std::istream & operator>>(std::istream &is, std::pair< std::string, std::string > &into)
std::vector< std::pair< std::string, std::string > > channelBranches
std
static int is
Definition: ranlxd.cxx:374