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);
53 JManager_t zmap(
new TH2D(
"H2[%]", NULL, 10, -1.0, +1.0, 10, -1.0, +1.0), wildcard, format);
55 for (
int i = 0; i != 10; ++i) {
56 zmap[i]->Fill(0.0, 0.0, 1.0);
62 JManager_t test(zmap);
64 ASSERT(zmap.size() != 0 && test.size() == 0);
70 ASSERT(zmap.size() == test.size());
79 JManager_t test = JManager_t::Read(in, zmap->GetName(), zmap.wc);
81 ASSERT(zmap.size() == test.size());