3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////
9 // Manager class for TPC clusters //
10 ////////////////////////////////////////////////
12 #include "AliDetector.h"
15 #include "AliSegmentArray.h"
16 #include "AliTPCParam.h"
20 #include <TClonesArray.h>
27 class AliTPCClustersRow : public AliSegmentID{
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
36 TClonesArray * fClusters;
38 ClassDef(AliTPCClustersRow,1) // Cluster manager
42 class AliTPCClustersArray : public AliSegmentArray {
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;}
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) // Cluster manager