![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Macro loading needed libraries for simulation. More...
#include <iostream>
#include <TSystem.h>
#include <TString.h>
#include <TApplication.h>
#include <TROOT.h>
#include <string>
#include <TObjString.h>
#include <TObjArray.h>
#include <TThread.h>
Go to the source code of this file.
Macros | |
#define | TRANSPORTMODEL |
Functions | |
void | loadg4libs () |
Bool_t | isLibrary (const char *libName) |
Bool_t | isBatch () |
Bool_t | isSet (const char *variable) |
Bool_t | isMT () |
void | vgmlibs () |
void | LoadLibForConfig (TString transport="Geant4") |
Variables | |
TString | kTransportModel = "Geant3" |
Macro loading needed libraries for simulation.
Example macro to be executed right before TestEMCALSimulation.C in case of Root6 Cppy paste from LoadLibs() method in the Config.C It loads the necessayr libraries for Geant3 or Geant4 simulation.
Definition in file LoadLibForConfig.C.
#define TRANSPORTMODEL |
Definition at line 30 of file LoadLibForConfig.C.
Bool_t isBatch | ( | ) |
Helper function which testes if Root was started in batch mode
Definition at line 94 of file LoadLibForConfig.C.
Referenced by LoadLibForConfig().
Bool_t isLibrary | ( | const char * | libName | ) |
Helper function which testes the existence of the given library
libName | The library name |
Definition at line 83 of file LoadLibForConfig.C.
Referenced by LoadLibForConfig().
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 116 of file LoadLibForConfig.C.
Referenced by LoadLibForConfig().
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 104 of file LoadLibForConfig.C.
Referenced by AliITSPidParams::GetLandauGausNorm(), and vgmlibs().
void loadg4libs | ( | ) |
Macro function for loading Geant4 libraries from list of libraries build by geant4-config –libs
Definition at line 36 of file LoadLibForConfig.C.
Referenced by LoadLibForConfig().
void LoadLibForConfig | ( | TString | transport = "Geant4" | ) |
Main execution method
transport | define here the transport model Geant3 or Geant4 |
Definition at line 149 of file LoadLibForConfig.C.
void vgmlibs | ( | ) |
Function for loading VGM libraries.
Definition at line 131 of file LoadLibForConfig.C.
Referenced by LoadLibForConfig().
TString kTransportModel = "Geant3" |
Definition at line 32 of file LoadLibForConfig.C.
Referenced by LoadLibForConfig().