1 #include <TApplication.h>
2 #include "HepMC3ViewerFrame.h"
3 int main(
int argc,
char **argv)
7 fprintf(stderr,
"%s: only one optional argument is supported: the name of file to open.\n", argv[0]);
10 TApplication theApp(
"App", &argc, argv);
14 fprintf(stderr,
"%s: cannot run in batch mode\n", argv[0]);
18 if (theApp.Argc()>1) G->
ReadFile(theApp.Argv()[1]);
int main(int argc, char **argv)
Definition of class HepMC3ViewerFrame used for simple GUI viewer.
void ReadFile(const char *a)
Open file.