VMC Examples Version 6.6
Loading...
Searching...
No Matches
g3libs.C File Reference

Macro for loading Geant3 libraries. More...

#include <iostream>
#include <TSystem.h>
#include <TString.h>
Include dependency graph for g3libs.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  g3libUtilities
 

Functions

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

Detailed Description

Macro for loading Geant3 libraries.

Definition in file g3libs.C.

Function Documentation

◆ g3libs()

void g3libs ( )

Macro function for loading Geant3 libraries

Definition at line 35 of file g3libs.C.

36{
37/// Macro function for loading Geant3 libraries
38
39 // VMC library (optional)
40 if ( g3libUtilities::isLibrary("libVMCLibrary") ) {
41 cout << "Loading VMC library ..." << endl;
42 gSystem->Load("libVMCLibrary");
43 }
44
45 if (g3libUtilities::isLibrary("libdummies"))
46 gSystem->Load("libdummies");
47 // libdummies.so needed from geant3_+vmc version 0.5
48
49 // Load geant3 library
50 gSystem->Load("libgeant321");
51
52 cout << "Loading Geant3 libraries ... finished" << endl;
53}
Bool_t isLibrary(const char *libName)
Definition g3libs.C:23