30int main(
int argc, 
char **argv)
 
   46    JParser<> zap(
"Auxiliary program to download default detector from database.");
 
   48    zap[
's'] = 
make_field(server)        = getServernames();
 
   52    zap[
'D'] = 
make_field(
id,            
"detector identifier");
 
   54    zap[
'V'] = 
make_field(variant,       
"detector version")      = getDetectorVersions<string>();
 
   59  catch(
const exception &error) {
 
   60    FATAL(error.what() << endl);
 
   66    JDB::reset(usr, pwd, cookie);
 
   68    id = getDetector<string>(
id);
 
   89    for (
const auto& key : { TCAL, PCAL, RCAL, ACAL, CCAL, SCAL }) {
 
   92        FATAL(
"Missing " << key << 
" calibration." << endl);
 
   98    *(JDB::get()->DetX)(
id.c_str(),
 
  105                        getDetectorVersion(variant))                  >>  
detector;
 
  109  catch(
const exception& error) {
 
  110    FATAL(error.what() << endl);