51{
   54 
   56  string   usr;
   57  string   pwd;
   58  string   cookie;
   59  string   detid;
   60  int      run;
   62 
   63  try {
   64 
   65    JParser<> zap(
"Auxiliary program to print run setup parameters from the database.");
 
   66 
   74 
   75    zap(argc, argv);
   76  }
   77  catch(const exception& error) {
   78    FATAL(error.what() << endl);
 
   79  }
   80 
   81 
   83 
   86 
   87  try {
   88 
   89    JDB::reset(usr, pwd, cookie);
   90 
   91    const int id = getDetector<int>(detid);
   92 
   94 
   95    DEBUG(getPMTThreshold);
 
   96 
   98 
  101    }
  102 
  103    rs.Close();
  104  }
  105  catch(const exception& error) {
  106    FATAL(error.what() << endl);
 
  107  }
  108 
  110 
  111  for (detector_type::const_iterator i = 
detector.begin(); i != 
detector.end(); ++i) {
 
  112 
  113    if (i->PMTID != -1) {
  114 
  115      try {
  116 
  117        const JPMTThreshold::result_type threshold = getPMTThreshold(i->PMTUPI);
  118 
  119        if (
debug >= debug_t || !threshold.is_default) {
 
  120          cout << setw(4) << i->DUID                << ' ' 
  121               << setw(2) << i->FLOORID             << ' ' 
  122               << setw(2) << i->CABLEPOS            << ' ' 
  123               << setw(3) << threshold.value        << ' '
  124               << (threshold.is_default ? "" : "*") << endl;
  125        }
  126      }
  127      catch(const exception& error) {
  128        ERROR(error.what() << endl);
 
  129      }
  130    }
  131  }
  132}
#define DEBUG(A)
Message macros.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Auxiliary class for PMT thresholds.
 
void configure(const int id, const int run)
Configure PMT thresholds for given detector and run.
 
Utility class to parse command line options.
 
ResultSet & getResultSet(const std::string &query)
Get result set.
 
std::vector< JServer > getServernames()
Get list of names of available database servers.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Wrapper class for server name.
 
Template definition for getting table specific selector.