]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliClusters.h
Adding READMEs
[u/mrichter/AliRoot.git] / TPC / AliClusters.h
CommitLineData
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 16class TObjArray;
17
18
19class AliClusters : public AliSegmentID{
20public:
179c6296 21 AliClusters();
e7de6656 22 AliClusters(const char *classname); // special constructor
179c6296 23 AliClusters(const AliClusters &param); // copy constructor
24 AliClusters &operator = (const AliClusters & param);
73042f01 25 ~AliClusters();
26 virtual TObject* InsertCluster(const TObject* c ); //insert copy of cluster
27 const TObject* operator[](Int_t i);
cc80f89e 28 virtual Int_t Find(Double_t y) const; //find nearest cluster in y direction
29 void Sort();
30 TClonesArray * GetArray(){return fClusters;}
31 void SetArray(Int_t length); //construct clonnes array of objects of type fClass
73042f01 32 void DrawClusters(Float_t shiftx, Float_t shifty, Int_t color, Int_t size, Int_t style);
cc80f89e 33 Bool_t SetClass(const Text_t *classname);
34protected:
e7de6656 35 TClonesArray * fClusters; //->array of clusters
cc80f89e 36 Int_t fNclusters;
37 TClass * fClass; //!type of cluster class
c9787763 38 ClassDef(AliClusters,1) // Cluster manager
cc80f89e 39};
40
41
42#endif //ALICLUSTERS_H