]>
Commit | Line | Data |
---|---|---|
319f3084 | 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 | **************************************************************************/ | |
6 | ||
de33999e | 7 | TEveGeoShape *gGeomGentle = 0; |
8 | ||
9 | void alieve_online_init() | |
319f3084 | 10 | { |
de33999e | 11 | gROOT->LoadMacro("geom_gentle.C"); |
12 | ||
13 | gROOT->LoadMacro("primary_vertex.C"); | |
14 | gROOT->LoadMacro("esd_tracks.C"); | |
15 | ||
dc9dec4d | 16 | gROOT->LoadMacro("its_clusters.C++"); |
17 | gROOT->LoadMacro("tpc_clusters.C++"); | |
18 | gROOT->LoadMacro("trd_clusters.C++"); | |
de33999e | 19 | |
20 | gROOT->LoadMacro("acorde_raw.C"); | |
21 | gROOT->LoadMacro("its_raw.C"); | |
22 | gROOT->LoadMacro("tpc_raw.C"); | |
23 | ||
2a8440b7 | 24 | // Temp fix !!! |
25 | TGeoManager *man = gGeoManager; | |
de33999e | 26 | gGeomGentle = geom_gentle(); |
2a8440b7 | 27 | // Temp fix !!! |
28 | gGeoManager = man; | |
de33999e | 29 | |
dc9dec4d | 30 | gROOT->ProcessLine(".L SplitGLView.C++g"); // !!!! debug-mode |
de33999e | 31 | TEveBrowser* browser = gEve->GetBrowser(); |
32 | browser->ExecPlugin("SplitGLView", 0, "new SplitGLView(gClient->GetRoot(), 600, 450, kTRUE)"); | |
33 | ||
34 | if (gRPhiMgr) { | |
35 | TEveProjectionAxes* a = new TEveProjectionAxes(gRPhiMgr); | |
36 | a->SetNumTickMarks(3); | |
37 | a->SetText("R-Phi"); | |
38 | a->SetFontFile("comicbd"); | |
39 | a->SetFontSize(10); | |
40 | gEve->GetScenes()->FindChild("R-Phi Projection")->AddElement(a); | |
41 | } | |
42 | if (gRhoZMgr) { | |
43 | TEveProjectionAxes* a = new TEveProjectionAxes(gRhoZMgr); | |
44 | a->SetNumTickMarks(3); | |
45 | a->SetText("Rho-Z"); | |
46 | a->SetFontFile("comicbd"); | |
47 | a->SetFontSize(10); | |
48 | gEve->GetScenes()->FindChild("Rho-Z Projection")->AddElement(a); | |
49 | } | |
50 | ||
47aab29b | 51 | TEveBrowser* browser = gEve->GetBrowser(); |
52 | ||
53 | browser->StartEmbedding(TRootBrowser::kBottom); | |
54 | new AliEveEventManagerWindow; | |
55 | browser->StopEmbedding("EventCtrl"); | |
56 | ||
57 | ||
de33999e | 58 | gEve->Redraw3D(kTRUE); |
59 | } | |
60 | ||
61 | void alieve_online_on_new_event() | |
62 | { | |
63 | ||
64 | its_raw(); | |
65 | its_clusters(); | |
66 | ||
67 | tpc_raw(); | |
68 | tpc_clusters(); | |
69 | ||
70 | acorde_raw(); | |
71 | ||
72 | primary_vertex(); | |
73 | esd_tracks(); | |
74 | ||
75 | AliESDEvent* esd = AliEveEventManager::AssertESD(); | |
76 | Double_t x[3]; | |
77 | esd->GetPrimaryVertex()->GetXYZ(x); | |
78 | ||
79 | TEveElement* top = gEve->GetCurrentEvent(); | |
80 | ||
81 | if (gRPhiMgr && top) { | |
82 | gRPhiMgr->DestroyElements(); | |
83 | gRPhiMgr->SetCenter(x[0], x[1], x[2]); | |
84 | gRPhiMgr->ImportElements(gGeomGentle); | |
85 | gRPhiMgr->ImportElements(top); | |
86 | } | |
87 | if (gRhoZMgr && top) { | |
88 | gRhoZMgr->DestroyElements(); | |
89 | gRhoZMgr->SetCenter(x[0], x[1], x[2]); | |
90 | gRhoZMgr->ImportElements(gGeomGentle); | |
91 | gRhoZMgr->ImportElements(top); | |
92 | } | |
93 | ||
94 | gROOT->ProcessLine("SplitGLView::UpdateSummary()"); | |
319f3084 | 95 | } |