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 50 of file FWLiteEnabler.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 AutoLibraryLoader::enable(), fwlite::EventContainer::EventContainer(), AutoLibraryLoader::loadAll(), and main().
61 TInterpreter* intrp= gROOT->GetInterpreter();
62 char const*
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 (
nullptr != 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)