18 int main(
int argc, 
char **argv)
 
   24   JModuleLocation location;
 
   29     JParser<> zap(
"Auxiliary program to print module identifier for a given module location." 
   30                   "\nInteractive mode in absence of option -L <location>.");
 
   32     zap[
'a'] = 
make_field(detectorFile, 
"Detector file");
 
   33     zap[
'L'] = 
make_field(location,     
"Module location")     = JModuleLocation();
 
   38   catch(
const exception &error) {
 
   39     FATAL(error.what() << endl);
 
   46     load(detectorFile, detector);
 
   48   catch(
const JException& error) {
 
   52   if (location != JModuleLocation()) {
 
   54     cout << detector.getModule(location).getID() << endl;
 
   58     while (cin >> location && location != JModuleLocation()) {
 
   59       cout << detector.getModule(location).getID() << endl;