]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/its_module_stepper.C
Coverity
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_module_stepper.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 #include <vector> // bypass a cint problem in root-5.20
11
12 class AliEveITSModuleStepper;
13
14 void its_module_stepper(Int_t det = 0)
15 {
16   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
17   rl->LoadDigits("ITS");
18   TTree* dt = rl->GetTreeD("ITS", false);
19
20   AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
21   di->SetTree(dt);
22   di->Dump();
23
24   gEve->DisableRedraw();
25   AliEveITSModuleStepper* ms = new AliEveITSModuleStepper(di);
26   ms->SetMainColor(8);
27   gStyle->SetPalette(1, 0);
28   ms->DisplayDet(det, -1);
29   gEve->AddElement(ms);
30   gEve->Redraw3D(kTRUE); // To enforce camera reset
31   gEve->EnableRedraw();
32
33   TGLViewer* v = gEve->GetDefaultGLViewer();
34   v->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
35   TGLCameraMarkupStyle* mup = v->GetCameraMarkup();
36   if(mup) mup->SetShow(kFALSE);
37 }