Use
TMethodCall call(TClass::GetClass("TMath"), name, "");
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of Thomas Bretz
Sent: Thursday, January 13, 2005 12:38 PM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] TMath and root 4.02.00
Dear rooters,
I have found out, that TMath now is not a class anymore, but a namespace.
Previously I could convert a string into a function call by:
TMethodCall call(TMath::Class(), name, "");
Double_t d;
call.Execute(d);
How am I doing this now?
Thanks,
Thomas.
Received on Thu Jan 13 2005 - 23:17:05 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET