1 //____________________________________________________________________
5 // Script to compile (using ACLic) and load a script. It sets the
6 // include path to contain the relevant directories.
8 /** @defgroup FMD_script Scripts
9 @brief Scripts for the FMD
11 /** @defgroup simple_script Simple scripts
13 @brief Scripts for the FMD
15 /** Compile an FMD script using ACLic
16 @param script Script to compile
17 @param option Compile option
21 Compile(const char* script, Option_t* option="g")
23 if (!script || script[0] == '\0') {
24 std::cerr << "No script to compile!" << std::endl;
27 gSystem->Load("libANALYSIS.so");
28 gSystem->Load("libANALYSISalice.so");
29 gSystem->Load("libFMDanalysis.so");
30 gSystem->Load("libFMDutil.so");
31 gSystem->Load("libFMDflow.so");
32 TString macroPath(gROOT->GetMacroPath());
33 macroPath.Append(":${ALICE_ROOT}/FMD/scripts");
34 gROOT->SetMacroPath(macroPath.Data());
35 gSystem->SetIncludePath("-I`root-config --incdir` "
37 "-I${ALICE_ROOT}/include "
38 "-I${ALICE_ROOT}/FMD "
39 "-I${ALICE_ROOT}/geant3/TGeant3");
40 Long_t ret = gROOT->ProcessLine(Form(".L %s+%s", script, option));
44 //____________________________________________________________________