[cernRoot]How to get tree name from root file

来源:互联网 发布:mac php环境配置 编辑:程序博客网 时间:2024/05/17 22:13
TIter nextkey( root_file->GetListOfKeys() );   TKey *key, *oldkey=0;   while ( (key = (TKey*)nextkey())) {      TObject *obj = key->ReadObj();      if ( obj->IsA()->InheritsFrom( TTree::Class() ) ) {         Tree_data = (TTree*)obj;         break;      }   }

0 0
原创粉丝点击