Index: trunk/MagicSoft/Mars/mdata/MDataChain.cc
===================================================================
--- trunk/MagicSoft/Mars/mdata/MDataChain.cc	(revision 5692)
+++ trunk/MagicSoft/Mars/mdata/MDataChain.cc	(revision 5832)
@@ -347,5 +347,11 @@
 
     const TString name = txt(1, txt.Length());
+#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00)
     TMethodCall call(TMath::Class(), name, "");
+#else
+    static TClass *const tmath = TClass::GetClass("TMath");
+    TMethodCall call(tmath, name, "");
+#endif
+
     switch (call.ReturnType())
     {
