]>
Commit | Line | Data |
---|---|---|
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 | 14 | class TClonesArray; |
15 | class TFile; | |
01709453 | 16 | class TTree; |
01709453 | 17 | |
18 | class AliLoader; | |
19 | class AliRunLoader; | |
5f55af10 | 20 | class AliRawReader; |
09a06455 | 21 | class AliPMDCalibData; |
35535af7 | 22 | class AliPMDPedestal; |
7adbd8e9 | 23 | class AliPMDHotData; |
963fe679 | 24 | class AliPMDNoiseCut; |
b9e2f33c | 25 | class AliPMDRecoParam; |
01709453 | 26 | |
7e9508a7 | 27 | class AliPMDClusterFinder : public TObject |
01709453 | 28 | { |
01709453 | 29 | |
30 | public: | |
31 | ||
7e9508a7 | 32 | AliPMDClusterFinder(); |
dfaeee5f | 33 | AliPMDClusterFinder(AliRunLoader* runLoader); |
a48edddd | 34 | AliPMDClusterFinder(const AliPMDClusterFinder &finder); // copy constructor |
35 | AliPMDClusterFinder &operator=(const AliPMDClusterFinder &finder); // assignment op | |
01709453 | 36 | virtual ~AliPMDClusterFinder(); |
37 | ||
8fbad6d3 | 38 | void Digits2RecPoints(TTree *digitsTree, TTree *clustersTree); |
7e9508a7 | 39 | void Digits2RecPoints(AliRawReader *rawReader, TTree *clustersTree); |
963fe679 | 40 | |
1758e4fe | 41 | void AddRecPoint(Int_t idet, Int_t ismn, Float_t * clusdata); |
920e13db | 42 | void AddRecHit(Int_t celldataX, Int_t celldataY, Int_t celldataTr, |
b0e4d1e1 | 43 | Int_t celldataPid, Float_t celldataAdc); |
01709453 | 44 | void ResetCellADC(); |
45 | void ResetRecpoint(); | |
5c5cadd5 | 46 | void ResetRechit(); |
55601d47 | 47 | void Load(); |
01b56f5c | 48 | void LoadClusters(); |
ebd83c56 | 49 | void UnLoad(); |
01b56f5c | 50 | void UnLoadClusters(); |
b208c6a3 | 51 | |
35535af7 | 52 | AliPMDCalibData *GetCalibGain() const; |
53 | AliPMDPedestal *GetCalibPed() const; | |
7adbd8e9 | 54 | AliPMDHotData *GetCalibHot() const; |
963fe679 | 55 | AliPMDNoiseCut *GetNoiseCut() const; |
09a06455 | 56 | |
b208c6a3 | 57 | protected: |
58 | AliRunLoader *fRunLoader; // Pointer to Run Loader | |
b208c6a3 | 59 | AliLoader *fPMDLoader; // Pointer to specific detector loader |
60 | ||
35535af7 | 61 | AliPMDCalibData *fCalibGain; //! Gain calibration data |
62 | AliPMDPedestal *fCalibPed; //! Pedestal calibration data | |
7adbd8e9 | 63 | AliPMDHotData *fCalibHot; //! Hot data |
963fe679 | 64 | AliPMDNoiseCut *fNoiseCut; //! Noise cut |
09a06455 | 65 | |
b9e2f33c | 66 | const AliPMDRecoParam *fRecoParam; // reconstruction parameter |
67 | ||
b208c6a3 | 68 | TTree *fTreeD; // Digits tree |
69 | TTree *fTreeR; // Reconstructed points | |
70 | ||
71 | TClonesArray *fDigits; // List of digits | |
72 | TClonesArray *fRecpoints; // List of reconstructed points | |
5c5cadd5 | 73 | TClonesArray *fRechits; // List of cells associated with rec points |
b208c6a3 | 74 | |
75 | Int_t fNpoint; // | |
5c5cadd5 | 76 | Int_t fNhit; // |
b208c6a3 | 77 | Int_t fDetNo; // Detector Number (0:PRE, 1:CPV) |
963fe679 | 78 | |
b208c6a3 | 79 | |
5e6a9312 | 80 | static const Int_t fgkRow = 48; // Total number of rows in one unitmodule |
81 | static const Int_t fgkCol = 96; // Total number of cols in one unitmodule | |
82 | Double_t fCellADC[fgkRow][fgkCol]; // Array containing individual cell ADC | |
920e13db | 83 | Int_t fCellTrack[fgkRow][fgkCol]; // Array containing individual cell tr |
84 | Int_t fCellPid[fgkRow][fgkCol]; // Array containing individual cell pid | |
01709453 | 85 | |
963fe679 | 86 | ClassDef(AliPMDClusterFinder,17) // To run PMD clustering |
01709453 | 87 | }; |
88 | #endif | |
89 |