]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/tpc_calib_viewer.C
AliEveEventManager
[u/mrichter/AliRoot.git] / EVE / alice-macros / tpc_calib_viewer.C
index 13676e41ee1157cc7c624ab76d1e2c0d2675e5ad..a6b888647f3eabf9b7c597e10bcd8e30114f8130 100644 (file)
@@ -1,8 +1,27 @@
+// $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
 void tpc_calib_viewer(const char* file="CalibTree.root")
 {
-  Reve::RGBrowser* b = gReve->GetBrowser();
-  b->StartEmbedding(1);
-  AliTPCCalibViewerGUI::ShowGUI(file);
-  b->StopEmbedding();
-  b->SetTabTitle("TPC Calib", 1);
+   TEveBrowser* b = gEve->GetBrowser();
+   b->StartEmbedding(1);
+
+   TGMainFrame* frmMain = new TGMainFrame(gClient->GetRoot(), 1000, 600);
+   frmMain->SetWindowName("AliTPCCalibViewer GUI");
+   frmMain->SetCleanup(kDeepCleanup);
+
+   AliTPCCalibViewerGUI* calibViewer1 = new AliTPCCalibViewerGUI(frmMain, 1000, 600, (char*)file);
+   frmMain->AddFrame(calibViewer1, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0));
+
+   frmMain->MapSubwindows();
+   frmMain->Resize();
+   frmMain->MapWindow();
+
+   b->StopEmbedding();
+   b->SetTabTitle("TPC CalibViewer", 1);
 }