2 class TEveProjectionManager;
7 TEveProjectionManager * proj = 0;
8 TEveGeoShape * geom = 0;
10 void tpc_tracks(const char *input=0)
17 if (ipath.Contains(".zip")){
18 gSystem->Exec("rm TPC*");
19 gSystem->Exec("rm AliESD*");
20 if (ipath.Contains("root:/")){
22 sprintf(command,"xrdcp %s in.zip",input);
23 gSystem->Exec(command);
25 if (ipath.Contains("alien:/")){
27 sprintf(command,"alien_cp %s in.zip",input);
28 gSystem->Exec(command);
30 gSystem->Exec("unzip in.zip");
34 TEveUtil::LoadMacro("alieve_init.C");
37 TEveUtil::LoadMacro("geom_gentle.C");
39 TEveUtil::LoadMacro("primary_vertex.C");
40 TEveUtil::LoadMacro("esd_tracks.C");
41 TEveUtil::LoadMacro("its_clusters.C+");
42 TEveUtil::LoadMacro("tpc_clusters.C+");
44 TEveViewer* nv = gEve->SpawnNewViewer("NLT Projected");
45 TEveScene* ns = gEve->SpawnNewScene("NLT");
47 TGLViewer* v = nv->GetGLViewer();
48 v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
49 TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
50 if(mup) mup->SetShow(kFALSE);
52 TEveTrackCounter* g_trkcnt = new TEveTrackCounter("Primary Counter");
53 gEve->AddToListTree(g_trkcnt, kFALSE);
55 TEveProjectionManager* p = new TEveProjectionManager; proj = p;
56 gEve->AddToListTree(p, kTRUE);
57 gEve->AddElement(proj, ns);
60 TEveGeoShape* gg = geom_gentle();
64 gEvent->AddNewEventCommand("on_new_event();");
67 gEve->Redraw3D(kTRUE);
70 /**************************************************************************/
75 //TEvePointSet* itsc = its_clusters();
76 //itsc->SetMarkerColor(5);
78 TEvePointSet* tpcc = tpc_clusters();
79 tpcc->SetMarkerColor(4);
81 catch(TEveException& exc) {
82 printf("Exception loading ITS/TPC clusters: %s\n", exc.Data());
85 TEveTrackList* cont = esd_tracks();
86 cont->SetLineWidth((Width_t)2);
88 TEveElement* top = gEve->GetCurrentEvent();
89 proj->DestroyElements();
90 //AliESDEvent* esd = AliEveEventManager::AssertESD();
93 proj->ImportElements(geom);
95 proj->ImportElements(top);
96 // top->SetRnrState(kFALSE);