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