VMC Examples Version 6.6
|
Old macro for loading Geant4 and Geant4 VMC libraries. More...
#include <vector>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <TSystem.h>
#include <Riostream.h>
#include <TCint.h>
#include <TError.h>
#include <TMath.h>
#include <TApplication.h>
#include <TROOT.h>
Go to the source code of this file.
Functions | |
void | loadg4libs () |
void | g4libs () |
string | NoSpaces (string s) |
Bool_t | isLibrary (const char *libName) |
Bool_t | isBatch () |
Bool_t | isSet (const char *variable) |
void | vgmlibs () |
void | GetLinkLine (string &all_lines) |
void | HandleLinkLine (const char *str, const char *what) |
void | unloadg4libs () |
Old macro for loading Geant4 and Geant4 VMC libraries.
Macro for loading Geant4 and Geant4 VMC libraries with using liblist utility 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_old.C.
void loadg4libs | ( | ) |
The function to unload Geant4 libraries
Definition at line 213 of file g4libs_old.C.
void g4libs | ( | ) |
Function for loading all libraries for running VMC with Geant4
Definition at line 44 of file g4libs_old.C.
string NoSpaces | ( | string | s | ) |
???
Definition at line 52 of file g4libs_old.C.
Bool_t isLibrary | ( | const char * | libName | ) |
Helper function which testes the existence of the given library
libName | The library name |
Definition at line 62 of file g4libs_old.C.
Bool_t isBatch | ( | ) |
Helper function which testes if Root was started in batch mode
Definition at line 73 of file g4libs_old.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 83 of file g4libs_old.C.
void vgmlibs | ( | ) |
Function for loading VGM libraries.
Definition at line 95 of file g4libs_old.C.
void GetLinkLine | ( | string & | all_lines | ) |
Build the string with the list of libraries using liblist
Definition at line 109 of file g4libs_old.C.
void HandleLinkLine | ( | const char * | str, |
const char * | what ) |
Tokenize the input string and load/unload the libraries from the list.
str | The string output from Geant4 liblist |
what | The option specifying whether we want to load ('l') or unload ('u') libraries |
Definition at line 129 of file g4libs_old.C.
void unloadg4libs | ( | ) |
The function to unload Geant4 libraries
Definition at line 254 of file g4libs_old.C.