]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/its_digits.C
- synchronized the overlay macro to the changes of the drawing one
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_digits.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 // Load ITS digits.
13 // Argument mode is a bitwise or determining which layers to import:
14 //    1,  2 : SPD
15 //    4,  8 : SDD
16 //   16, 32 : SSD
17 // By default import all layers.
18
19 void its_digits(Int_t mode            = 63,
20                 Bool_t check_empty    = kTRUE,
21                 Bool_t scaled_modules = kFALSE)
22 {
23   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
24   rl->LoadDigits("ITS");
25   TTree* dt = rl->GetTreeD("ITS", false);
26
27   TEveUtil::LoadMacro("its_common_foos.C");
28
29   AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
30   di->SetTree(dt);
31   // di->Dump();
32
33   gStyle->SetPalette(1, 0);
34
35   its_display_raw_digits(di, mode, check_empty, scaled_modules);
36 }