32int main(
int argc,
char **argv)
43 JParser<> zap(
"Program to add multi-dimensional histograms of shower light");
51 catch(
const exception &error) {
52 FATAL(error.what() << endl);
69 h1.transformer.reset(
new JFunction4DTransformer_t());
73 for(vector<string>::const_iterator file_name = inputFile.begin(); file_name != inputFile.end(); ++file_name) {
75 NOTICE(
"loading input from file " << *file_name <<
"... " << flush);
86 p1.transformer.reset(
new JFunction4DTransformer_t());
88 for(JMultiHistogram_t* p : { &p0, &
p1 }) {
98 for(JMultiHistogram_t::super_iterator
99 i0 = h0.super_begin(), i1 = h1.super_begin(),
100 j0 = p0.super_begin(), j1 =
p1.super_begin(); i1 != h1.super_end(); ++i0, ++i1, ++j0, ++j1) {
102 i0.getValue().add(j0.getValue());
103 i1.getValue().add(j1.getValue());
108 for(JMultiHistogram_t* p : { &h0, &h1 }) {
126 NOTICE(
"Storing, " << flush);
128 for (
const JMultiHistogram_t* p : { &h0, &h1 }) {