-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMacro.C
39 lines (26 loc) · 1.17 KB
/
Macro.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "TROOT.h"
void Macro(){
// Root macro to set up RootBeer, Bos, DST classes,
// and to set up for compilation of any functions using
// to sort Bos format data and rootDST format
//set include path for CINT to find inlcudes in macros
#pragma includepath ./ ./include
//set prompt
((TRint*)gROOT->GetApplication())->SetPrompt("rootbeer [%d] ");
// set the path for macros to be ./ and ./sample_code
gROOT->SetMacroPath(".:./sample_code:./include");
// load the mklib() function which allows makes a shared library in
// $(TOP_DIR)/slib/Linux/libXX_C.so from <ANYDIR>/XX.C
gROOT->ProcessLine(".L MacroMaker.C");
// load any required libraries
//gSystem->Load("/usr/lib/libpthread.so");
gSystem->Load("$ROOTSYS/lib/libThread.so");
gSystem->Load("libRootBeer"); //Load the bos shared objects
gSystem->Load("libPhysics");
gSystem->Load("libeloss");
gSystem->Load("libExpTable");
//gSystem.Load("libPolHandler");
//Set local includes in path
gSystem->SetIncludePath("-I./ -I./include");
mkexe("/mnt/home/elchorco/Documentos/TESIS/Codigo/IVAN_ROOTBEER/Tesis/macro/pos2neg1.C",""); //Directory of *pos2neg1.C*
}