#include #include #include "JDB/JDB.hh" #include "JDB/JDBToolkit.hh" #include "JDB/JSelector.hh" #include "JDB/JSelectorSupportkit.hh" #include "JDB/JPMTThreshold.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * Auxiliary program to print PMT thresholds. * \author lnauta */ int main(const int argc, const char * const argv[]) { using namespace std; using namespace JPP; JServer server; string usr; string pwd; string cookie; string detid; int run; int debug; try { JParser<> zap("Auxiliary program to print PMT thresholds."); zap['s'] = make_field(server) = getServernames(); zap['u'] = make_field(usr) = ""; zap['!'] = make_field(pwd) = ""; zap['C'] = make_field(cookie) = ""; zap['D'] = make_field(detid); zap['r'] = make_field(run); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception& error) { FATAL(error.what() << endl); } try { JDB::reset(usr, pwd, cookie); JPMTThreshold getPMTThreshold(getDetector(detid), run); cout << getPMTThreshold; } catch(const exception& error) { FATAL(error.what() << endl); } }