]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/tpc_calib_viewer.C
- synchronized the overlay macro to the changes of the drawing one
[u/mrichter/AliRoot.git] / EVE / alice-macros / tpc_calib_viewer.C
CommitLineData
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 9void 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}