Hi there,
I can do the following in C++ with a ROOT-ified library, that I explain in pseudo-code
TClass *cl = TClass::GetClass( "DerivedClassName" );
AbstractClass *p = (AbstractClass *) cl->New();
Then I have a method that recieves as argument an AbstractClass
This works with out problems in ROOT-C++
However now I try to find out how to do the same in pyROOT
cl = ROOT.TClass.GetClass( "DerivedClassName" )
P = cl.New()
otherClass.Set( p )
But I get an error saying that it cannot convert argument 1.
Then I try to cast it manually by doing
p = ROOT.AbstractClass ( cl.New() )
Then I get the message:
[color=#FF0000]AbstractClass is abstract and can not be instantiated[/color]
Any idea is welcome,
thanks!