// // This file test the functionalities of the Block class. // Interectly it also test the functionalities of the ColumnAttribs class. // #include #include #include #include #include #include int main (int argc, char* argv[]) { HepFileManager* manager = new HepHBookFileManager("testRWN.out"); HepNtuple& hep = manager->ntuple("NTUPLE",1); hep.setRowWise(); hep.newColumn("Col1",(float)3.2); hep.newColumn("Col2",(float)8.2); hep.storeCapturedData(); hep.clearData(); cout << "loop: "; for (int i=0; i<50; i++) { cout << i << "."; hep.capture("Col1",(float)3.2+i); hep.capture("Col2",(float)8.2+2*i); hep.storeCapturedData(); hep.clearData(); } cout << endl; delete manager; return 0; }