]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Id$ |
d810d0de | 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 * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
5a5a1232 | 9 | |
4f8b4026 | 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 | |
a6337352 | 25 | |
716345b3 | 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 | ||
a4135a45 | 33 | void its_digits(Int_t mode = 63, |
34 | Bool_t check_empty = kTRUE, | |
35 | Bool_t scaled_modules = kFALSE) | |
5a5a1232 | 36 | { |
d810d0de | 37 | AliRunLoader* rl = AliEveEventManager::AssertRunLoader(); |
5a5a1232 | 38 | rl->LoadDigits("ITS"); |
39 | TTree* dt = rl->GetTreeD("ITS", false); | |
40 | ||
c2c4b7a2 | 41 | TEveUtil::LoadMacro("its_common_foos.C"); |
42 | ||
d810d0de | 43 | AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo(); |
5a5a1232 | 44 | di->SetTree(dt); |
c2c4b7a2 | 45 | // di->Dump(); |
5a5a1232 | 46 | |
47 | gStyle->SetPalette(1, 0); | |
48 | ||
a4135a45 | 49 | its_display_raw_digits(di, mode, check_empty, scaled_modules); |
5a5a1232 | 50 | } |