dc627cea |
1 | // ----------------------------------------------------// |
2 | // // |
3 | // This macro does Digits to Reconstructed Points // |
4 | // // |
5 | // ----------------------------------------------------// |
6 | |
7 | #include "Riostream.h" |
8 | #include "TROOT.h" |
9 | #include "TFile.h" |
10 | #include "TNetFile.h" |
11 | #include "TRandom.h" |
12 | #include "TTree.h" |
13 | #include "TBranch.h" |
14 | #include "TClonesArray.h" |
15 | #include "TStopwatch.h" |
16 | #include <stdlib.h> |
17 | |
18 | void AliPMDDigits2Recpoints(Int_t nevt=1) |
19 | { |
20 | TStopwatch timer; |
21 | timer.Start(); |
22 | |
23 | // Input file name |
24 | Char_t *alifile = "galice.root"; |
25 | |
26 | // Create the PMD Cluster Finder |
27 | AliPMDClusterFinder *clus = new AliPMDClusterFinder(); |
28 | |
29 | // Open the AliRoot file |
30 | clus->OpengAliceFile(alifile,"DR"); |
31 | |
32 | Int_t ievt; |
33 | |
34 | for (ievt = 0; ievt < nevt; ievt++) |
35 | { |
36 | clus->Digits2RecPoints(ievt); |
37 | } |
38 | clus->UnLoad("R"); |
39 | timer.Stop(); |
40 | timer.Print(); |
41 | } |
42 | |