Auxiliary program to print run setup data.  
More...
#include <string>
#include <iostream>
#include <map>
#include "JDB/JDB.hh"
#include "JDB/JDBToolkit.hh"
#include "JDB/JSelector.hh"
#include "JDB/JSelectorSupportkit.hh"
#include "JDB/JAllParams.hh"
#include "JDB/JRunsetupParams.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (const int argc, const char *const argv[]) | 
|   | 
Auxiliary program to print run setup data. 
- Author
 - lnauta 
 
Definition in file JPrintRunsetup.cc.
 
      
        
          | int main  | 
          ( | 
          const int  | 
          argc,  | 
        
        
           | 
           | 
          const char *const  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 21 of file JPrintRunsetup.cc.
   36     JParser<> zap(
"Auxiliary program to print run setup data.");
 
   48   catch(
const exception& error) {
 
   49     FATAL(error.what() << endl);
 
   57     detid = getDetector<string>(detid);
 
   64       for (JAllParams buffer; rs >> buffer; ) {
 
   65         umap[buffer.OID] = buffer.NAME;
 
   71     ResultSet& rs = 
getResultSet(getTable<JRunsetupParams>(), getSelector<JRunsetupParams>(detid, rs_oid));
 
   73     for (JRunsetupParams buffer; rs >> buffer; ) {
 
   74       cout << setw(24) << left << buffer.UPIFILTER << right << 
" " << buffer.PAR_OID << 
" -> " << umap[buffer.PAR_OID] << 
" = " << buffer.VALUE << endl;
 
   77   catch(
const exception& error) {
 
   78     FATAL(error.what() << endl);
 
Utility class to parse command line options. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
ResultSet & getResultSet(const std::string &query)
Get result set. 
 
std::vector< JServer > getServernames()
Get list of names of available database servers.