QIGUIGlobals.hh
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 void DefaultLimits();
00015 static std::string gChannelWord;
00016 static std::string gEnergyWord;
00017 static std::string gEventNumberWord;
00018
00019 static std::string gTimeWord;
00020 static double gTimeToSeconds;
00021
00022 static std::string gStartTimeWord;
00023 static double gStartTimeToSeconds;
00024
00025 static std::string gRealTimeWord;
00026 static double gRealTimeToSeconds;
00027
00028 static bool GetDefaultMin(std::string var, double &lim);
00029 static bool GetDefaultMax(std::string var, double &lim);
00030 static bool GetDefaultNBins(std::string var, int &nbins);
00031
00032
00033 static std::map<std::string, std::pair<double,double> > gDefaultLimits;
00034 static std::map<std::string, int> gDefaultNBins;
00035 };
00036
00037
00038 #endif