]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDClusterFinder.h
Avoid compiler warnings.
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
1 #ifndef ALIPMDCLUSTERFINDER_H
2 #define ALIPMDCLUSTERFINDER_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 class TClonesArray;
15 class TFile;
16 class TTree;
17
18 class AliLoader;
19 class AliRunLoader;
20 class AliRawReader;
21
22 class AliPMDClusterFinder : public TObject
23 {
24
25  public:
26
27   AliPMDClusterFinder();
28   AliPMDClusterFinder(AliRunLoader* runLoader);
29   virtual ~AliPMDClusterFinder();
30
31   void Digits2RecPoints(Int_t ievt);
32   void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree);
33   void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
34   void SetCellEdepCut(Float_t ecut);
35   void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
36   void ResetCellADC();
37   void ResetRecpoint();
38   void Load();
39   void LoadClusters();
40   void UnLoad();
41   void UnLoadClusters();
42
43  protected:
44   AliRunLoader *fRunLoader; // Pointer to Run Loader
45   AliLoader    *fPMDLoader; // Pointer to specific detector loader
46
47   TTree        *fTreeD;     // Digits tree
48   TTree        *fTreeR;     // Reconstructed points
49
50   TClonesArray *fDigits;    // List of digits
51   TClonesArray *fRecpoints; // List of reconstructed points
52
53   Int_t   fNpoint;          // 
54   Int_t   fDetNo;           // Detector Number (0:PRE, 1:CPV)
55   Float_t fEcut;            // Energy/ADC cut per cell
56
57   static const Int_t fgkRow = 48; // Total number of rows in one unitmodule
58   static const Int_t fgkCol = 96; // Total number of cols in one unitmodule
59   Double_t fCellADC[fgkRow][fgkCol]; // Array containing individual cell ADC
60
61   ClassDef(AliPMDClusterFinder,7) // To run PMD clustering
62 };
63 #endif
64