2 class TEveProjectionManager;
7 TEveProjectionManager * proj = 0;
8 TEveGeoShape * geom = 0;
10 void tpc_tracks(const char *input=0)
17 if (ipath.Contains(".zip")){
19 sprintf(command,"xrdcp %s in.zip",input);
20 gSystem->Exec(command);
21 gSystem->Exec("unzip in.zip");
25 TEveUtil::LoadMacro("alieve_init.C");
28 TEveUtil::LoadMacro("geom_gentle.C");
30 TEveUtil::LoadMacro("primary_vertex.C");
31 TEveUtil::LoadMacro("esd_tracks.C");
32 TEveUtil::LoadMacro("its_clusters.C+");
33 TEveUtil::LoadMacro("tpc_clusters.C+");
35 TEveViewer* nv = gEve->SpawnNewViewer("NLT Projected");
36 TEveScene* ns = gEve->SpawnNewScene("NLT");
38 TGLViewer* v = nv->GetGLViewer();
39 v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
40 TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
41 if(mup) mup->SetShow(kFALSE);
43 TEveTrackCounter* g_trkcnt = new TEveTrackCounter("Primary Counter");
44 gEve->AddToListTree(g_trkcnt, kFALSE);
46 TEveProjectionManager* p = new TEveProjectionManager; proj = p;
47 gEve->AddToListTree(p, kTRUE);
48 gEve->AddElement(proj, ns);
51 TEveGeoShape* gg = geom_gentle();
55 gEvent->AddNewEventCommand("on_new_event();");
58 gEve->Redraw3D(kTRUE);
61 /**************************************************************************/
66 //TEvePointSet* itsc = its_clusters();
67 //itsc->SetMarkerColor(5);
69 TEvePointSet* tpcc = tpc_clusters();
70 tpcc->SetMarkerColor(4);
72 catch(TEveException& exc) {
73 printf("Exception loading ITS/TPC clusters: %s\n", exc.Data());
76 TEveTrackList* cont = esd_tracks();
77 cont->SetLineWidth((Width_t)2);
79 TEveElement* top = gEve->GetCurrentEvent();
80 proj->DestroyElements();
81 //AliESDEvent* esd = AliEveEventManager::AssertESD();
84 proj->ImportElements(geom);
86 proj->ImportElements(top);
87 // top->SetRnrState(kFALSE);