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