1 //____________________________________________________________________
3 // $Id: Compile.C 30305 2008-12-09 05:45:53Z cholm $
5 // Script to compile (using ACLic) and load a script. It sets the
6 // include path to contain the relevant directories.
9 * Compile an FMD script using ACLic
11 * @param script Script to compile
12 * @param option Compile option
14 * @ingroup pwg2_forward_analysis_scripts
17 Compile(const char* script, Option_t* option="g")
19 if (!script || script[0] == '\0') {
20 std::cerr << "No script to compile!" << std::endl;
23 gSystem->Load("libANALYSIS.so");
24 gSystem->Load("libANALYSISalice.so");
25 gSystem->Load("libPWG2forward2.so");
26 TString macroPath(gROOT->GetMacroPath());
27 macroPath.Append(":${ALICE_ROOT}/FMD/scripts");
28 gROOT->SetMacroPath(macroPath.Data());
29 gSystem->SetIncludePath("-I`root-config --incdir` "
31 "-I${ALICE_ROOT}/include "
32 "-I${ALICE_ROOT}/PWG2/FORWARD/analysis2 ");
33 Long_t ret = gROOT->ProcessLine(Form(".L %s+%s", script, option));
37 //____________________________________________________________________