]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCluster.h
Introduction of equipment id map. The map is taken from simple ascii formatted file...
[u/mrichter/AliRoot.git] / STEER / AliCluster.h
1 #ifndef ALICLUSTER_H
2 #define ALICLUSTER_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 //                          Class AliCluster
10 //                Generic class for clusters
11 //       Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
12 //-------------------------------------------------------------------------
13
14 #include <TObject.h>
15
16 //_____________________________________________________________________________
17 class AliCluster : public TObject {
18 public:
19   AliCluster();
20   virtual ~AliCluster() {;}
21   AliCluster(Int_t *lab, Float_t *hit);
22   void SetLabel(Int_t lab, Int_t i) {fTracks[i]=lab;}
23
24   virtual void SetX(Float_t /*x*/){}
25   virtual void SetY(Float_t y)      {fY=y;}
26   virtual void SetZ(Float_t z)      {fZ=z;}
27   virtual void SetDetector(Int_t /*detector*/) {}
28   void SetSigmaY2(Float_t sy2)      {fSigmaY2=sy2;}
29   void SetSigmaZ2(Float_t sz2)      {fSigmaZ2=sz2;}
30
31   Int_t GetLabel(Int_t i) const {return fTracks[i];}
32   virtual Float_t GetX()          const {return 0;}
33   Float_t GetY()          const {return fY;}
34   Float_t GetZ()          const {return fZ;}
35   virtual Int_t GetDetector()  const {return 0;}
36   Float_t GetSigmaY2()    const {return fSigmaY2;}
37   Float_t GetSigmaZ2()    const {return fSigmaZ2;}
38
39   //PH  virtual void Use() = 0;
40   //PH The pure virtual function has been temporarily replaced by 
41   //PH virtual function with empty body. This correction somehow helps
42   //PH to write/read TClonesArray with AliITSclusterV2 objects, but obviously
43   //PH hides some more tricky problems (to be investigated)
44   virtual void Use(Int_t = 0) {;}
45
46 protected:
47   Int_t     fTracks[3];//labels of overlapped tracks
48   Float_t   fY ;       //Y of cluster
49   Float_t   fZ ;       //Z of cluster
50   Float_t   fSigmaY2;  //Sigma Y square of cluster
51   Float_t   fSigmaZ2;  //Sigma Z square of cluster
52   
53   ClassDef(AliCluster,2)  // Time Projection Chamber clusters
54 };
55
56 #endif
57
58