]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDClusterFinder.h
Minor changes
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
1 #ifndef PMDClusterFinder_H
2 #define PMDClusterFinder_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5 //-----------------------------------------------------//
6 //                                                     //
7 //  Date   : August 05 2003                            //
8 //  This reads the file PMD.digits.root(TreeD),        //
9 //  calls the Clustering algorithm and stores the      //
10 //  clustering output in PMD.RecPoints.root(TreeR)     // 
11 //                                                     //
12 //-----------------------------------------------------//
13
14 #include <Riostream.h>
15 #include <stdlib.h>
16 #include <math.h>
17 #include <TMath.h>
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 AliPMDrecpoint1;
35
36 class AliPMDClusterFinder
37 {
38  protected:
39   AliRunLoader *fRunLoader;
40   AliRun       *gAlice;
41   AliDetector  *PMD;      /* Get pointers to Alice detectors 
42                              and Hits containers */
43   AliLoader    *pmdloader;
44
45   TTree        *treeD;
46   TTree        *treeR;
47
48   TClonesArray *fDigits;
49   TClonesArray *fRecpoints;
50
51   Int_t fNpoint;
52   Int_t fDetNo;
53   Int_t fDebug;
54   Float_t fEcut;
55
56   static const Int_t fRow = 48;
57   static const Int_t fCol = 96;
58   Double_t fCellADC[fRow][fCol];
59
60  public:
61
62   AliPMDClusterFinder();
63   virtual ~AliPMDClusterFinder();
64
65   void OpengAliceFile(char * /* galice.root */, Option_t * /* option */);
66
67   void Digits2RecPoints(Int_t /* ievt */);
68   void SetCellEdepCut(Float_t /* ecut */);
69   void SetDebug(Int_t /* idebug */);
70   void AddRecPoint(Float_t * /* clusdata */);
71   void ResetCellADC();
72   void ResetRecpoint();
73   void UnLoad(Option_t * /* option */);
74
75   ClassDef(AliPMDClusterFinder,2)
76 };
77 #endif
78