32 int main(
int argc, 
char **argv)
 
   43     JParser<> zap(
"Program to add multi-dimensional histograms of shower light");
 
   49     if (zap.
read(argc, argv) != 0)
 
   52   catch(
const exception &error) {
 
   53     FATAL(error.what() << endl);
 
   60                                        JMAPLIST<JHistogramMap_t,
 
   64                                                 JHistogramGridMap_t>::maplist> JMultiHistogram_t;
 
   66   typedef JPDFTransformer<5, abscissa_type>                         JFunction5DTransformer_t;
 
   71   h1.transformer.reset(
new JFunction5DTransformer_t());
 
   77     NOTICE(
"loading input from file " << *file_name << 
"... " << flush);
 
   81       JFileStreamReader 
in(file_name->c_str());
 
   88         p1.transformer.reset(
new JFunction5DTransformer_t());
 
   90         for(JMultiHistogram_t* p : { &p0, &p1 }) {
 
  100         double integral1 = 0.0;
 
  101         double integral2 = 0.0;
 
  103         for(JMultiHistogram_t::super_iterator
 
  104               i0 = h0.super_begin(), i1 = h1.super_begin(),
 
  105               j0 = p0.super_begin(), j1 = p1.super_begin(); i1 != h1.super_end(); ++i0, ++i1, ++j0, ++j1) {
 
  107           integral1 += i0.getValue().getIntegral();
 
  109           i0.getValue().add(j0.getValue());
 
  110           i1.getValue().add(j1.getValue());
 
  112           integral2 += i0.getValue().getIntegral();
 
  117         for(JMultiHistogram_t* p : { &h0, &h1 }) {
 
  128     catch(
const JException& error) {
 
  129       FATAL(error.what() << endl);
 
  137   for (
const JMultiHistogram_t* p : { &h0, &h1 }) {
 
  142   NOTICE(
"JAddHDE done." << endl);
 
Utility class to parse command line options. 
 
int main(int argc, char *argv[])
 
Various implementations of functional maps. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
General purpose messaging. 
 
int read(const int argc, const char *const argv[])
Parse the program's command line options. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
Utility class to parse command line options.