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