ROOT helper class which can automatically load the proper shared library when ROOT needs a new class dictionary
- Author
- Chris Jones, Cornell
Definition at line 14 of file AutoLibraryLoader.h.
void AutoLibraryLoader::enable |
( |
| ) |
|
|
static |
enable automatic library loading
Definition at line 49 of file AutoLibraryLoader.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, edmplugin::standard::config(), edmplugin::PluginManager::configure(), dir, enabled_, end, web.browse_db::env, fwlite::setRefStreamer(), dqm_diff::start, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CmsShowMain::CmsShowMain(), fwlite::EventContainer::EventContainer(), loadAll(), and main().
61 TInterpreter* intrp= gROOT->GetInterpreter();
62 const char*
env = getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
69 for(end=start; *end!=0 and *end !=
':';++
end);
71 intrp->AddIncludePath(
dir.c_str());
76 bool foundCMSIncludes =
false;
77 env = getenv(
"CMSSW_BASE");
79 foundCMSIncludes =
true;
82 intrp->AddIncludePath(
dir.c_str());
85 env = getenv(
"CMSSW_RELEASE_BASE");
87 foundCMSIncludes =
true;
90 intrp->AddIncludePath(
dir.c_str());
92 if( not foundCMSIncludes) {
93 std::cerr <<
"Could not find the environment variables \n"
95 <<
" CMSSW_RELEASE_BASE\n"
96 <<
" therefore attempting to '#include' any CMS headers will not work"<<std::endl;
98 if (0 != gApplication) {
99 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)