Example program to test detector reading using KM3NETDB::JDB.  
More...
#include <iostream>
#include <iomanip>
#include "JDB/JDB.hh"
#include "JDetector/JDetector.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test detector reading using KM3NETDB::JDB. 
- Author
 - mdejong 
 
Definition in file JDB.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 17 of file JDB.cc.
   32     JParser<> zap(
"Example program to test detector reading from data base.");
 
   45   catch(
const exception &error) {
 
   46     FATAL(error.what() << endl);
 
   50   using namespace KM3NETDB;
 
   52   if      (usr != 
"" && pwd != 
"")
 
   54   else if (cookie != 
"")
 
   57     FATAL(
"Must provide either username (with password) or cookie." << endl);
 
   60   if (!t0set.empty() && !calibset.empty())
 
   61     *
JDB::get()->DetX(
id.c_str(), run, t0set.c_str(), calibset.c_str()) >> detector;
 
   63     *
JDB::get()->DetX(
id.c_str(), run) >> detector;
 
   65   cout << detector << endl;
 
Utility class to parse command line options. 
 
void reset(JCLBInput &data, size_t size)
Reset CLB buffers. 
 
T get(const JHead &head)
Get object from header. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object