AliRoot Core  3dc7879 (3dc7879)
LoadLibForConfig.C File Reference

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>
Include dependency graph for LoadLibForConfig.C:

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"
 

Detailed Description

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.

Author
: Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, (LPSC-CNRS).

Definition in file LoadLibForConfig.C.

Macro Definition Documentation

#define TRANSPORTMODEL

Definition at line 30 of file LoadLibForConfig.C.

Function Documentation

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

Parameters
libNameThe 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.

Parameters
variableThe 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

Parameters
transportdefine 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().

Variable Documentation

TString kTransportModel = "Geant3"

Definition at line 32 of file LoadLibForConfig.C.

Referenced by LoadLibForConfig().