#include #include #include #include #include "JDAQ/JHighRateVeto.hh" #include "Jeep/JPrint.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Example program to print high-rate veto related quantities. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; using namespace KM3NETDAQ; double R_Hz; int debug; try { JParser<> zap("Example program to print high-rate veto related quantities."); zap['B'] = make_field(R_Hz); zap['d'] = make_field(debug) = 2; zap(argc, argv); } catch(const exception& error) { FATAL(error.what() << endl); } cout << "High-rate veto [Hz] " << HIGH_RATE_VETO_HZ << endl; cout << "Maximal number of hits " << getMaximalNumberOfHits() << endl; cout << "Maximal time [ns] " << getMaximalTime(R_Hz) << endl; }