17{
20
22
24
26
27 try {
28
29 JParser<> zap(
"Program to test methods of `JROOT::JBinsMap`");
30
34
36 }
37 catch(const exception& error) {
39 }
40
42
44
45 if (i->second.find('z') != i->second.cend()) {
47 } else if (i->second.find('y') != i->second.cend()) {
49 } else if (i->second.find('x') != i->second.cend()) {
51 }
52
54
56
58
60
62
64 DEBUG (p->GetXaxis()->GetBinLowEdge(n) <<
" =?= " <<
Xbins[n-1] <<
endl);
65 ASSERT(p->GetXaxis()->GetBinLowEdge(n) ==
Xbins[n-1]);
66 }
67
69
71
73
75 DEBUG (p->GetYaxis()->GetBinLowEdge(n) <<
" =?= " <<
Ybins[n-1] <<
endl);
76 ASSERT(p->GetYaxis()->GetBinLowEdge(n) ==
Ybins[n-1]);
77 }
78
80
82
84
86 DEBUG (p->GetZaxis()->GetBinLowEdge(n) <<
" =?= " <<
Zbins[n-1] <<
endl);
87 ASSERT(p->GetZaxis()->GetBinLowEdge(n) ==
Zbins[n-1]);
88 }
89 }
90 }
91
92 } else {
93 FATAL(
"Unexpected dimensionality for histogram " << p->GetName());
94 }
95 }
96
98
100
102
103 return 0;
104}
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
Class for I/O of variable-width binning of multiple histograms.
std::unique_ptr< T > getHistogram(const std::string &name) const
Get histogram with binning corresponding to a given histogram name.
map_type::const_iterator const_iterator
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).