24 int main(
int argc,
char **argv)
33 JParser<> zap(
"Example program to test histogram manager.");
40 catch(
const exception &error) {
41 FATAL(error.what() << endl);
48 const char wildcard =
'%';
49 const ios::fmtflags format(ios::showpos);
54 JManager_t zmap(
new TH2D(
"H2[%]", NULL, 10, -1.0, +1.0, 10, -1.0, +1.0), wildcard, format);
56 const double x_val = 0.5;
58 for (
int i = 0; i != 10; ++i) {
59 zmap[i]->Fill(x_val, 0.0, 1.0);
65 JManager_t test(zmap);
67 ASSERT(zmap.size() != 0 && test.size() == 0);
73 ASSERT(zmap.size() == test.size());
75 ASSERT(zmap[0]->GetMean() == test[0]->GetMean());
84 JManager_t test = JManager_t::Read(in, zmap->GetName(), zmap.wc);
86 ASSERT(zmap.size() == test.size());
88 ASSERT(zmap[0]->GetMean() == test[0]->GetMean());
int main(int argc, char **argv)
Dynamic ROOT object management.
General purpose messaging.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
Auxiliary class to manage set of compatible ROOT objects (e.g. histograms) using unique keys.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).