16 #include "TInterpreter.h"
17 #include "TApplication.h"
66 TInterpreter* intrp= gROOT->GetInterpreter();
67 const char* env = getenv(
"CMSSW_FWLITE_INCLUDE_PATH");
70 const char* start = env;
71 const char*
end = env;
74 for(end=start; *end!=0 and *end !=
':';++
end);
75 std::string
dir(start, end);
76 intrp->AddIncludePath(dir.c_str());
81 bool foundCMSIncludes =
false;
82 env = getenv(
"CMSSW_BASE");
84 foundCMSIncludes =
true;
87 intrp->AddIncludePath(dir.c_str());
90 env = getenv(
"CMSSW_RELEASE_BASE");
92 foundCMSIncludes =
true;
95 intrp->AddIncludePath(dir.c_str());
97 if( not foundCMSIncludes) {
98 std::cerr <<
"Could not find the environment variables \n"
100 <<
" CMSSW_RELEASE_BASE\n"
101 <<
" therefore attempting to '#include' any CMS headers will not work"<<std::endl;
103 if (0 != gApplication) {
104 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