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(), dqm_diff::start, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CmsShowMain::CmsShowMain(), PFRootEventManager::connect(), fwlite::EventContainer::EventContainer(), loadAll(), and main().
63 TInterpreter* intrp= gROOT->GetInterpreter();
64 const char*
env = getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
71 for(end=start; *end!=0 and *end !=
':';++
end);
73 intrp->AddIncludePath(
dir.c_str());
78 bool foundCMSIncludes =
false;
79 env = getenv(
"CMSSW_BASE");
81 foundCMSIncludes =
true;
84 intrp->AddIncludePath(
dir.c_str());
87 env = getenv(
"CMSSW_RELEASE_BASE");
89 foundCMSIncludes =
true;
92 intrp->AddIncludePath(
dir.c_str());
94 if( not foundCMSIncludes) {
95 std::cerr <<
"Could not find the environment variables \n"
97 <<
" CMSSW_RELEASE_BASE\n"
98 <<
" therefore attempting to '#include' any CMS headers will not work"<<std::endl;
100 if (0 != gApplication) {
101 gApplication->InitializeGraphics();
tuple start
Check for commandline option errors.
static PluginManager & configure(const Config &)
PluginManager::Config config()
edm::EDProductGetter const * setRefStreamer(edm::EDProductGetter const *ep)
static void enable()
interface for TClass generators