Jpp
18.5.0
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JDB
software/JDB/JPrintPMTThreshold.cc
Go to the documentation of this file.
1
#include <string>
2
#include <iostream>
3
4
#include "
JDB/JDB.hh
"
5
#include "
JDB/JDBToolkit.hh
"
6
#include "
JDB/JSelector.hh
"
7
#include "
JDB/JSelectorSupportkit.hh
"
8
#include "
JDB/JPMTThreshold.hh
"
9
10
#include "
Jeep/JParser.hh
"
11
#include "
Jeep/JMessage.hh
"
12
13
14
/**
15
* \file
16
* Auxiliary program to print PMT thresholds.
17
* \author lnauta
18
*/
19
int
main
(
const
int
argc,
const
char
*
const
argv[])
20
{
21
using namespace
std;
22
using namespace
JPP;
23
24
JServer server;
25
string
usr;
26
string
pwd;
27
string
cookie;
28
string
detid;
29
int
run;
30
int
debug
;
31
32
try
{
33
34
JParser<>
zap(
"Auxiliary program to print PMT thresholds."
);
35
36
zap[
's'
] =
make_field
(server) =
getServernames
();
37
zap[
'u'
] =
make_field
(usr) =
""
;
38
zap[
'!'
] =
make_field
(pwd) =
""
;
39
zap[
'C'
] =
make_field
(cookie) =
""
;
40
zap[
'D'
] =
make_field
(detid);
41
zap[
'r'
] =
make_field
(run);
42
zap[
'd'
] =
make_field
(
debug
) = 1;
43
44
zap(argc, argv);
45
}
46
catch
(
const
exception& error) {
47
FATAL
(error.what() << endl);
48
}
49
50
51
try
{
52
53
JDB::reset
(usr, pwd, cookie);
54
55
JPMTThreshold getPMTThreshold(getDetector<int>(detid), run);
56
57
cout << getPMTThreshold;
58
}
59
catch
(
const
exception& error) {
60
FATAL
(error.what() << endl);
61
}
62
}
JPARSER::JParser
Utility class to parse command line options.
Definition:
JParser.hh:1514
main
int main(int argc, char *argv[])
Definition:
Main.cc:15
JDBToolkit.hh
JSelector.hh
JPMTThreshold.hh
make_field
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition:
JParser.hh:1989
JMessage.hh
General purpose messaging.
FATAL
#define FATAL(A)
Definition:
JMessage.hh:67
JTOOLS::reset
void reset(T &value)
Reset value.
Definition:
JToolsToolkit.hh:219
JParser.hh
Utility class to parse command line options.
JDATABASE::getServernames
std::vector< JServer > getServernames()
Get list of names of available database servers.
Definition:
JDB.hh:106
JSelectorSupportkit.hh
JDB.hh
debug
int debug
debug level
Definition:
archive-put-wiki-detectors.sh:92
Generated by
1.8.5