28   inline bool compare(
const JDetectorIntegration& 
first, 
const JDetectorIntegration& second)
 
   30     if (first.DUID == second.DUID) {
 
   32       if (first.FLOORID == second.FLOORID)
 
   33         return first.
CABLEPOS < second.CABLEPOS;
 
   35         return first.FLOORID < second.FLOORID;
 
   39       return first.DUID < second.DUID;
 
   50 int main(
const int argc, 
const char * 
const argv[])
 
   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;
 
   91     const int id = getDetector<int>(detid);
 
   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. 
 
int main(int argc, char *argv[])
 
*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
 
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
I/O formatting auxiliaries. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
Utility class to parse command line options. 
 
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