]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/its_raw.C
Update master to aliroot
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_raw.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 <TStyle.h>
12 #include <TEveUtil.h>
13
14 #include <AliRawReader.h>
15 #include <AliEveEventManager.h>
16 #include <AliEveITSDigitsInfo.h>
17
18 #include "its_common_foos.C"
19 #endif
20
21 // Load ITS raw-data.
22 // Argument mode is a bitwise or determining which layers to import:
23 //    1,  2 : SPD
24 //    4,  8 : SDD
25 //   16, 32 : SSD
26 // By default import all layers.
27
28 void its_raw(Int_t mode            = 63,
29              Bool_t check_empty    = kTRUE,
30              Bool_t scaled_modules = kFALSE)
31 {
32   AliRawReader *rawReader = AliEveEventManager::AssertRawReader();
33
34   TEveUtil::LoadMacro("its_common_foos.C");
35
36   AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
37   di->ReadRaw(rawReader,mode);
38   // di->Dump();
39
40   gStyle->SetPalette(1, 0);
41
42   its_display_raw_digits(di, mode, check_empty, scaled_modules);
43 }