//########################################################################## // Define subroutines that are loaded during ROOT initialization. // // File: $Id: RooAlias.C,v 1.1 1999/12/13 21:52:02 davidk Exp $ // Authors: // DK, David Kirkby, Stanford University, kirkby@hep.stanford.edu // History: // 10-Dec-1999 DK Created initial version //########################################################################## // Load the shared library for an SRT package into a ROOT session. // The usage is: // // loadSrtLib("") // // The library for is assumed to have the name: // // lib_$(BFCURRENT)_ROOT.so // // The library will be loaded without an explicit path and so // must exist somewhere in the search path (which includes the // current test and production release directories when using // .rootrc from workdir). void loadSrtLib(const char* packageName) { char buffer[512]; const char *current= gSystem->Getenv("BFCURRENT"); sprintf(buffer, "lib%s_%s_ROOT.so", packageName, current); gSystem.Load(buffer); }