4 #include "TClonesArray.h"
6 #include "$(ALICE_ROOT)/STEER/AliRun.h"
7 #include "$(ALICE_ROOT)/ITS/AliITS.h"
8 #include "$(ALICE_ROOT)/ITS/AliITSgeom.h"
9 #include "$(ALICE_ROOT)/ITS/AliITSRecPoint.h"
11 void AliITSPrintRecPoints(TString rfn="galice.root",Int_t mod=-1,
13 // Macro to print out the recpoints for all or a specific module
15 // Dynamically link some shared libs
16 if (gClassTable->GetID("AliRun") < 0) {
17 gROOT->LoadMacro("loadlibs.C");
20 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSstandard.C");
23 rf = AccessFile(rfn,"R"); // Set up to read in Data
24 AliITS *ITS = (AliITS*)gAlice->GetDetector("ITS");
26 cout << "Error: no ITS found. Aborting"<<endl;
31 Int_t evNumber2 = gAlice->GetEventsPerRun();
37 Int_t mod2 = ITS->GetITSgeom()->GetIndexMax();
42 TClonesArray *rpa = ITS->RecPoints();
43 AliITSRecPoint *rp = 0;
46 for(event = evNumber1; event < evNumber2; event++){
47 gAlice->GetEvent(event);
48 for(m=mod1;m<mod2;m++){
49 ITS->ResetRecPoints();
50 gAlice->TreeR()->GetEvent(m);
51 i2 = rpa->GetEntriesFast();
52 cout << "Event=" << event << " module=" << m <<
53 " Number of Recpoints=" << i2 <<endl;
55 rp = (AliITSRecPoint*)(rpa->At(i));
57 rp->Print((ostream*)cout);