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 gGeomGentle = geom_gentle();
26 gROOT->ProcessLine(".L SplitGLView.C++g"); // !!!! debug-mode
27 TEveBrowser* browser = gEve->GetBrowser();
28 browser->ExecPlugin("SplitGLView", 0, "new SplitGLView(gClient->GetRoot(), 600, 450, kTRUE)");
31 TEveProjectionAxes* a = new TEveProjectionAxes(gRPhiMgr);
32 a->SetNumTickMarks(3);
34 a->SetFontFile("comicbd");
36 gEve->GetScenes()->FindChild("R-Phi Projection")->AddElement(a);
39 TEveProjectionAxes* a = new TEveProjectionAxes(gRhoZMgr);
40 a->SetNumTickMarks(3);
42 a->SetFontFile("comicbd");
44 gEve->GetScenes()->FindChild("Rho-Z Projection")->AddElement(a);
47 gEve->Redraw3D(kTRUE);
50 void alieve_online_on_new_event()
64 AliESDEvent* esd = AliEveEventManager::AssertESD();
66 esd->GetPrimaryVertex()->GetXYZ(x);
68 TEveElement* top = gEve->GetCurrentEvent();
70 if (gRPhiMgr && top) {
71 gRPhiMgr->DestroyElements();
72 gRPhiMgr->SetCenter(x[0], x[1], x[2]);
73 gRPhiMgr->ImportElements(gGeomGentle);
74 gRPhiMgr->ImportElements(top);
76 if (gRhoZMgr && top) {
77 gRhoZMgr->DestroyElements();
78 gRhoZMgr->SetCenter(x[0], x[1], x[2]);
79 gRhoZMgr->ImportElements(gGeomGentle);
80 gRhoZMgr->ImportElements(top);
83 gROOT->ProcessLine("SplitGLView::UpdateSummary()");