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