16 #include "TInterpreter.h"
17 #include "TApplication.h"
64 TInterpreter* intrp= gROOT->GetInterpreter();
65 const char*
env = getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
72 for(end=start; *end!=0 and *end !=
':';++
end);
73 std::string
dir(start, end);
74 intrp->AddIncludePath(dir.c_str());
79 bool foundCMSIncludes =
false;
80 env = getenv(
"CMSSW_BASE");
82 foundCMSIncludes =
true;
85 intrp->AddIncludePath(dir.c_str());
88 env = getenv(
"CMSSW_RELEASE_BASE");
90 foundCMSIncludes =
true;
93 intrp->AddIncludePath(dir.c_str());
95 if( not foundCMSIncludes) {
96 std::cerr <<
"Could not find the environment variables \n"
98 <<
" CMSSW_RELEASE_BASE\n"
99 <<
" therefore attempting to '#include' any CMS headers will not work"<<std::endl;
101 if (0 != gApplication) {
102 gApplication->InitializeGraphics();
static PluginManager & configure(const Config &)
static void loadAll()
load all known libraries holding dictionaries
PluginManager::Config config()
edm::EDProductGetter const * setRefStreamer(edm::EDProductGetter const *ep)
static void loadAll()
load all known libraries holding dictionaries
static void enable()
enable automatic library loading
static void enable()
interface for TClass generators