New methods Reconstruct and FillESD added
[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;
01709453 16class TTree;
01709453 17
18class AliLoader;
19class AliRunLoader;
5f55af10 20class AliRawReader;
01709453 21
01709453 22class AliPMDClusterFinder
23{
01709453 24
25 public:
26
dfaeee5f 27 AliPMDClusterFinder(AliRunLoader* runLoader);
01709453 28 virtual ~AliPMDClusterFinder();
29
b208c6a3 30 void Digits2RecPoints(Int_t ievt);
5f55af10 31 void Digits2RecPoints(Int_t ievt, AliRawReader *rawReader);
b208c6a3 32 void SetCellEdepCut(Float_t ecut);
33 void SetDebug(Int_t idebug);
1758e4fe 34 void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata);
01709453 35 void ResetCellADC();
36 void ResetRecpoint();
55601d47 37 void Load();
01b56f5c 38 void LoadClusters();
ebd83c56 39 void UnLoad();
01b56f5c 40 void UnLoadClusters();
b208c6a3 41
42 protected:
43 AliRunLoader *fRunLoader; // Pointer to Run Loader
b208c6a3 44 AliLoader *fPMDLoader; // Pointer to specific detector loader
45
46 TTree *fTreeD; // Digits tree
47 TTree *fTreeR; // Reconstructed points
48
49 TClonesArray *fDigits; // List of digits
50 TClonesArray *fRecpoints; // List of reconstructed points
51
52 Int_t fNpoint; //
53 Int_t fDetNo; // Detector Number (0:PRE, 1:CPV)
54 Int_t fDebug; // Debugging switch (0:NO, 1:YES)
55 Float_t fEcut; // Energy/ADC cut per cell
56
5e6a9312 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
01709453 60
01b56f5c 61 ClassDef(AliPMDClusterFinder,6) // To run PMD clustering
01709453 62};
63#endif
64