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

Macro for loading basic libraries used with all MCs. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Macro for loading basic libraries used with all MCs.

Definition in file basiclibs.C.

Function Documentation

◆ isLibrary()

Bool_t isLibrary ( const char * libName)

Helper function which testes the existence of the given library

Parameters
libNameThe library name

Definition at line 19 of file basiclibs.C.

20{
21/// Helper function which testes the existence of the given library
22/// \param libName The library name
23
24 if (TString(gSystem->DynamicPathName(libName, kTRUE)) != TString(""))
25 return kTRUE;
26 else
27 return kFALSE;
28}

◆ basiclibs()

void basiclibs ( )

Macro function for loading basic libraries used with all MCs

Definition at line 30 of file basiclibs.C.

31{
32/// Macro function for loading basic libraries used with all MCs
33
34 gSystem->Load("libRIO");
35 gSystem->Load("libGeom");
36 gSystem->Load("libPhysics");
37 gSystem->Load("libTree");
38
39 if ( isLibrary("libVMC") ) {
40 // VMC library in ROOT (optional)
41 gSystem->Load("libVMC");
42 }
43}
Bool_t isLibrary(const char *libName)
Definition basiclibs.C:19