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