WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
wire-cell.cxx
Go to the documentation of this file.
1 
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 }
Definition: Main.h:22
int main(int argc, char *argv[])
Definition: wire-cell.cxx:11
If we are still before C++14, supply the fodder for doing the "indices trick".
Definition: format.h:297
int cmdline(int argc, char *argv[])
Definition: Main.cxx:38
#define errstr(e)
Definition: Exceptions.h:26
The base wire cell exception.
Definition: Exceptions.h:31
void initialize()
Definition: Main.cxx:184