What must be done for the TObjLink dictionary to be imported into PyROOT?
Python 2.6.4 (r264:75706, Jan 6 2010, 13:07:12)
[GCC 4.3.2 20081007 (Red Hat 4.3.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ROOT import TObjLink
TClass::TClass:0: RuntimeWarning: no dictionary for class TObjLink is available
I’m trying to write a PyROOT translation of Matevz’s alice_vsd.C demo in root/tutorials/eve. Around line 102 you’ll find a block that iterates over a TFile’s list of keys:
TPMERegexp name_re("Event\\d+");
TObjLink* lnk = fFile->GetListOfKeys()->FirstLink();
while (lnk)
{
if (name_re.Match(lnk->GetObject()->GetName()))
{
fEvDirKeys->Add(lnk->GetObject());
}
lnk = lnk->Next();
}
I am not sure how to work around it. I am trying to use a TIter, but I’ve never used one before and am having troubles.