wire-cell.cxx
Go to the documentation of this file.
1 /** CLI to WireCell::Main. */
2 
3 #include "WireCellApps/Main.h"
5 
6 #include <iostream>
7 
8 using namespace WireCell;
9 using namespace std;
10 
11 int main(int argc, char* argv[])
12 {
13  Main m;
14  int rc = 0;
15 
16  try {
17  rc = m.cmdline(argc, argv);
18  if (rc) { return rc; }
19  m.initialize();
20  m();
21  }
22  catch (Exception& e) {
23  cerr << errstr(e) << endl;
24  return 1;
25  }
26  return 0;
27 }
static const double m
Definition: Units.h:79
int cmdline(int argc, char *argv[])
Definition: Main.cxx:38
int main(int argc, char *argv[])
Definition: wire-cell.cxx:11
STL namespace.
#define errstr(e)
Definition: Exceptions.h:26
const double e
Definition: Main.h:22
The base wire cell exception.
Definition: Exceptions.h:31
void initialize()
Definition: Main.cxx:184
QTextStream & endl(QTextStream &s)