26{
   30 
   32  string   usr;
   33  string   pwd;
   34  string   cookie;
   35  string   detid;
   36  int      run;
   38 
   39  try {
   40 
   41    JParser<> zap(
"Auxiliary program to print trigger parameters.");
 
   42 
   50 
   51    zap(argc, argv);
   52  }
   53  catch(const exception& error) {
   54    FATAL(error.what() << endl);
 
   55  }
   56 
   57 
   58  const double Dmax_m = 9999.0;
   59 
   61 
   62  try {
   63    JDB::reset(usr, pwd, cookie);
   64  }
   65  catch(const exception& error) {
   66    FATAL(error.what() << endl);
 
   67  }
   68 
   71 
   72  string rs_oid;
   73 
   74  try {
   75 
   77 
   79 
   80    if (rs >> buffer) {
   82    }
   83 
   84    rs.Close();
   85  }
   86  catch(const exception& error) {
   87    FATAL(error.what() << endl);
 
   88  }
   89 
   90 
   92 
   93  try {
   94 
   96 
   98 
   99    while (rs >> buffer) {
  100 
  102 
  103      if (pos != string::npos) {
  104 
  106 
  107        zmap[buffer.
OID] = buffer.
NAME.erase(0, pos + 1);
 
  108      }
  109    }
  110 
  111    rs.Close();
  112  }
  113  catch(const exception& error) {
  114    FATAL(error.what() << endl);
 
  115  }
  116 
  117 
  119 
  120  try {
  121 
  123 
  125 
  126    while (rs >> buffer) {
  127 
  129 
  130      if (i != zmap.end()) {
  131        data << i->second << 
"=" << buffer.
VALUE << 
";\n";
 
  132      }
  133    }
  134 
  135    rs.Close();
  136  }
  137  catch(const exception& error) {
  138    FATAL(error.what() << endl);
 
  139  }
  140 
  142 
  143  parameters.set(Dmax_m);  
  144  parameters.actionAtFileRead();
  145 
  146  cout << parameters;
  147}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
ResultSet & getResultSet(const std::string &query)
Get result set.
 
const char * getTable()
Get table name.
 
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation.
 
static const std::string PREFIX_DATAFILTER
This string is prepended to every parameter in the database output for the corresponding process.
 
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).
 
KM3NeT DAQ data structures and auxiliaries.
 
Wrapper class for server name.
 
Template definition for getting table specific selector.