14 #include "TInterpreter.h"
15 #include "TApplication.h"
59 TInterpreter* intrp = gROOT->GetInterpreter();
60 char const*
env = std::getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
67 for (end = start; *end != 0 and *end !=
':'; ++
end)
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();
static PluginManager & configure(const Config &)
PluginManager::Config config()
edm::EDProductGetter const * setRefStreamer(edm::EDProductGetter const *ep)
static void enable()
enable automatic library loading