Added GetELossRandomKFast and CalcELossRandomKFast
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
CommitLineData
b208c6a3 1#ifndef ALIPMDCLUSTERFINDER_H
2#define ALIPMDCLUSTERFINDER_H
ed228cbc 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
01709453 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
01709453 14class TClonesArray;
15class TFile;
16class TObjArray;
17class TTree;
18class TNtuple;
b208c6a3 19class TMath;
01709453 20
21class AliLoader;
22class AliRunLoader;
23class AliRun;
24class AliDetector;
25class AliHeader;
26
27class AliPMDdigit;
28class AliPMDClustering;
01709453 29class AliPMDcluster;
ed228cbc 30class AliPMDrecpoint1;
01709453 31
32class AliPMDClusterFinder
33{
01709453 34
35 public:
36
dfaeee5f 37 AliPMDClusterFinder(AliRunLoader* runLoader);
01709453 38 virtual ~AliPMDClusterFinder();
39
b208c6a3 40 void Digits2RecPoints(Int_t ievt);
41 void SetCellEdepCut(Float_t ecut);
42 void SetDebug(Int_t idebug);
1758e4fe 43 void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
01709453 44 void ResetCellADC();
45 void ResetRecpoint();
b208c6a3 46 void UnLoad(Option_t * option);
47
48 protected:
49 AliRunLoader *fRunLoader; // Pointer to Run Loader
b208c6a3 50 AliLoader *fPMDLoader; // Pointer to specific detector loader
51
52 TTree *fTreeD; // Digits tree
53 TTree *fTreeR; // Reconstructed points
54
55 TClonesArray *fDigits; // List of digits
56 TClonesArray *fRecpoints; // List of reconstructed points
57
58 Int_t fNpoint; //
59 Int_t fDetNo; // Detector Number (0:PRE, 1:CPV)
60 Int_t fDebug; // Debugging switch (0:NO, 1:YES)
61 Float_t fEcut; // Energy/ADC cut per cell
62
5e6a9312 63 static const Int_t fgkRow = 48; // Total number of rows in one unitmodule
64 static const Int_t fgkCol = 96; // Total number of cols in one unitmodule
65 Double_t fCellADC[fgkRow][fgkCol]; // Array containing individual cell ADC
01709453 66
e1287360 67 ClassDef(AliPMDClusterFinder,3) // To run PMD clustering
01709453 68};
69#endif
70