]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSRecPoint.h
b1d53f3ef9ff0450acc1fea2154bfd731deec354
[u/mrichter/AliRoot.git] / ITS / AliITSRecPoint.h
1 #ifndef ALIITSRECPOINT_H
2 #define ALIITSRECPOINT_H 
3
4 ////////////////////////////////////////////////////
5 //  Reconstructed space point class for set:ITS   //
6 ////////////////////////////////////////////////////
7
8 #include <TObject.h>
9
10
11 class AliITSRecPoint : public TObject {
12
13
14  public:
15
16   AliITSRecPoint() {
17     // default creator
18     fTracks[0]=fTracks[1]=fTracks[2]=-3; 
19     fX=fZ=fQ=fdEdX=0.;
20     fSigmaX2=fSigmaZ2=0.;
21    }
22
23   virtual ~AliITSRecPoint() {}; // distructor
24   Bool_t IsSortable() const {return kTRUE;} // allows for sorting
25   Int_t   GetLabel(Int_t i) {return fTracks[i];} // get track label
26   Float_t GetX(){return fX;} // gets fX
27   Float_t GetZ(){return fZ;} // gets fZ
28   Float_t GetQ(){return fQ;} // gets fQ
29   Float_t GetdEdX(){return fdEdX;} // gets fdEdX
30   Float_t GetSigmaX2(){return fSigmaX2;} // gets fSigmaX2
31   Float_t GetSigmaZ2(){return fSigmaZ2;} // gets fSigmaZ2
32   void SetLabel(Int_t i, Int_t lab){fTracks[i]=lab;} // sets track label
33   void SetX(Float_t x){fX=x;} // sets fX
34   void SetZ(Float_t z){fZ=z;} // sets fZ
35   void SetQ(Float_t q){fQ=q;} // sets fQ
36   void SetdEdX(Float_t dedx){fdEdX=dedx;} // sets fdEdX
37   void SetSigmaX2(Float_t sx2){fSigmaX2=sx2;} // sets fSigmaX2
38   void SetSigmaZ2(Float_t sz2){fSigmaZ2=sz2;} // sets fSigmaZ2
39   void  Use() {
40     //if fQ<0 cluster is already associated with a track
41     fQ=-fQ;
42   }
43   Int_t IsUsed() const {return (fQ<0) ? 1 : 0;} // checks Use condision
44   Int_t Compare(TObject *o) {
45     //to be defined
46     return 0;
47   } 
48
49  public:
50     Int_t     fTracks[3]; //labels of overlapped tracks
51     Float_t   fX ;        //X of cluster
52     Float_t   fZ ;        //Z of cluster
53     Float_t   fQ ;        //Q of cluster (in ADC counts)
54     Float_t   fdEdX;      //dE/dX inside this cluster
55     Float_t   fSigmaX2;   //Sigma X square of cluster
56     Float_t   fSigmaZ2;   //Sigma Z square of cluster
57
58   ClassDef(AliITSRecPoint,1)  // AliITSRecPoint class
59 };
60
61 #endif
62
63
64