Example program to test JTOOLS::JAutoMap class.
More...
#include <iostream>
#include <iomanip>
#include <string>
#include "JTools/JAutoMap.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
| namespace | JTOOLS |
| | Auxiliary classes and methods for multi-dimensional interpolations and histograms.
|
| |
Example program to test JTOOLS::JAutoMap class.
- Author
- mdejong
Definition in file JAutoMap.cc.
◆ main()
Definition at line 55 of file JAutoMap.cc.
56{
59
61
62 try {
63
64 JParser<> zap(
"Example program to test automatic generation of map based on data types.");
65
67
69 }
70 catch(const exception &error) {
72 }
73
74
75 typedef
80
81 {
83
85
87
88 for (JAutoMap_t::const_iterator i = zmap.begin(); i != zmap.end(); ++i) {
90 }
91 }
92
93 {
95
97
99
100 for (JAutoMap_t::const_iterator i = zmap.begin(); i != zmap.end(); ++i) {
101 cout <<
setw(2) << i->first <<
' ' << i->second <<
endl;
102 }
103 }
104}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).