Checking if a library is loaded

Is there a way to check wether a lib is loaded? I currently load libPhysics in my .C analysis code, but sometimes it is already loaded and this throws an error.
Cheers
Simon

You can use teh return value of gSystem->Load(“libSomething”);
if null, load is ok, bad otherwise.
You can also test if a class is available with
gROOT->GetClass(“aClass”);

Rene