]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCCluster.h
removed obsolete AliTPCDigitsDisplay.C
[u/mrichter/AliRoot.git] / TPC / AliTPCCluster.h
1 #ifndef TPCClusters_H
2 #define TPCClusters_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ////////////////////////////////////////////////
9 //  Manager class for TPC   clusters                   //
10 ////////////////////////////////////////////////
11
12 #include "AliDetector.h"
13 #include "AliHit.h" 
14 #include "AliDigit.h" 
15 #include "AliSegmentArray.h"
16 #include "AliTPCParam.h" 
17
18 #include <TMatrix.h>
19 #include <TTree.h>
20 #include <TClonesArray.h>
21
22
23 class TClonesArray;
24 class TObjArray;
25
26
27 class AliTPCClustersRow : public AliSegmentID{
28 public:
29   AliTPCClustersRow();
30   AliTPCClustersRow(Int_t size);
31   void InsertCluster(const AliTPCcluster* c ); //insert copy of cluster  
32   const AliTPCcluster* operator[](Int_t i); 
33   Int_t  Find(Double_t y) const;   //find nearest cluster in y direction
34   void Sort();
35 public:
36   TClonesArray * fClusters;  
37   Int_t  fNclusters;  
38   ClassDef(AliTPCClustersRow,1) 
39 };
40
41
42 class AliTPCClustersArray : public AliSegmentArray {
43 public:
44   AliTPCClustersArray();
45   ~AliTPCClustersArray();
46   const AliTPCClustersRow *  GetRow(Int_t sector,Int_t row); 
47   Bool_t LoadRow(Int_t sector,Int_t row);
48   Bool_t StoreRow(Int_t sector,Int_t row);
49   Bool_t Setup(AliTPCParam *param);  
50   //construct array  according parameters in fParam   
51   const AliTPCParam & GetParam() {return *fParam;} 
52 private:  
53   AliSegmentID * NewSegment(){ return (AliSegmentID*)new AliTPCClustersRow;}
54   AliTPCParam * fParam;      //pointer to TPC parameters
55   //AliTPCClustersRow ** fRow;  //pointer to array of pointers to cluster row
56   ClassDef(AliTPCClustersArray,1) 
57 };
58   
59 #endif
60