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 | |
7cf8248d |
23 | // Open the AliRoot file |
24 | AliRunLoader *fRunLoader = AliRunLoader::Open("galice.root"); |
25 | if (!fRunLoader) |
26 | { |
27 | cerr<<"Can't load RunLoader"<<endl; |
28 | return 1; |
29 | } |
30 | fRunLoader->LoadgAlice(); |
31 | gAlice = fRunLoader->GetAliRun(); |
32 | |
dc627cea |
33 | |
34 | // Create the PMD Cluster Finder |
7cf8248d |
35 | AliPMDClusterFinder *clus = new AliPMDClusterFinder(fRunLoader); |
dc627cea |
36 | |
7cf8248d |
37 | clus->SetDebug(1); |
38 | clus->Load(); |
39 | |
452cffbf |
40 | |
41 | |
7cf8248d |
42 | for (Int_t ievt = 0; ievt < nevt; ievt++) |
dc627cea |
43 | { |
452cffbf |
44 | // from digits data |
45 | // clus->Digits2RecPoints(ievt); |
46 | |
47 | // from raw data |
48 | AliRawReaderFile reader(ievt); |
49 | clus->Digits2RecPoints(ievt, &reader); |
dc627cea |
50 | } |
452cffbf |
51 | clus->UnLoad(); |
7cf8248d |
52 | |
dc627cea |
53 | timer.Stop(); |
54 | timer.Print(); |
55 | } |
56 | |