00001 #ifndef _QIGUI_GLOBALS__H_
00002 #define _QIGUI_GLOBALS__H_
00003 #include <string>
00004 #include <map>
00005
00006
00007
00008
00009
00010 class QIGUIGlobals
00011 {
00012 public:
00013 static void Init();
00014 static std::string gChannelWord;
00015 static std::string gEnergyWord;
00016
00017 static std::string gTimeWord;
00018 static double gTimeToSeconds;
00019
00020 static std::string gStartTimeWord;
00021 static double gStartTimeToSeconds;
00022
00023 static std::string gDeltaTimeWord;
00024 static double gDeltaTimeToSeconds;
00025
00026 static double gCoTimeToSeconds;
00027
00028
00029
00030 static bool GetDefaultMin(std::string var, double &lim);
00031 static bool GetDefaultMax(std::string var, double &lim);
00032 static bool GetDefaultNBins(std::string var, int &nbins);
00033
00034
00035 static std::map<std::string, std::pair<double,double> > gDefaultLimits;
00036 };
00037
00038
00039 #endif