helper class to enable fwlite. Using a free function enable() directly does not work in macros.
Definition at line 11 of file FWLiteEnabler.h.
void FWLiteEnabler::enable |
( |
| ) |
|
|
static |
enable automatic library loading
Definition at line 46 of file FWLiteEnabler.cc.
59 TInterpreter* intrp = gROOT->GetInterpreter();
60 char const*
env = std::getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
70 intrp->AddIncludePath(
dir.c_str());
75 bool foundCMSIncludes =
false;
76 env = std::getenv(
"CMSSW_BASE");
78 foundCMSIncludes =
true;
81 intrp->AddIncludePath(
dir.c_str());
84 env = std::getenv(
"CMSSW_RELEASE_BASE");
86 foundCMSIncludes =
true;
89 intrp->AddIncludePath(
dir.c_str());
91 if (not foundCMSIncludes) {
92 std::cerr <<
"Could not find the environment variables \n"
94 <<
" CMSSW_RELEASE_BASE\n"
95 <<
" therefore attempting to '#include' any CMS headers will not work" << std::endl;
97 if (
nullptr != gApplication) {
98 gApplication->InitializeGraphics();
References beam_dqm_sourceclient-live_cfg::cerr, edmplugin::standard::config(), edmplugin::PluginManager::configure(), DeadROC_duringRun::dir, enabled_, end, web.browse_db::env, fwlite::setRefStreamer(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CmsShowMain::CmsShowMain(), AutoLibraryLoader::enable(), fwlite::EventContainer::EventContainer(), AutoLibraryLoader::loadAll(), and main().