Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JHighRateVeto.cc
Go to the documentation of this file.
1
2#include <string>
3#include <iostream>
4#include <iomanip>
5#include <limits>
6
8
9#include "Jeep/JPrint.hh"
10#include "Jeep/JParser.hh"
11#include "Jeep/JMessage.hh"
12
13
14/**
15 * \file
16 *
17 * Example program to print high-rate veto related quantities.
18 * \author mdejong
19 */
20int main(int argc, char **argv)
21{
22 using namespace std;
23 using namespace JPP;
24 using namespace KM3NETDAQ;
25
26 double R_Hz;
27 int debug;
28
29 try {
30
31 JParser<> zap("Example program to print high-rate veto related quantities.");
32
33 zap['B'] = make_field(R_Hz);
34 zap['d'] = make_field(debug) = 2;
35
36 zap(argc, argv);
37 }
38 catch(const exception& error) {
39 FATAL(error.what() << endl);
40 }
41
42
43 cout << "High-rate veto [Hz] " << HIGH_RATE_VETO_HZ << endl;
44 cout << "Maximal number of hits " << getMaximalNumberOfHits() << endl;
45 cout << "Maximal time [ns] " << getMaximalTime(R_Hz) << endl;
46}
int main(int argc, char **argv)
General purpose messaging.
#define FATAL(A)
Definition JMessage.hh:67
int debug
debug level
Definition JSirene.cc:72
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition JParser.hh:2142
I/O formatting auxiliaries.
Utility class to parse command line options.
Definition JParser.hh:1698
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
Definition DataQueue.cc:39