30 int main(
int argc,
char **argv)
48 JParser<> zap(
"Program to plot PDF of Cherenkov light from muon using interpolation tables.");
57 catch(
const exception &error) {
58 FATAL(error.what() << endl);
62 typedef JHermiteSplineFunction1D_t JFunction1D_t;
63 typedef JMAPLIST<JPolint1FunctionalMap,
64 JPolint1FunctionalGridMap,
65 JPolint1FunctionalGridMap>::maplist JMapList_t;
66 typedef JCDFTable<JFunction1D_t, JMapList_t> JCDF_t;
68 typedef JCDFTable1D<JFunction1D_t::argument_type, JFunction1D_t::result_type> JCDF1D_t;
74 NOTICE(
"loading input from file " << inputFile <<
"... " << flush);
76 function.load(inputFile.c_str());
80 catch(
const JException& error) {
81 FATAL(error.what() << endl);
90 1000,
function.intensity.getXmin(),
function.intensity.getXmax());
92 for (
int i = 1;
i <= h0.GetNbinsX(); ++
i) {
94 const double R = h0.GetBinCenter(
i);
95 const double y = integral.getNPE(R);
97 h0.SetBinContent(
i, 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