30 int main(
int argc,
char **argv)
48 JParser<> zap(
"Program to plot PDF of Cherenkov light from shower using interpolation tables.");
57 catch(
const exception &error) {
58 FATAL(error.what() << endl);
62 typedef JHermiteSplineFunction1D_t JFunction1D_t;
63 typedef JMAPLIST<JPolint1FunctionalMap,
64 JPolint1FunctionalMap,
65 JPolint1FunctionalGridMap,
66 JPolint1FunctionalGridMap>::maplist JMapList_t;
67 typedef JCDFTable<JFunction1D_t, JMapList_t> JCDF_t;
69 typedef JCDFTable2D<JFunction1D_t::argument_type, JFunction1D_t::result_type> JCDF2D_t;
75 NOTICE(
"loading input from file " << inputFile <<
"... " << flush);
77 function.load(inputFile.c_str());
81 catch(
const JException& error) {
82 FATAL(error.what() << endl);
91 200,
function.intensity.getXmin(),
function.intensity.getXmax(),
94 for (
int ix = 1; ix <= h0.GetXaxis()->GetNbins(); ++ix) {
95 for (
int iy = 1; iy <= h0.GetYaxis()->GetNbins(); ++iy) {
97 const double R = h0.GetXaxis()->GetBinCenter(ix);
98 const double cd = h0.GetYaxis()->GetBinCenter(iy);
99 const double y = integral.getNPE(R, cd);
101 h0.SetBinContent(ix, iy, y);
Utility class to parse command line options.
int main(int argc, char *argv[])
#define gmake_property(A)
macros to convert (template) parameter to JPropertiesElement object
double safetyFactor
safety factor for average CDF integral of optical module
Utility class to parse parameter values.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Utility class to parse parameter values.
Various implementations of functional maps.
Numbering scheme for PDF types.
I/O formatting auxiliaries.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
then JCookie sh JDataQuality D $DETECTOR_ID R
Utility class to parse command line options.
int numberOfBins
number of bins for average CDF integral of optical module