// // 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[]) { HepAList Emptys; HepFileManager* manager = new HepHBookFileManager("test2.out"); HepTuple* hep = manager->newHepTuple("NTUPLE",1); hep->setColumnWise(); hep->newColumn("Col1",3.2); hep->newColumn("Col2",8.2); hep->storeCapturedData(); hep->clearData(); cout << "First column name " << hep->tag(0) << endl; cout << "Second column name " << hep->tag(1) << endl; cout << "First column name tag " << hep->nametag(0) << endl; cout << "Second column name tag " << hep->nametag(1) << endl; string bkname = hep->columnBlock("Col1"); cout << "First column name again " << hep->tag(0,bkname) << endl; cout << "First column nametag again " << hep->nametag(0,bkname) << endl; cout << endl; delete manager; return 0; }