FairRoot/PandaRoot
Functions
g3libs.C File Reference
#include <iostream>

Go to the source code of this file.

Functions

Bool_t isLibrary (const char *libName)
 
void g3libs ()
 

Function Documentation

void g3libs ( )

Definition at line 11 of file g3libs.C.

References isLibrary().

12 {
13  cout << "Loading Geant3 libraries ..." << endl;
14 
15  if (isLibrary("libdummies.so"))
16  gSystem->Load("libdummies.so");
17  // libdummies.so needed from geant3_+vmc version 0.5
18 
19  gSystem->Load("libgeant321.so");
20 
21  cout << "Loading Geant3 libraries ... finished" << endl;
22 }
Bool_t isLibrary(const char *libName)
Definition: g3libs.C:3
Bool_t isLibrary ( const char *  libName)

Definition at line 3 of file g3libs.C.

References TString.

Referenced by ana_task(), g3libs(), and rootlogon().

4 {
5  if (TString(gSystem->DynamicPathName(libName, kTRUE)) != TString(""))
6  return kTRUE;
7  else
8  return kFALSE;
9 }