Hi all,
I have some custom classes with the proper dictionary linked in the library lib/libmAIDA.dylib (I also put the PCM dict file in the lib directory).
when I load the library in ROOT (v6-02-00-rc1, library compiled with same version) with the following short program:
void testmacro()
{
gSystem->Load("lib/libmAIDA");
mAIDA::Lepton x;
x.Set_PtEtaPhiE(1,2,3,4);
cout << x.four_vector().Px() << endl;
}
I get the following output:
root [0]
Processing testmacro.C...
In file included from input_line_21:1:
/Users/ddavis/ATLAS/mAIDA/testmacro.C:3:3: error: 'mAIDA' is not a class, namespace, or scoped enumeration
mAIDA::Lepton x;
^
/Users/ddavis/ATLAS/mAIDA/testmacro.C:3:3: note: 'mAIDA' declared here
The following PyROOT code does work:
import ROOT
ROOT.gSystem.Load('lib/libmAIDA.dylib')
from ROOT import mAIDA
x = mAIDA.Lepton()
x.Set_PtEtaPhiE(1,2,3,4)
print x.four_vector().Px()
And correctly prints the expected output.
I have no issues running the same macro with v5-34-19. Are custom classes not yet supported with ROOT 6?