]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/tpc_calib_viewer.C
Add function geom_its_dets() that displays the branches containing sensitive volumes.
[u/mrichter/AliRoot.git] / EVE / alice-macros / tpc_calib_viewer.C
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          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9 void tpc_calib_viewer(const char* file="CalibTree.root")
10 {
11    TEveBrowser* b = gEve->GetBrowser();
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);
27 }