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