| 1 | /// \file startGUItime.C |
| 2 | /// \brief Global variables to access the gui components |
| 3 | |
| 4 | AliTPCCalibViewerGUItime *guiTime=0x0; |
| 5 | TObjArray *arrGUI=0x0; |
| 6 | AliTPCCalibViewerGUI *gui=0x0; |
| 7 | |
| 8 | |
| 9 | void startGUItime(const char* file=""){ |
| 10 | TString filename(file); |
| 11 | if (filename.IsNull()){ |
| 12 | filename=gSystem->ExpandPathName("$GUI_OUTDIR_TIME"); |
| 13 | if (filename=="$GUI_OUTDIR_TIME") return; |
| 14 | if (!filename.EndsWith("/")) filename+="/"; |
| 15 | filename+="calibTreeTime_*.root"; |
| 16 | } |
| 17 | arrGUI=AliTPCCalibViewerGUItime::ShowGUI(filename.Data()); |
| 18 | guiTime=(AliTPCCalibViewerGUItime*)arrGUI->At(0); |
| 19 | gui=(AliTPCCalibViewerGUI*)arrGUI->At(1); |
| 20 | TString cacheDir=gSystem->ExpandPathName("$GUI_OUTDIR_RUNS"); |
| 21 | if (cacheDir=="$GUI_OUTDIR_RUNS") cacheDir="/tmp"; |
| 22 | guiTime->SetCacheDir(cacheDir.Data()); |
| 23 | } |