65 JParser<> zap(
"Auxiliary program to print run setup parameters from the database.");
77 catch(
const exception& error) {
78 FATAL(error.what() << endl);
84 JPMTThreshold getPMTThreshold;
93 getPMTThreshold.configure(
id, run);
95 DEBUG(getPMTThreshold);
97 ResultSet& rs =
getResultSet(getTable<JDetectorIntegration>(), getSelector<JDetectorIntegration>(
id));
105 catch(
const exception& error) {
106 FATAL(error.what() << endl);
111 for (detector_type::const_iterator i =
detector.begin(); i !=
detector.end(); ++i) {
113 if (i->PMTID != -1) {
117 const JPMTThreshold::result_type threshold = getPMTThreshold(i->PMTUPI);
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;
127 catch(
const exception& error) {
128 ERROR(error.what() << endl);
Utility class to parse command line options.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
JDetectorsHelper getDetector
Function object for mapping serial number to object identifier of detector and vice versa...
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
bool is_integer(const std::string &buffer)
Check if string is an integer.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
ResultSet & getResultSet(const std::string &query)
Get result set.
std::vector< JServer > getServernames()
Get list of names of available database servers.
do set_variable DETECTOR_TXT $WORKDIR detector