1 /**************************************************************************
2 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
3 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
4 * full copyright notice. *
5 **************************************************************************/
7 TEveGeoShape *gGeomGentle = 0;
9 void alieve_online_init()
11 gROOT->LoadMacro("geom_gentle.C");
13 gROOT->LoadMacro("primary_vertex.C");
14 gROOT->LoadMacro("esd_tracks.C");
16 gROOT->LoadMacro("its_clusters.C++");
17 gROOT->LoadMacro("tpc_clusters.C++");
18 gROOT->LoadMacro("trd_clusters.C++");
20 gROOT->LoadMacro("acorde_raw.C");
21 gROOT->LoadMacro("its_raw.C");
22 gROOT->LoadMacro("tpc_raw.C");
24 TEveUtil::AssertMacro("VizDB_scan.C");
27 TGeoManager *man = gGeoManager;
28 gGeomGentle = geom_gentle();
32 gROOT->ProcessLine(".L SplitGLView.C++g"); // !!!! debug-mode
33 TEveBrowser* browser = gEve->GetBrowser();
34 browser->ExecPlugin("SplitGLView", 0, "new SplitGLView(gClient->GetRoot(), 600, 450, kTRUE)");
37 TEveProjectionAxes* a = new TEveProjectionAxes(gRPhiMgr);
38 a->SetNumTickMarks(3);
40 a->SetFontFile("comicbd");
42 gEve->GetScenes()->FindChild("R-Phi Projection")->AddElement(a);
45 TEveProjectionAxes* a = new TEveProjectionAxes(gRhoZMgr);
46 a->SetNumTickMarks(3);
48 a->SetFontFile("comicbd");
50 gEve->GetScenes()->FindChild("Rho-Z Projection")->AddElement(a);
53 TEveBrowser* browser = gEve->GetBrowser();
55 browser->StartEmbedding(TRootBrowser::kBottom);
56 new AliEveEventManagerWindow(AliEveEventManager::GetMaster());
57 browser->StopEmbedding("EventCtrl");
59 gEve->Redraw3D(kTRUE);
62 void alieve_online_on_new_event()
75 AliESDEvent* esd = AliEveEventManager::AssertESD();
77 esd->GetPrimaryVertex()->GetXYZ(x);
79 TEveElement* top = gEve->GetCurrentEvent();
81 if (gRPhiMgr && top) {
82 gRPhiMgr->DestroyElements();
83 gRPhiMgr->SetCenter(x[0], x[1], x[2]);
84 gRPhiMgr->ImportElements(gGeomGentle);
85 gRPhiMgr->ImportElements(top);
87 if (gRhoZMgr && top) {
88 gRhoZMgr->DestroyElements();
89 gRhoZMgr->SetCenter(x[0], x[1], x[2]);
90 gRhoZMgr->ImportElements(gGeomGentle);
91 gRhoZMgr->ImportElements(top);
94 gROOT->ProcessLine("SplitGLView::UpdateSummary()");