26int main(
int argc, 
char **argv)
 
   41    JParser<> zap(
"Auxiliary program to check detector integration.");
 
   43    zap[
's'] = 
make_field(server)        = getServernames();
 
   47    zap[
'D'] = 
make_field(detid,        
"Detector identifier");
 
   52  catch(
const exception &error) {
 
   53    FATAL(error.what() << endl);
 
   59    JDB::reset(usr, pwd, cookie);
 
   61    const int ID = getDetector<int>   (detid);
 
   62    detid        = getDetector<string>(detid);
 
   66    detector_type detectorA;
 
   73        if (parameters.PMTUPI.getPBS() == PBS::PMT) {
 
   74          detectorA[parameters.PMTUPI] = 
JLocation_t(parameters.DUID, parameters.FLOORID, parameters.CABLEPOS);
 
   85      ResultSet& rs  = getResultSet(getTable<JDetectorIntegration_t>());
 
   87      if (! (rs >> detectorB)) {
 
   97    for (detector_type::const_iterator i = detectorA.begin(); i != detectorA.end(); ++i) {
 
  102      cout << locationA << 
' ' << locationB << 
' ' << (locationA != locationB ? 
"*" : 
"") << endl;
 
  105  catch(
const exception& error) {
 
  106    FATAL(error.what() << endl);