21 int main(
int argc,
char **argv)
32 JParser<> zap(
"Main program to create table of CDFs from table of PDFs for Cherenkov light from EM-shower.");
41 catch(
const exception& error) {
42 FATAL(error.what() << endl);
49 typedef JMAPLIST<JPolint1FunctionalMap,
50 JPolint1FunctionalMap,
51 JPolint1FunctionalGridMap,
52 JPolint1FunctionalGridMap>::maplist JMapList_t;
53 typedef JPDFTable<JSplineFunction1S_t, JMapList_t> JPDF_t;
54 typedef JCDFTable<JSplineFunction1D_t, JMapList_t> JCDF_t;
60 NOTICE(
"loading input from file " << inputFile <<
"... " << flush);
62 pdf.load(inputFile.c_str());
66 catch(
const JException& error) {
67 FATAL(error.what() << endl);
70 NOTICE(
"converting... " << flush);
72 JCDF_t cdf(pdf, epsilon);
84 catch(
const JException& error) {
85 NOTICE(error.what() << endl);