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.
35 JParser<> zap(
"Auxiliary program to print run setup data.");
46 catch(
const exception& error) {
47 FATAL(error.what() << endl);
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.
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.
ResultSet & getResultSet(const std::string &query)
Get result set.