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 muon.");
41 catch(
const exception& error) {
42 FATAL(error.what() << endl);
48 typedef JMAPLIST<JPolint1FunctionalMap,
49 JPolint1FunctionalGridMap,
50 JPolint1FunctionalGridMap>::maplist JMapList_t;
51 typedef JPDFTable<JSplineFunction1S_t, JMapList_t> JPDF_t;
52 typedef JCDFTable<JSplineFunction1D_t, JMapList_t> JCDF_t;
58 NOTICE(
"loading input from file " << inputFile <<
"... " << flush);
60 pdf.load(inputFile.c_str());
64 catch(
const JException& error) {
65 FATAL(error.what() << endl);
68 NOTICE(
"converting... " << flush);
70 JCDF_t cdf(pdf, epsilon);
82 catch(
const JException& error) {
83 FATAL(error.what() << endl);