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