]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliComplexCluster.h
Message commented out
[u/mrichter/AliRoot.git] / TPC / AliComplexCluster.h
1 #ifndef ALICOMPLEXCLUSTER_H
2 #define ALICOMPLEXCLUSTER_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 // this is a class
9 // AliComplexCluster
10 // by M. Ivanov
11 //
12
13 #include "TObject.h"
14 #include "TMath.h"
15 #include "AliTPCclusterMI.h"
16 //
17
18 class AliComplexCluster : public TObject {
19   friend class AliTPC;
20   friend class AliTPCClusterFinder;
21   friend class AliClusters;
22   friend class AliTPCFast;
23 public:
24
25   AliComplexCluster() {
26     fTracks[0]=fTracks[1]=fTracks[2]=0; 
27     fX=fY=fQ=fSigmaX2=fSigmaY2=fSigmaXY=fArea=fMax=0.;
28   }
29   virtual ~AliComplexCluster() {;}
30   Bool_t    IsSortable() const;
31   Int_t Compare(const TObject *o) const;
32   // the following getters are needed by HLT
33   // please dont remove... C. Loizides
34   Int_t GetTrack(Int_t i)const {return fTracks[i];} //labels of overlapped tracks
35   Float_t GetX()const {return fX;}
36   Float_t GetY()const {return fY;}
37   Float_t GetQ()const {return fQ;}
38   Float_t GetSigmaX2()const {return fSigmaX2;}
39   Float_t GetSigmaY2()const {return fSigmaY2;}
40   Float_t GetSigmaXY()const {return fSigmaXY;}
41   Float_t GetArea()const {return fArea;}
42   Float_t GetMax()const {return fMax;}
43 private:
44   Int_t     fTracks[3];//labels of overlapped tracks
45   Float_t   fX ;       //Y of cluster
46   Float_t   fY ;       //Z of cluster
47   Float_t   fQ ;       //Q of cluster (in ADC counts)
48   Float_t   fSigmaX2;  //Sigma Y square of cluster
49   Float_t   fSigmaY2;  //Sigma Z square of cluster
50   Float_t   fSigmaXY;  //      XY moment 
51   Float_t   fArea;     //area of cluster
52   Float_t   fMax;     //amplitude at maximum 
53
54   ClassDef(AliComplexCluster,1)
55     // Cluster manager
56 };
57
58
59
60 class AliTPCTrackerPoint  {  
61   friend class AliTPCtrackerMI;
62   friend class AliTPCseed;
63  public:
64
65   AliTPCTrackerPoint(){fTX=0; fTY=0; fTZ=0; fTAngleZ=0; fTAngleY=0; fIsShared = 0;}
66   Float_t  GetX() const  {return (fTX*0.01);}
67   Float_t  GetZ() const {return (fTZ*0.01);}
68   Float_t  GetY() const {return (fTY*0.01);}
69   Float_t  GetAngleZ() const  {return (Float_t(fTAngleZ)*0.02);}
70   Float_t  GetAngleY() const {return (Float_t(fTAngleY)*0.02);}
71   //
72   void     SetX(Float_t x)  { fTX = Short_t(TMath::Nint(x*100.));} 
73   void     SetY(Float_t y)  { fTY = Short_t(TMath::Nint(y*100.));} 
74   void     SetZ(Float_t z)  { fTZ = Short_t(TMath::Nint(z*100.));} 
75   void     SetAngleZ(Float_t anglez) {fTAngleZ = Char_t(TMath::Nint(anglez*50.));}
76   void     SetAngleY(Float_t angley) {fTAngleY = Char_t(TMath::Nint(angley*50.));}
77   Float_t  GetSigmaZ() const {return (fSigmaZ*0.02);}
78   Float_t  GetSigmaY() const {return (fSigmaY*0.02);}  
79   Float_t  GetErrZ()   const {return (fErrZ*0.005);}
80   Float_t  GetErrY()   const {return (fErrY*0.005);}
81   void     SetErrZ(Float_t errz) {fErrZ = UChar_t(TMath::Nint(errz*200.));}
82   void     SetErrY(Float_t erry) {fErrY = UChar_t(TMath::Nint(erry*200.));}
83
84   void     SetSigmaZ(Float_t sigmaz) {fSigmaZ = UChar_t(TMath::Nint(sigmaz*50.));}
85   void     SetSigmaY(Float_t sigmay) {fSigmaY = UChar_t(TMath::Nint(sigmay*50.));}
86   //
87  private:
88   Short_t   fTX;        // x position of the cluster  in cm - 10 mum prec
89   Short_t   fTZ;        // current prolongation in Z  in cm - 10 mum prec.
90   Short_t   fTY;        // current prolongation in Y  in cm - 10 mum prec.
91   Char_t    fTAngleZ;    // angle 
92   Char_t    fTAngleY;    // angle 
93   UShort_t  fSigmaZ;     // shape  Z - normalised shape - normaliziation 1 - precision 2 percent
94   UShort_t  fSigmaY;     // shape  Y - normalised shape - normaliziation 1 - precision 2 percent
95   UShort_t  fErrZ;       // z error estimate - in  mm - 50 mum precision 
96   UShort_t  fErrY;       // y error estimate - in  mm - 50 mum precision 
97   Char_t   fIsShared;     // indicate sharing of the point between several tracks
98
99   ClassDef(AliTPCTrackerPoint,1)  
100 };
101
102 class AliTPCClusterPoint  {
103  public:
104   AliTPCClusterPoint(){fCZ=fCY=fSigmaZ=fSigmaY=fQ=fMax=fCType=0;}
105   Float_t  GetZ() const    {return (fCZ*0.01);}
106   Float_t  GetY() const   {return (fCY*0.01);}
107   Float_t  GetSigmaZ() const {return (fSigmaZ*0.02);}
108   Float_t  GetSigmaY() const {return (fSigmaY*0.02);}  
109   Int_t  GetType() const  {return fCType;}
110   Int_t  GetMax()  const {return fMax;}
111   Float_t  GetQ()  const {return fQ;}
112
113   //
114   void     SetY(Float_t y){ fCY = Short_t(TMath::Nint(y*100.));} 
115   void     SetZ(Float_t z){ fCZ = Short_t(TMath::Nint(z*100.));} 
116   void     SetSigmaZ(Float_t sigmaz) {fSigmaZ = UChar_t(TMath::Nint(sigmaz*50.));}
117   void     SetSigmaY(Float_t sigmay) {fSigmaY = UChar_t(TMath::Nint(sigmay*50.));}
118   void     SetQ(Float_t q) {fQ = UShort_t(q);}
119   void     SetMax(Float_t max) {fMax = UShort_t(max);}
120   void     SetType(Char_t type) {fCType = type;}
121  private:
122   Short_t  fCZ;       // current cluster position Z in cm - 100 mum precision
123   Short_t  fCY;       // current cluster position Y in cm - 100 mum precision
124   UChar_t  fSigmaZ;   // shape  Z - normalised shape - normaliziation 1 - precision 2 percent
125   UChar_t  fSigmaY;   // shape  Y - normalised shape - normaliziation 1 - precision 2 percent
126   UShort_t fQ;        // total charge in cluster 
127   UShort_t fMax;      // charge at maximum  
128   Char_t   fCType;    // type of the cluster
129
130   //
131   ClassDef(AliTPCClusterPoint,1)  
132 };
133
134
135 class AliTPCExactPoint : public TObject{
136   friend class AliTPCtrackerMI;
137  public:
138   AliTPCExactPoint(){fEZ=fEY=fEAngleZ=fEAngleY=fEAmp=fEPrim=fTrackID=0;}
139  private:
140   Float_t fEZ;       // current "exact" position according simulation
141   Float_t fEY;       // current "exact" position according simulation
142   Float_t fEX;       // x poistion of the cluster
143   Float_t fEAngleZ;  // angle Z
144   Float_t fEAngleY;  // angle Y
145   Float_t fEAmp;     // total charge deposited in row
146   Float_t fEPrim;    // primary charge deposited in row
147   Int_t   fTrackID;  // id of the track
148   Int_t   fRow;      // row
149   Int_t   fSec;      //sector
150   ClassDef(AliTPCExactPoint,1)  
151 };
152
153
154 class AliTPCTrackPoint: public TObject{
155   friend class AliTPCtrackerMI;
156  public:
157   AliTPCTrackPoint(){}
158   // AliTPCClusterPoint & GetCPoint(){return fCPoint;}
159   AliTPCTrackerPoint & GetTPoint(){return fTPoint;}
160   AliTPCclusterMI & GetCPoint(){return fCPoint;}  
161  private:
162   //  AliTPCClusterPoint fCPoint; 
163   //Char_t fIsShared;
164   AliTPCTrackerPoint fTPoint;  // track point
165   AliTPCclusterMI    fCPoint;  // cluster point
166   ClassDef(AliTPCTrackPoint,1)  
167 };
168
169 class AliTPCTrackPoint2: public AliTPCTrackPoint{
170   friend class AliTPCtrackerMI;
171  public:
172   AliTPCTrackPoint2(){}
173  private: 
174   Float_t fGX;    //global poition of the point
175   Float_t fGY;    //global poition of the point
176   Float_t fGZ;    //global poition of the point
177   //
178   Float_t fDY;    //distortion of the clusters from the global helix (3 point interpolation)
179   Float_t fDZ;    //distortion of the clusters from the global helix (3 point interpolation)
180   //
181   Float_t fDYU;  //derivation in y up
182   Float_t fDYD;  //distortion of y down
183   //
184   Float_t fDZU;  //derivation in y up
185   Float_t fDZD;  //distortion of y down
186   //
187   Float_t fDDY;  //derivation in y,z up-down
188   Float_t fDDZ;  //derivation in y,z up-down
189   //
190   Int_t   fID;            //id of the corresponding track
191   Int_t   fLab;           //MC label of the track
192   ClassDef(AliTPCTrackPoint2,1)  
193 };
194
195
196
197
198 class AliTPCTrackPointRef: public AliTPCTrackPoint{
199   friend class AliTPCtrackerMI;
200  public:
201   AliTPCExactPoint & GetExactPoint(){return fEPoint;}
202   AliTPCExactPoint & GetNearestPoint(){return fNPoint;}  
203  private:
204   AliTPCExactPoint fEPoint; //exact point belonging to track
205   AliTPCExactPoint fNPoint; //nearest point  
206   ClassDef(AliTPCTrackPointRef,1)  
207 };
208
209
210 #endif //ALICOMPLEXCLUSTER_H