]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/scripts/Compile.C
debug is read from option string
[u/mrichter/AliRoot.git] / FMD / scripts / Compile.C
CommitLineData
bf000c32 1//____________________________________________________________________
a1f80595 2//
3// $Id$
4//
5// Script to compile (using ACLic) and load a script. It sets the
6// include path to contain the relevant directories.
7//
9b48326f 8/** @defgroup FMD_script Scripts
9 @brief Scripts for the FMD
10*/
11/** @defgroup simple_script Simple scripts
12 @ingroup FMD_script
13 @brief Scripts for the FMD
14*/
15/** Compile an FMD script using ACLic
16 @param script Script to compile
17 @param option Compile option
18 @ingroup FMD_script
19*/
a1f80595 20void
8f6ee336 21Compile(const char* script, Option_t* option="g")
a1f80595 22{
23 gSystem->Load("libFMDutil.so");
24 gSystem->SetIncludePath("-I`root-config --incdir` "
25 "-I${ALICE_ROOT}/include "
26 "-I${ALICE_ROOT}/FMD "
27 "-I${ALICE_ROOT}/geant3/TGeant3");
8f6ee336 28 gROOT->ProcessLine(Form(".L %s+%s", script, option));
a1f80595 29}
30
31//____________________________________________________________________
32//
33// EOF
34//