2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
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 class AliRawReaderFile;
16 AliRawReaderFile* reader = 0;
20 gROOT->Macro("alieve_loadlibs.C");
21 gSystem->Load("libAlieve");
23 reader = new AliRawReaderFile("raw0");
26 AliTPCRawStream input(reader);
28 x = new AliEveTPCData;
29 //x->SetSectorBlockSize(8192);
30 //x->SetLoadThreshold(5);
31 x->CreateAllSectors();
32 x->LoadRaw(input, kFALSE);
34 gStyle->SetPalette(1, 0);
36 AliEveTPCSector2D* s = new AliEveTPCSector2D();
44 void tpc_raw_pad_dump(Int_t s, Int_t r, Int_t p)
49 if(r >= AliEveTPCSectorData::GetInnSeg().fNRows) {
50 r -= AliEveTPCSectorData::GetInnSeg().fNRows;
54 AliTPCRawStream input(reader);
55 Int_t sector = input.GetSector();
56 Int_t row = input.GetRow();
58 while (input.Next()) {
59 if (input.IsNewRow()) {
60 sector = input.GetSector();
63 if(sector != s || row != r) continue;
65 Int_t signal = input.GetSignal();
66 Int_t pad = input.GetPad();
67 Int_t time = input.GetTime();
70 printf("%d %d\n", time, signal);