Auxiliary program to print trigger parameters.
More...
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include "JTrigger/JTriggerParameters.hh"
#include "JDB/JDB.hh"
#include "JDB/JDBToolkit.hh"
#include "JDB/JSelector.hh"
#include "JDB/JSelectorSupportkit.hh"
#include "JDB/JRuns.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 trigger parameters.
- Author
- lnauta
Definition in file examples/JDB/JPrintTriggerParameters.cc.
◆ main()
int main |
( |
const int |
argc, |
|
|
const char *const |
argv[] |
|
) |
| |
Definition at line 25 of file examples/JDB/JPrintTriggerParameters.cc.
41 JParser<> zap(
"Auxiliary program to print trigger parameters.");
53 catch(
const exception& error) {
54 FATAL(error.what() << endl);
58 const double Dmax_m = 9999.0;
65 catch(
const exception& error) {
66 FATAL(error.what() << endl);
69 const int ID = getDetector<int> (detid);
70 detid = getDetector<string>(detid);
86 catch(
const exception& error) {
87 FATAL(error.what() << endl);
99 while (rs >> buffer) {
103 if (pos != string::npos) {
107 zmap[buffer.
OID] = buffer.
NAME.erase(0, pos + 1);
113 catch(
const exception& error) {
114 FATAL(error.what() << endl);
126 while (rs >> buffer) {
130 if (i != zmap.end()) {
131 data << i->second <<
"=" << buffer.
VALUE <<
";\n";
137 catch(
const exception& error) {
138 FATAL(error.what() << endl);
143 parameters.set(Dmax_m);
144 parameters.actionAtFileRead();
#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.
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.