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