1 // ----------------------------------------------------//
3 // This macro does Digits to Reconstructed Points //
5 // ----------------------------------------------------//
14 #include "TClonesArray.h"
15 #include "TStopwatch.h"
18 void AliPMDDigits2Recpoints(Int_t nevt=1)
23 // Open the AliRoot file
24 AliRunLoader *fRunLoader = AliRunLoader::Open("galice.root");
27 cerr<<"Can't load RunLoader"<<endl;
30 fRunLoader->LoadgAlice();
31 gAlice = fRunLoader->GetAliRun();
33 printf(" Do you want reconstruction from Digits file or RAW data \n");
34 printf(" If RAW, type 0 \n");
35 printf(" If Digits, type 1 \n");
39 // Create the PMD Cluster Finder
40 AliPMDClusterFinder *clus = new AliPMDClusterFinder(fRunLoader);
52 for (Int_t ievt = 0; ievt < nevt; ievt++)
57 clus->Digits2RecPoints(ievt);
62 AliRawReaderFile reader(ievt);
63 clus->Digits2RecPoints(ievt, &reader);
72 clus->UnLoadClusters();