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