-
Stephen A. Wood authored
We'll start with version 0.90.0 and increment the second number up to 99. Goal is to declare a verison 1.0.0 sometime over the summer. To change the version, edit both SConscript.py and Makefile.
Stephen A. Wood authoredWe'll start with version 0.90.0 and increment the second number up to 99. Goal is to declare a verison 1.0.0 sometime over the summer. To change the version, edit both SConscript.py and Makefile.
main.C 946 B
//////////////////////////////////////////////////////////////////////////
//
// The Hall A analyzer interactive interface
//
//////////////////////////////////////////////////////////////////////////
#include "THcInterface.h"
#include <iostream>
#include <cstring>
using namespace std;
int main(int argc, char **argv)
{
// Create a ROOT-style interactive interface
// Handle convenience command line options
bool print_version = false, no_logo = false;
for( int i=1; i<argc; ++i ) {
if( !strcmp(argv[i],"-l") )
no_logo = true;
else if( !strcmp(argv[1],"-v") || !strcmp(argv[1],"--version") ) {
print_version = true;
break;
}
}
if( print_version ) {
cout << THcInterface::GetVersionString() << endl;
return 0;
}
TApplication *theApp =
new THcInterface( "The Hall C analyzer", &argc, argv, 0, 0, no_logo );
theApp->Run(kFALSE);
cout << endl;
delete theApp;
return 0;
}