VMC Examples Version 6.6
|
Macro for loading Geant4 and Geant4 VMC libraries. More...
#include <iostream>
#include <TSystem.h>
#include <TString.h>
#include <TApplication.h>
#include <TROOT.h>
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | g4libUtilities |
Functions | |
Bool_t | g4libUtilities::isLibrary (const char *libName) |
void | loadg4libs () |
Bool_t | isBatch () |
Bool_t | isSet (const char *variable) |
Bool_t | isMT () |
void | vgmlibs () |
void | g4libs () |
Macro for loading Geant4 and Geant4 VMC libraries.
New macro for loading Geant4 and Geant4 VMC libraries with using geant4-config script provided in Geant4. Besides loading libraries, the macro also resets FPE mask to 0, in order to make sure than FPE for FE_OVERFLOW is disabled what is required for Geant4.
Definition in file g4libs.C.
void loadg4libs | ( | ) |
Macro function for loading Geant4 libraries from list of libraries build by geant4-config –libs
Definition at line 44 of file g4libs.C.
Bool_t isBatch | ( | ) |
Helper function which testes if Root was started in batch mode
Definition at line 84 of file g4libs.C.
Bool_t isSet | ( | const char * | variable | ) |
Helper function which checks if the specified environment variable is set.
variable | The environment variable name |
Definition at line 94 of file g4libs.C.
Bool_t isMT | ( | ) |
Macro function for detecting if Geant4 libraries are built in multi-threading mode via geant4-config –has-feature multithreading
Definition at line 106 of file g4libs.C.
void vgmlibs | ( | ) |
Function for loading VGM libraries.
Definition at line 121 of file g4libs.C.
void g4libs | ( | ) |
Definition at line 135 of file g4libs.C.