slicPandora/tests
diff -u -r1.5 -r1.6
--- PandoraFrontend.cpp 26 Oct 2010 08:42:25 -0000 1.5
+++ PandoraFrontend.cpp 5 Nov 2010 17:57:29 -0000 1.6
@@ -1,4 +1,4 @@
-//$Id: PandoraFrontend.cpp,v 1.5 2010/10/26 08:42:25 speckmay Exp $
+//$Id: PandoraFrontend.cpp,v 1.6 2010/11/05 17:57:29 jeremy Exp $
/**
* This is a simple frontend to run slicPandora. It takes an ordered list of arguments. (See usage method.)
@@ -17,8 +17,8 @@
void printUsage()
{
cout << "./bin/PandoraFrontend geometry.xml pandoraSettings.xml inputEvents.slcio reconOutput.slcio nevents skip" << endl << endl;
- cout << "The [nevents] argument is optional. By default, PandoraFrontend will run over all of the input events." << std::endl;
- cout << "The [skip] argument is optional. By default, PandoraFrontend will start at the first event." << std::endl;
+ cout << " The [nevents] argument is optional. By default, PandoraFrontend will run over all of the input events." << std::endl;
+ cout << " The [skip] argument is optional. By default, PandoraFrontend will start at the first event." << std::endl;
}
int main(int argc, char **argv)
@@ -45,7 +45,7 @@
// Number of events (optional).
int nevents = -1;
- if (nargs == 5)
+ if (nargs >= 5)
{
nevents = atoi(argv[5]);
}
@@ -63,7 +63,7 @@
cout << " pandoraSettings: " << pandoraSettings << endl;
cout << " inputEvents: " << inputEvents << endl;
cout << " outputEvents: " << outputEvents << endl;
- cout << " nevents: " << nevents << endl << endl;
+ cout << " nevents: " << nevents << endl;
cout << " skip: " << skipEvents << endl << endl;
// Create the job configuration from the command line arguments.