Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

evdb.cxx

Go to the documentation of this file.
00001 
00002 #include "EventDisplayBase/evdb.h"
00003 #include <cstdlib>
00004 #include <string>
00005 // ROOT includes
00006 #include "TGClient.h"
00007 #include "TGFrame.h"
00008 #include "TGPicture.h"
00009 
00010 //......................................................................
00011 
00012 const TGWindow* evdb::TopWindow() { return gClient->GetRoot(); }
00013 
00014 //......................................................................
00015 
00016 TGPicturePool* evdb::PicturePool()
00017 {
00018   static TGPicturePool* pp = 0;
00019   if (pp==0) {
00020     std::string path;
00021     
00022     const char* private_ctx = getenv("SRT_PRIVATE_CONTEXT");
00023     const char* public_ctx  = getenv("SRT_PUBLIC_CONTEXT");
00024     const char* root_ctx    = getenv("ROOTSYS");
00025     
00026     path += private_ctx; path += "/EventDisplay/icons:";
00027     path += public_ctx;  path += "/EventDisplay/icons:";
00028     path += root_ctx;    path += "/icons";
00029     
00030     pp = new TGPicturePool(gClient, path.c_str());
00031   }
00032   return pp;
00033 }

Generated on Sat Oct 11 02:35:27 2008 for NOvA Offline by  doxygen 1.3.9.1