]>
Commit | Line | Data |
---|---|---|
d810d0de | 1 | // $Id$ |
2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
32e219c2 | 9 | void tpc_calib_viewer(const char* file="CalibTree.root") |
10 | { | |
84aff7a4 | 11 | TEveBrowser* b = gEve->GetBrowser(); |
2a78b21a | 12 | b->StartEmbedding(1); |
13 | ||
14 | TGMainFrame* frmMain = new TGMainFrame(gClient->GetRoot(), 1000, 600); | |
15 | frmMain->SetWindowName("AliTPCCalibViewer GUI"); | |
16 | frmMain->SetCleanup(kDeepCleanup); | |
17 | ||
18 | AliTPCCalibViewerGUI* calibViewer1 = new AliTPCCalibViewerGUI(frmMain, 1000, 600, (char*)file); | |
19 | frmMain->AddFrame(calibViewer1, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0)); | |
20 | ||
21 | frmMain->MapSubwindows(); | |
22 | frmMain->Resize(); | |
23 | frmMain->MapWindow(); | |
24 | ||
25 | b->StopEmbedding(); | |
26 | b->SetTabTitle("TPC CalibViewer", 1); | |
32e219c2 | 27 | } |