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