23int main(
int argc,
char **argv)
38 JParser<> zap(
"Auxiliary program to add PDF tables of the arrival time of the Cherenkov light from an EM-shower.");
42 zap[
'R'] =
make_field(Rmax_m,
"maximal distance [m]") = numeric_limits<double>::max();
43 zap[
'T'] =
make_field(T_ns,
"time range [ns]") = JRange_t();
48 catch(
const exception &error) {
49 FATAL(error.what() << endl);
53 if (inputFile.empty()) {
54 FATAL(
"No input file(s)." << endl);
66 const JFunction1D_t::JSupervisor supervisor(
new JFunction1D_t::JDefaultResult(0.0));
68 for (vector<string>::const_iterator i = inputFile.begin(); i != inputFile.end(); ++i) {
72 NOTICE(
"loading input from file " << *i <<
"... " << flush);
76 buffer.load(i->c_str());
78 buffer.setExceptionHandler(supervisor);
92 pdf.compress(Rmax_m, T_ns);
103 FATAL(error << endl);
int main(int argc, char **argv)
Various implementations of functional maps.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to define a range between two values.
virtual const char * what() const override
Get error message.
Utility class to parse command line options.
Multi-dimensional PDF table for arrival time of Cherenkov light.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).