]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDClusterFinder.h
Channel kHardMuons added.
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
1 #ifndef PMDClusterFinder_H
2 #define PMDClusterFinder_H
3 //-----------------------------------------------------//
4 //                                                     //
5 //  Date   : August 05 2003                            //
6 //  This reads the file PMD.digits.root(TreeD),        //
7 //  calls the Clustering algorithm and stores the      //
8 //  clustering output in PMD.RecPoints.root(TreeR)     // 
9 //                                                     //
10 //-----------------------------------------------------//
11
12 #include <Riostream.h>
13 #include <stdlib.h>
14 #include <math.h>
15 #include <TMath.h>
16 #include <vector>
17 #include <algorithm>
18
19 class TClonesArray;
20 class TFile;
21 class TObjArray;
22 class TTree;
23 class TNtuple;
24
25 class AliLoader;
26 class AliRunLoader;
27 class AliRun;
28 class AliDetector;
29 class AliHeader;
30
31 class AliPMDdigit;
32 class AliPMDClustering;
33 class AliPMDcluster;
34 class AliPMDrecpoint;
35
36 //using namespace std;
37
38 class AliPMDClusterFinder
39 {
40  protected:
41   AliRunLoader *fRunLoader;
42   AliRun       *gAlice;
43   AliDetector  *PMD;      /* Get pointers to Alice detectors 
44                              and Hits containers */
45   AliLoader    *pmdloader;
46
47   TTree        *treeD;
48   TTree        *treeR;
49
50   TClonesArray *fDigits;
51   TClonesArray *fRecpoints;
52
53   Int_t fNpoint;
54   Int_t fDetNo;
55
56   static const Int_t fTotSM = 27;
57   static const Int_t fNCell = 72;
58   Float_t fCPV[fTotSM][fNCell][fNCell];
59   Float_t fPMD[fTotSM][fNCell][fNCell];
60
61  public:
62
63   AliPMDClusterFinder();
64   virtual ~AliPMDClusterFinder();
65
66   void OpengAliceFile(char * /* galice.root */, Option_t * /* option */);
67
68   void Digits2RecPoints(Int_t /* ievt */);
69   void AddRecPoint(Float_t * /* clusdata */);
70   void ResetCellADC();
71   void ResetRecpoint();
72   void UnLoad(Option_t * /* option */);
73
74   ClassDef(AliPMDClusterFinder,1)
75 };
76 #endif
77