]>
Commit | Line | Data |
---|---|---|
cc80f89e | 1 | #ifndef ALICLUSTERS_H |
2 | #define ALICLUSTERS_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 | ||
13 | #include "AliSegmentID.h" | |
c9787763 | 14 | #include <TClonesArray.h> |
15 | ||
cc80f89e | 16 | class TObjArray; |
17 | ||
18 | ||
19 | class AliClusters : public AliSegmentID{ | |
20 | public: | |
179c6296 | 21 | AliClusters(); |
22 | AliClusters(const AliClusters ¶m); // copy constructor | |
23 | AliClusters &operator = (const AliClusters & param); | |
73042f01 | 24 | ~AliClusters(); |
25 | virtual TObject* InsertCluster(const TObject* c ); //insert copy of cluster | |
26 | const TObject* operator[](Int_t i); | |
cc80f89e | 27 | virtual Int_t Find(Double_t y) const; //find nearest cluster in y direction |
28 | void Sort(); | |
29 | TClonesArray * GetArray(){return fClusters;} | |
30 | void SetArray(Int_t length); //construct clonnes array of objects of type fClass | |
73042f01 | 31 | void DrawClusters(Float_t shiftx, Float_t shifty, Int_t color, Int_t size, Int_t style); |
cc80f89e | 32 | Bool_t SetClass(const Text_t *classname); |
33 | protected: | |
34 | TClonesArray * fClusters; | |
35 | Int_t fNclusters; | |
36 | TClass * fClass; //!type of cluster class | |
c9787763 | 37 | ClassDef(AliClusters,1) // Cluster manager |
cc80f89e | 38 | }; |
39 | ||
40 | ||
41 | #endif //ALICLUSTERS_H |