garanainit_gpvm.py
Go to the documentation of this file.
1 import ROOT
2 
3 def init():
4 
5  ROOT.gInterpreter.ProcessLine('R__ADD_LIBRARY_PATH(/cvmfs/dune.opensciencegrid.org/products/dune/garana/v00_00_13/slf7.x86_64.e20.prof/lib)') #change this to your library install area
6 
7  #shared garana libraries
8  ROOT.gInterpreter.ProcessLine('R__LOAD_LIBRARY(libGaranaAccessors.so)')
9  #ROOT.gInterpreter.ProcessLine('R__LOAD_LIBRARY(libGaranaDict.so)')
10 
11  ROOT.gInterpreter.ProcessLine('R__LOAD_LIBRARY(libGaranaUtility.so)')
12 
13  ROOT.gInterpreter.ProcessLine('R__ADD_INCLUDE_PATH(/cvmfs/dune.opensciencegrid.org/products/dune/garana/v00_00_13)') #change this to your garana install area
14 
15  # add your headers here
16  ROOT.gInterpreter.Declare('#include "garana/Accessors/TreeManager.h"')
17  ROOT.gInterpreter.Declare('#include "garana/Utility/Backtracker.h"')
18 
19  ROOT.gInterpreter.ProcessLine('using namespace garana;')
20 
21 #execute as a script
22 if __name__ == '__main__':
23  init()
24