[cernRoot]how to get tree name?

   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;
      }
   }

阅读更多
文章标签: c++ cernRoot
个人分类: c++ cernRoot
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭