]>
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; | |
16 | class TObjArray; | |
17 | class TTree; | |
18 | class TNtuple; | |
b208c6a3 | 19 | class TMath; |
01709453 | 20 | |
21 | class AliLoader; | |
22 | class AliRunLoader; | |
23 | class AliRun; | |
24 | class AliDetector; | |
25 | class AliHeader; | |
26 | ||
27 | class AliPMDdigit; | |
28 | class AliPMDClustering; | |
01709453 | 29 | class AliPMDcluster; |
ed228cbc | 30 | class AliPMDrecpoint1; |
01709453 | 31 | |
32 | class AliPMDClusterFinder | |
33 | { | |
01709453 | 34 | |
35 | public: | |
36 | ||
37 | AliPMDClusterFinder(); | |
38 | virtual ~AliPMDClusterFinder(); | |
39 | ||
b208c6a3 | 40 | void OpengAliceFile(char * file, Option_t * option); |
01709453 | 41 | |
b208c6a3 | 42 | void Digits2RecPoints(Int_t ievt); |
43 | void SetCellEdepCut(Float_t ecut); | |
44 | void SetDebug(Int_t idebug); | |
45 | void AddRecPoint(Float_t * clusdata); | |
01709453 | 46 | void ResetCellADC(); |
47 | void ResetRecpoint(); | |
b208c6a3 | 48 | void UnLoad(Option_t * option); |
49 | ||
50 | protected: | |
51 | AliRunLoader *fRunLoader; // Pointer to Run Loader | |
52 | AliRun *gAlice; // Pointer to Run | |
53 | AliDetector *fPMD; // Pointers to Alice detectors & Hits containers | |
54 | AliLoader *fPMDLoader; // Pointer to specific detector loader | |
55 | ||
56 | TTree *fTreeD; // Digits tree | |
57 | TTree *fTreeR; // Reconstructed points | |
58 | ||
59 | TClonesArray *fDigits; // List of digits | |
60 | TClonesArray *fRecpoints; // List of reconstructed points | |
61 | ||
62 | Int_t fNpoint; // | |
63 | Int_t fDetNo; // Detector Number (0:PRE, 1:CPV) | |
64 | Int_t fDebug; // Debugging switch (0:NO, 1:YES) | |
65 | Float_t fEcut; // Energy/ADC cut per cell | |
66 | ||
67 | static const Int_t fRow = 48; // Total number of rows in one unitmodule | |
68 | static const Int_t fCol = 96; // Total number of cols in one unitmodule | |
69 | Double_t fCellADC[fRow][fCol]; // Array containing individual cell ADC | |
01709453 | 70 | |
b208c6a3 | 71 | ClassDef(AliPMDClusterFinder,2) // To run PMD clustering |
01709453 | 72 | }; |
73 | #endif | |
74 |