g3libs.C 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /********************************************************************************
  2. * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
  3. * *
  4. * This software is distributed under the terms of the *
  5. * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
  6. * copied verbatim in the file "LICENSE" *
  7. ********************************************************************************/
  8. #include <iostream>
  9. Bool_t isLibrary(const char* libName)
  10. {
  11. if (TString(gSystem->DynamicPathName(libName, kTRUE)) != TString(""))
  12. return kTRUE;
  13. else
  14. return kFALSE;
  15. }
  16. void g3libs()
  17. {
  18. cout << "Loading Geant3 libraries ..." << endl;
  19. if (isLibrary("libdummies.so"))
  20. gSystem->Load("libdummies.so");
  21. // libdummies.so needed from geant3_+vmc version 0.5
  22. if(gSystem->Load("libPythia6.so") < 0) //Old FairSoft
  23. gSystem->Load("libpythia6.so");
  24. gSystem->Load("libEGPythia6.so");
  25. gSystem->Load("libgeant321.so");
  26. cout << "Loading Geant3 libraries ... finished" << endl;
  27. }