4 class TEveProjectionManager;
9 TEveProjectionManager * proj = 0;
10 TEveGeoShape * geom = 0;
12 void tpc_tracks(const char *input=0)
18 if (ipath.Contains(".zip")){
19 gSystem->Exec("rm TPC*");
20 gSystem->Exec("rm AliESD*");
21 if (ipath.Contains("root:/")){
23 sprintf(command,"xrdcp %s in.zip",input);
24 gSystem->Exec(command);
26 if (ipath.Contains("alien:/")){
28 sprintf(command,"alien_cp %s in.zip",input);
29 gSystem->Exec(command);
31 gSystem->Exec("unzip in.zip");
35 TEveUtil::LoadMacro("alieve_init.C");
38 TEveUtil::LoadMacro("geom_gentle.C");
40 TEveUtil::LoadMacro("primary_vertex.C");
41 TEveUtil::LoadMacro("esd_tracks.C");
42 TEveUtil::LoadMacro("its_clusters.C+");
43 TEveUtil::LoadMacro("tpc_clusters.C+");
45 TEveViewer* nv = gEve->SpawnNewViewer("NLT Projected");
46 TEveScene* ns = gEve->SpawnNewScene("NLT");
48 TGLViewer* v = nv->GetGLViewer();
49 v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
50 TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
51 if(mup) mup->SetShow(kFALSE);
53 TEveTrackCounter* g_trkcnt = new TEveTrackCounter("Primary Counter");
54 gEve->AddToListTree(g_trkcnt, kFALSE);
56 TEveProjectionManager* p = new TEveProjectionManager; proj = p;
57 gEve->AddToListTree(p, kTRUE);
58 gEve->AddElement(proj, ns);
61 TEveGeoShape* gg = geom_gentle();
65 gAliEveEvent->AddNewEventCommand("on_new_event();");
66 gAliEveEvent->GotoEvent(0);
68 gEve->Redraw3D(kTRUE);
71 /**************************************************************************/
76 //TEvePointSet* itsc = its_clusters();
77 //itsc->SetMarkerColor(5);
79 TEvePointSet* tpcc = tpc_clusters();
80 tpcc->SetMarkerColor(4);
82 catch(TEveException& exc) {
83 printf("Exception loading ITS/TPC clusters: %s\n", exc.Data());
86 TEveTrackList* cont = esd_tracks();
87 cont->SetLineWidth((Width_t)2);
89 TEveElement* top = gEve->GetCurrentEvent();
90 proj->DestroyElements();
91 //AliESDEvent* esd = AliEveEventManager::AssertESD();
94 proj->ImportElements(geom);
96 proj->ImportElements(top);
97 // top->SetRnrState(kFALSE);