33int main(
int argc,
char **argv)
43 JParser<> zap(
"Program to convert multi-dimensional histograms of shower light to multi-dimensional PDFs.");
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
70 h1.transformer.reset(
new JFunction5DTransformer_t());
74 NOTICE(
"Loading in input, " << flush);
78 for (JMultiHistogram_t* p : { &h0, &h1 }) {
88 for (JMultiHistogram_t::super_iterator
89 i0 = h0.super_begin(),
90 i1 = h1.super_begin(); i1 != h1.super_end(); ++i0, ++i1) {
92 const double W = i0.getValue().getIntegral();
97 const JDirection3D v(getSinThetaC(), 0.0, getCosThetaC());
99 int number_of_bins = (int) (2 + u.
getDot(v));
102 i1.getValue().div(W);
110 const JMultiHistogram_t& value;
123 const JPDF_t pdf(h1);
130 FATAL(error.what() << endl);
132 NOTICE(
"JMakeHDE done." << endl);
Various implementations of functional maps.
int main(int argc, char **argv)
General purpose messaging.
Numbering scheme for PDF types.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Data structure for angles in three dimensions.
Data structure for direction in three dimensions.
double getDot(const JAngle3D &angle) const
Get dot product.
Binary buffered file input.
JReader & load(JSerialisable &object)
Read object.
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).