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");
25 TGeoManager *man = gGeoManager;
26 gGeomGentle = geom_gentle();
30 gROOT->ProcessLine(".L SplitGLView.C++g"); // !!!! debug-mode
31 TEveBrowser* browser = gEve->GetBrowser();
32 browser->ExecPlugin("SplitGLView", 0, "new SplitGLView(gClient->GetRoot(), 600, 450, kTRUE)");
35 TEveProjectionAxes* a = new TEveProjectionAxes(gRPhiMgr);
36 a->SetNumTickMarks(3);
38 a->SetFontFile("comicbd");
40 gEve->GetScenes()->FindChild("R-Phi Projection")->AddElement(a);
43 TEveProjectionAxes* a = new TEveProjectionAxes(gRhoZMgr);
44 a->SetNumTickMarks(3);
46 a->SetFontFile("comicbd");
48 gEve->GetScenes()->FindChild("Rho-Z Projection")->AddElement(a);
51 gEve->Redraw3D(kTRUE);
54 void alieve_online_on_new_event()
68 AliESDEvent* esd = AliEveEventManager::AssertESD();
70 esd->GetPrimaryVertex()->GetXYZ(x);
72 TEveElement* top = gEve->GetCurrentEvent();
74 if (gRPhiMgr && top) {
75 gRPhiMgr->DestroyElements();
76 gRPhiMgr->SetCenter(x[0], x[1], x[2]);
77 gRPhiMgr->ImportElements(gGeomGentle);
78 gRPhiMgr->ImportElements(top);
80 if (gRhoZMgr && top) {
81 gRhoZMgr->DestroyElements();
82 gRhoZMgr->SetCenter(x[0], x[1], x[2]);
83 gRhoZMgr->ImportElements(gGeomGentle);
84 gRhoZMgr->ImportElements(top);
87 gROOT->ProcessLine("SplitGLView::UpdateSummary()");