]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDClusterFinder.h
Use new naming conventions from QuadSet.
[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 class AliPMDCalibData;
22
23 class AliPMDClusterFinder : public TObject
24 {
25
26  public:
27
28   AliPMDClusterFinder();
29   AliPMDClusterFinder(AliRunLoader* runLoader);
30   AliPMDClusterFinder(const AliPMDClusterFinder &finder);  // copy constructor
31   AliPMDClusterFinder &operator=(const AliPMDClusterFinder &finder); // assignment op
32   virtual ~AliPMDClusterFinder();
33
34   void Digits2RecPoints(Int_t ievt);
35   void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree);
36   void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
37   void SetCellEdepCut(Float_t ecut);
38   void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
39   void AddRecHit(Int_t celldataX, Int_t celldataY);
40   void ResetCellADC();
41   void ResetRecpoint();
42   void ResetRechit();
43   void Load();
44   void LoadClusters();
45   void UnLoad();
46   void UnLoadClusters();
47
48   AliPMDCalibData *GetCalibData() const;
49
50  protected:
51   AliRunLoader *fRunLoader; // Pointer to Run Loader
52   AliLoader    *fPMDLoader; // Pointer to specific detector loader
53
54   AliPMDCalibData *fCalibData;  //! calibration data
55
56   TTree        *fTreeD;     // Digits tree
57   TTree        *fTreeR;     // Reconstructed points
58
59   TClonesArray *fDigits;    // List of digits
60   TClonesArray *fRecpoints; // List of reconstructed points
61   TClonesArray *fRechits;   // List of cells associated with rec points
62
63   Int_t   fNpoint;          // 
64   Int_t   fNhit;            // 
65   Int_t   fDetNo;           // Detector Number (0:PRE, 1:CPV)
66   Float_t fEcut;            // Energy/ADC cut per cell
67
68   static const Int_t fgkRow = 48; // Total number of rows in one unitmodule
69   static const Int_t fgkCol = 96; // Total number of cols in one unitmodule
70   Double_t fCellADC[fgkRow][fgkCol]; // Array containing individual cell ADC
71
72   ClassDef(AliPMDClusterFinder,10) // To run PMD clustering
73 };
74 #endif
75