]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/its_digits.C
coverity fix for 18249
[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 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TTree.h>
12 #include <TStyle.h>
13 #include <TEveUtil.h>
14
15 #include <STEER/STEER/AliRunLoader.h>
16 #include <EveBase/AliEveEventManager.h>
17 #include <EveDet/AliEveITSDigitsInfo.h>
18
19
20 void its_display_raw_digits(AliEveITSDigitsInfo* di, Int_t mode,
21                             Bool_t check_empty    = kTRUE,
22                             Bool_t scaled_modules = kFALSE);
23
24 #endif
25
26 // Load ITS digits.
27 // Argument mode is a bitwise or determining which layers to import:
28 //    1,  2 : SPD
29 //    4,  8 : SDD
30 //   16, 32 : SSD
31 // By default import all layers.
32
33 void its_digits(Int_t mode            = 63,
34                 Bool_t check_empty    = kTRUE,
35                 Bool_t scaled_modules = kFALSE)
36 {
37   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
38   rl->LoadDigits("ITS");
39   TTree* dt = rl->GetTreeD("ITS", false);
40
41   TEveUtil::LoadMacro("its_common_foos.C");
42
43   AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
44   di->SetTree(dt);
45   // di->Dump();
46
47   gStyle->SetPalette(1, 0);
48
49   its_display_raw_digits(di, mode, check_empty, scaled_modules);
50 }