32int main(
int argc,
char **argv)
38 string fileDescriptor;
43 JParser<> zap(
"Program to convert multi-dimensional histograms of muon light to multi-dimensional PDFs.");
51 catch(
const exception &error) {
56 if (!hasWildCard(fileDescriptor)) {
57 FATAL(
"error file descriptor " << fileDescriptor <<
endl);
81 for (JMultiHistogram_t* p : { &h0, &h1, &h2 }) {
90 for (JMultiHistogram_t::super_iterator
91 i0 = h0.super_begin(),
92 i1 = h1.super_begin(),
93 i2 = h2.super_begin();
i0 != h0.super_end(); ++
i0, ++
i1, ++
i2) {
95 const double W =
i0.getValue().getIntegral();
100 const JDirection3D v(getSinThetaC(), 0.0, getCosThetaC());
102 int number_of_bins = (
int) (2 +
u.getDot(v));
115 const JPDFType_t type;
116 const JMultiHistogram_t& value;
120 { SCATTERED_LIGHT_FROM_MUON, h1 },
121 { SCATTERED_LIGHT_FROM_EMSHOWERS, h2 }
130 for (
int i = 0; i !=
sizeof(
ntuple)/
sizeof(
ntuple[0]); ++i) {
132 const string file_name = getFilename(fileDescriptor,
ntuple[i].type);
136 NOTICE(
"storing output to file " << file_name <<
"... " << flush);
138 const JPDF_t pdf(
ntuple[i].value);
140 pdf.store(file_name.c_str());
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.
Binary buffered file input.
JReader & load(JSerialisable &object)
Read object.
virtual const char * what() const override
Get error message.
Template definition of a multi-dimensional oscillation probability interpolation table.
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).