Auxiliary program to print PMT thresholds.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <algorithm>
#include "JLang/JComparator.hh"
#include "JDetector/JDetectorCalibration.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
Auxiliary program to print PMT thresholds.
- Author
- mdejong
Definition in file examples/JCalibrate/JPrintPMTThreshold.cc.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 20 of file examples/JCalibrate/JPrintPMTThreshold.cc.
21{
24
25 string inputFile;
26 int threshold;
28
29 try {
30
31 JParser<> zap(
"Auxiliary program to print PMT thresholds.");
32
33 zap[
'f'] =
make_field(inputFile,
"PMT threshold file (json format)");
36
38 }
39 catch(const exception &error) {
41 }
42
43
45
47
49
51
52 try {
53
55
57
59 if (i->threshold >= threshold) {
61 }
62 }
63 }
64 catch(const exception& error) {
66 }
67}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
void close(std::istream *pf)
Close file.
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).