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

阅读更多
想对作者说点什么?

博主推荐

换一批

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