]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/its_raw.C
cosmetics
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_raw.C
CommitLineData
d810d0de 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 *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
6c49a8e1 9
4f8b4026 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TStyle.h>
12#include <TEveUtil.h>
20807c14 13
6c49a8e1 14#include <AliRawReader.h>
15#include <AliEveEventManager.h>
16#include <AliEveITSDigitsInfo.h>
4f8b4026 17
ba978640 18#include "its_common_foos.C"
4f8b4026 19#endif
a6337352 20
c2c4b7a2 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
a4135a45 28void its_raw(Int_t mode = 63,
29 Bool_t check_empty = kTRUE,
30 Bool_t scaled_modules = kFALSE)
9d7caeed 31{
c2c4b7a2 32 AliRawReader *rawReader = AliEveEventManager::AssertRawReader();
9d7caeed 33
c2c4b7a2 34 TEveUtil::LoadMacro("its_common_foos.C");
9d7caeed 35
d810d0de 36 AliEveITSDigitsInfo* di = new AliEveITSDigitsInfo();
c2c4b7a2 37 di->ReadRaw(rawReader,mode);
38 // di->Dump();
9d7caeed 39
40 gStyle->SetPalette(1, 0);
9d7caeed 41
a4135a45 42 its_display_raw_digits(di, mode, check_empty, scaled_modules);
9d7caeed 43}