Update master to aliroot
[u/mrichter/AliRoot.git] / TPC / scripts / startGUItime.C
CommitLineData
1db00cb5 1/// \file startGUItime.C
2/// \brief Global variables to access the gui components
3
4ef03eb2 4AliTPCCalibViewerGUItime *guiTime=0x0;
5TObjArray *arrGUI=0x0;
6AliTPCCalibViewerGUI *gui=0x0;
7
8
9void 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());
4ef03eb2 23}