ROOT helper class which can automatically load the proper shared library when ROOT needs a new class dictionary
- Author
- Chris Jones, Cornell
- Id:
- AutoLibraryLoader.h,v 1.3 2009/12/16 22:18:41 chrjones Exp
Definition at line 15 of file AutoLibraryLoader.h.
void AutoLibraryLoader::enable |
( |
| ) |
|
|
static |
enable automatic library loading
Definition at line 50 of file AutoLibraryLoader.cc.
References dtNoiseDBValidation_cfg::cerr, edmplugin::standard::config(), edmplugin::PluginManager::configure(), dir, edm::RootAutoLibraryLoader::enable(), enabled_, end, web.browse_db::env, fwlite::setRefStreamer(), and errorMatrix2Lands_multiChannel::start.
Referenced by CmsShowMain::CmsShowMain(), PFRootEventManager::connect(), fwlite::EventContainer::EventContainer(), loadAll(), and main().
64 TInterpreter* intrp= gROOT->GetInterpreter();
65 const char*
env = getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
72 for(end=start; *end!=0 and *end !=
':';++
end);
73 std::string
dir(start, end);
74 intrp->AddIncludePath(
dir.c_str());
79 bool foundCMSIncludes =
false;
80 env = getenv(
"CMSSW_BASE");
82 foundCMSIncludes =
true;
85 intrp->AddIncludePath(
dir.c_str());
88 env = getenv(
"CMSSW_RELEASE_BASE");
90 foundCMSIncludes =
true;
93 intrp->AddIncludePath(
dir.c_str());
95 if( not foundCMSIncludes) {
96 std::cerr <<
"Could not find the environment variables \n"
98 <<
" CMSSW_RELEASE_BASE\n"
99 <<
" therefore attempting to '#include' any CMS headers will not work"<<std::endl;
101 if (0 != gApplication) {
102 gApplication->InitializeGraphics();
static PluginManager & configure(const Config &)
PluginManager::Config config()
edm::EDProductGetter const * setRefStreamer(edm::EDProductGetter const *ep)
static void enable()
interface for TClass generators