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