]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/NLT_test.C
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / alice-macros / NLT_test.C
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 * 
8  **************************************************************************/
9
10 TEveProjectionManager* NLT_test(TEveElement* top=0)
11 {
12   TEveScene* s = gEve->SpawnNewScene("Projected AliEveEventManager");
13   gEve->GetDefViewer()->AddScene(s);
14
15   TGLViewer* v = (TGLViewer *)gEve->GetGLViewer();
16   v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
17   TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
18   if(mup) mup->SetShow(kFALSE);
19
20   TEveProjectionManager* p = new TEveProjectionManager;
21   p->SetProjection(TEveProjection::kPT_RhoZ, 0.01);
22
23   gEve->AddToListTree(p, kTRUE);
24   gEve->AddElement(p, s);
25
26   top = gEve->GetCurrentEvent();
27   if (top)
28     p->ImportElements(top);
29
30   gEve->Redraw3D(kTRUE);
31
32   return p;
33 }