Protaction agains libPhysics reload
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 15:02:18 +0000 (15:02 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 15:02:18 +0000 (15:02 +0000)
RICH/loadlibs.C

index 5573242..ae45884 100644 (file)
@@ -3,7 +3,8 @@ void loadlibs ()
   if (gClassTable->GetID("AliRun") >= 0) return;
    cout<<"RICH private loadlibs.C ...";
   gSystem->Load("libminicern");
-  gSystem->Load("libPhysics");
+  if (gClassTable->GetID("TVector3") < 0)// additional check as libPhysics may be loaded in logon.C
+      gSystem->Load("libPhysics");
   gSystem->Load("libEG");
   gSystem->Load("libSTEER");
   gSystem->Load("libTGeant3Dummy");