AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliClusters.h
Go to the documentation of this file.
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 
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 &param); // 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  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:
34  TClonesArray * fClusters; //->
35  Int_t fNclusters;
36  TClass * fClass;
37  ClassDef(AliClusters,1) // Cluster manager
38 };
39 
40 
41 #endif //ALICLUSTERS_H
AliSegmentID object.
Definition: AliSegmentID.h:15
Int_t fNclusters
Definition: AliClusters.h:35
#define TObjArray
void SetArray(Int_t length)
virtual Int_t Find(Double_t y) const
TClonesArray * fClusters
array of clusters
Definition: AliClusters.h:34
TClass * fClass
! type of cluster class
Definition: AliClusters.h:36
const TObject * operator[](Int_t i)
void DrawClusters(Float_t shiftx, Float_t shifty, Int_t color, Int_t size, Int_t style)
Bool_t SetClass(const Text_t *classname)
Definition: AliClusters.cxx:89
Time Projection Chamber clusters objects.
Definition: AliClusters.h:17
TClonesArray * GetArray()
Definition: AliClusters.h:28
virtual TObject * InsertCluster(const TObject *c)
AliClusters & operator=(const AliClusters &param)
Definition: AliClusters.cxx:72