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 **************************************************************************/
20 gROOT->Macro("alieve_loadlibs.C");
21 gSystem->Load("libAlieve");
23 TFile* f = new TFile("coctail_1k/TPC.Digits.root");
24 tree = (TTree*) gDirectory->Get("Event0/TreeD");
26 x = new AliEveTPCData;
27 // x->SetSectorBlockSize(8192);
28 // x->SetLoadThreshold(5);
29 x->CreateAllSectors();
30 x->LoadDigits(tree, kFALSE);
31 gStyle->SetPalette(1, 0);
33 AliEveTPCSector2D* s = new AliEveTPCSector2D();
41 void tpc_digi_pad_dump(Int_t s, Int_t r, Int_t p)
43 if(r >= AliEveTPCSectorData::GetInnSeg().fNRows) {
44 r -= AliEveTPCSectorData::GetInnSeg().fNRows;
48 AliSimDigits *digit = 0;
49 tree->GetBranch("Segment")->SetAddress(&digit);
51 Int_t sbr = (Int_t) tree->GetEntries();
52 for (Int_t ent=0; ent<sbr; ent++) {
55 AliEveTPCSectorData::GetParam().AdjustSectorRow(digit->GetID(), sector, row);
57 if(sector != s || row != r)
60 printf("Entry = %d, ID = %d, Sec = %d, Row = %d\n",
61 ent, digit->GetID(), sector, row);
67 pad = digit->CurrentColumn();
68 time = digit->CurrentRow();
69 signal = digit->CurrentDigit();
72 printf("%d %d\n", time, signal);
74 } while (digit->Next());