32 int main(
int argc,
char **argv)
43 JParser<> zap(
"Program to add multi-dimensional histograms of muon light");
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
69 h1.transformer.reset(
new JFunctionTransformer_t());
70 h2.transformer.reset(
new JFunctionTransformer_t());
76 NOTICE(
"loading input from file " << *file_name <<
"... " << flush);
88 p1.transformer.reset(
new JFunctionTransformer_t());
89 p2.transformer.reset(
new JFunctionTransformer_t());
91 for(JMultiHistogram_t* p : { &p0, &
p1, &p2 }) {
101 for(JMultiHistogram_t::super_iterator
102 i0 = h0.super_begin(), i1 = h1.super_begin(), i2 = h2.super_begin(),
103 j0 = p0.super_begin(), j1 =
p1.super_begin(), j2 = p2.super_begin();
104 i0 != h0.super_end(); ++i0, ++i1, ++i2, ++j0, ++j1, ++j2)
106 i0.getValue().add(j0.getValue());
107 i1.getValue().add(j1.getValue());
108 i2.getValue().add(j2.getValue());
113 for(JMultiHistogram_t* p : { &h0, &h1, &h2 }) {
131 NOTICE(
"Storing, " << flush);
133 for (
const JMultiHistogram_t* p : { &h0, &h1, &h2 }) {
int main(int argc, char **argv)
Various implementations of functional maps.
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Binary buffered file input.
Binary buffered file output.
JReader & load(JSerialisable &object)
Read object.
JWriter & store(const JSerialisable &object)
Write object.
virtual const char * what() const override
Get error message.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).