Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Functions
JHighRateVeto.cc File Reference

Example program to print high-rate veto related quantities. More...

#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include "JDAQ/JHighRateVeto.hh"
#include "Jeep/JPrint.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Example program to print high-rate veto related quantities.

Author
mdejong

Definition in file JHighRateVeto.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 20 of file JHighRateVeto.cc.

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 }
#define FATAL(A)
Definition: JMessage.hh:67
int debug
debug level
Definition: JSirene.cc:69
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Definition: JParser.hh:2142
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
size_t getMaximalNumberOfHits()
Get maximal number of hits from one PMT within data frame.
double getMaximalTime(const double R_Hz)
Get maximal time for given rate.
static double HIGH_RATE_VETO_HZ
High-rate veto [kHz].
Definition: JSTDTypes.hh:14