]>
Commit | Line | Data |
---|---|---|
81e97e0d | 1 | #ifndef ALITPCSEED_H |
2 | #define ALITPCSEED_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | //------------------------------------------------------- | |
10 | // TPC seed | |
11 | // Class needed for TPC parallel tracking | |
12 | // | |
13 | // Origin: | |
14 | //------------------------------------------------------- | |
15 | ||
16 | #include <TError.h> | |
19b00333 | 17 | #include <TBits.h> |
81e97e0d | 18 | |
19 | #include "AliTPCtrack.h" | |
20 | #include "AliComplexCluster.h" | |
21 | #include "AliPID.h" | |
22 | ||
23 | class TFile; | |
24 | class AliTPCParam; | |
25 | class AliTPCseed; | |
26 | class AliTPCclusterMI; | |
27 | class AliTPCTrackerPoint; | |
7cd8ac3f | 28 | class AliESD; |
29 | class AliTPCCalPad; | |
81e97e0d | 30 | class TClonesArray; |
31 | ||
32 | class AliTPCseed : public AliTPCtrack { | |
81e97e0d | 33 | public: |
34 | AliTPCseed(); | |
35 | virtual ~AliTPCseed(); | |
36 | AliTPCseed(const AliTPCtrack &t); | |
2928bdf0 | 37 | AliTPCseed(const AliTPCseed &s, Bool_t clusterOwner = kFALSE); |
81e97e0d | 38 | //AliTPCseed(const AliTPCseed &t, Double_t a); |
6c94f330 | 39 | AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5], |
179c6296 | 40 | const Double_t cc[15], Int_t i); |
41 | AliTPCseed &operator = (const AliTPCseed & param); | |
f06a1ff6 | 42 | void Clear(Option_t* = ""); |
87e92a27 | 43 | static Int_t RefitTrack(AliTPCseed* seed, AliExternalTrackParam * in, AliExternalTrackParam * out); |
44 | Bool_t RefitTrack(AliTPCseed* seed, Bool_t out); | |
81e97e0d | 45 | Int_t Compare(const TObject *o) const; |
46 | void Reset(Bool_t all = kTRUE); | |
47 | Int_t GetProlongation(Double_t xr, Double_t &y, Double_t & z) const; | |
af32720d | 48 | virtual Double_t GetPredictedChi2(const AliCluster *cluster2) const; |
6c94f330 | 49 | virtual Bool_t Update(const AliCluster* c2, Double_t chi2, Int_t i); |
81e97e0d | 50 | AliTPCTrackerPoint * GetTrackPoint(Int_t i); |
c6c5e49f | 51 | AliTPCclusterMI * GetClusterFast(Int_t irow){ return fClusterPointer[irow];} |
b9671574 | 52 | void SetClusterPointer(Int_t irow, AliTPCclusterMI* cl) {fClusterPointer[irow]=cl;} |
81e97e0d | 53 | Double_t GetDensityFirst(Int_t n); |
6c94f330 | 54 | Double_t GetSigma2C() const { |
55 | Double_t cnv=GetBz()*kB2C; | |
56 | return GetSigma1Pt2()*cnv*cnv; | |
57 | } | |
81e97e0d | 58 | void GetClusterStatistic(Int_t first, Int_t last, Int_t &found, Int_t &foundable, Int_t &shared, Bool_t plus2); |
59 | ||
60 | void Modify(Double_t factor); | |
61 | void SetClusterIndex2(Int_t row, Int_t index) { | |
62 | fIndex[row] = index; | |
63 | } | |
64 | Int_t GetClusterIndex2(Int_t row) const { | |
65 | return fIndex[row]; | |
66 | } | |
67 | Int_t GetClusterSector(Int_t row) const { | |
68 | Int_t pica = -1; | |
69 | if (fIndex[row]>=0) pica = ((fIndex[row]&0xff000000)>>24); | |
70 | return pica; | |
71 | } | |
72 | ||
6c94f330 | 73 | Double_t GetYat(Double_t x) const; |
74 | ||
81e97e0d | 75 | void SetErrorY2(Float_t sy2){fErrorY2=sy2;} |
76 | void SetErrorZ2(Float_t sz2){fErrorZ2=sz2;} | |
105b1b81 | 77 | Float_t CookdEdx(Double_t low=0.05, Double_t up=0.70, Int_t i1=0, Int_t i2=159, Bool_t onlyused = kFALSE); |
eb02f63a | 78 | Float_t CookShape(Int_t type); |
f845ec0a | 79 | // Float_t CookShape2(Int_t type,Bool_t withQ); |
81e97e0d | 80 | void CookPID(); |
81e97e0d | 81 | Bool_t IsActive() const { return !(fRemoval);} |
82 | void Desactivate(Int_t reason){ fRemoval = reason;} | |
b9671574 | 83 | AliTPCclusterMI* GetClusterPointer(Int_t i) const {return fClusterPointer[i];} |
84 | Int_t GetSector() const {return fSector;} | |
85 | Float_t GetCurrentSigmaY2() const {return fCurrentSigmaY2;} | |
86 | Float_t GetCurrentSigmaZ2() const {return fCurrentSigmaZ2;} | |
87 | Int_t GetRelativeSector() const {return fRelativeSector;} | |
88 | Char_t GetCircular() const {return fCircular;} | |
89 | ||
90 | void SetCurrentSigmaY2(Float_t s) {fCurrentSigmaY2=s;} | |
91 | void SetCurrentSigmaZ2(Float_t s) {fCurrentSigmaZ2=s;} | |
92 | void SetRelativeSector(Int_t r) {fRelativeSector=r;} | |
93 | void SetCircular(Char_t c) {fCircular=c;} | |
94 | void SetIsSeeding(Bool_t s) {fIsSeeding=s;} | |
95 | void SetSeedType(Int_t s) {fSeedType=s;} | |
96 | void SetSeed1(Int_t s) {fSeed1=s;} | |
97 | void SetSeed2(Int_t s) {fSeed2=s;} | |
98 | void SetESD(AliESDtrack* esd) {fEsd=esd;} | |
99 | void SetBSigned(Bool_t s) {fBSigned=s;} | |
100 | void SetSort(Int_t s) {fSort=s;} | |
101 | void SetOverlapLabel(Int_t i, Int_t l) {fOverlapLabels[i]=l;} | |
102 | void SetCurrentCluster(AliTPCclusterMI* cl) {fCurrentCluster=cl;} | |
103 | void SetNoCluster(Int_t n) {fNoCluster=n;} | |
104 | void SetRow(Int_t n) {fRow=n;} | |
105 | void SetSector(Int_t n) {fSector=n;} | |
106 | void SetCurrentClusterIndex1(Int_t n) {fCurrentClusterIndex1=n;} | |
107 | void SetInDead(Bool_t s) {fInDead=s;} | |
b9671574 | 108 | |
109 | Double_t TPCrPID(Int_t i) const {return fTPCr[i];} | |
110 | Double_t* TPCrPIDs() {return fTPCr;} | |
111 | Bool_t GetIsSeeding() const {return fIsSeeding;} | |
112 | Int_t GetSeedType() const {return fSeedType;} | |
113 | Int_t GetSeed1() const {return fSeed1;} | |
114 | Int_t GetSeed2() const {return fSeed2;} | |
115 | AliESDtrack* GetESD() {return fEsd;} | |
116 | Float_t GetSDEDX(Int_t i) const {return fSDEDX[i];} | |
64bf5ca0 | 117 | Float_t GetDEDXregion(Int_t i) const {return fDEDX[i];} |
b9671574 | 118 | Int_t GetNCDEDX(Int_t i) const {return fNCDEDX[i];} |
64bf5ca0 | 119 | Int_t GetNCDEDXInclThres(Int_t i) const {return fNCDEDXInclThres[i];} |
b9671574 | 120 | Bool_t GetBSigned() const {return fBSigned;} |
121 | Int_t GetSort() const {return fSort;} | |
122 | Int_t GetOverlapLabel(Int_t i) const {return fOverlapLabels[i];} | |
123 | AliTPCclusterMI* GetCurrentCluster() const {return fCurrentCluster;} | |
124 | Int_t GetNoCluster() const {return fNoCluster;} | |
125 | Int_t GetRow() const {return fRow;} | |
126 | Int_t GetCurrentClusterIndex1() const {return fCurrentClusterIndex1;} | |
127 | Bool_t GetInDead() const {return fInDead;} | |
128 | Float_t GetErrorY2() const {return fErrorY2;} | |
129 | Float_t GetErrorZ2() const {return fErrorZ2;} | |
e0e13b88 | 130 | Float_t GetCMeanSigmaY2p30() const {return fCMeanSigmaY2p30;} |
131 | Float_t GetCMeanSigmaZ2p30() const {return fCMeanSigmaZ2p30;} | |
c07cb486 | 132 | Float_t GetCMeanSigmaY2p30R() const {return fCMeanSigmaY2p30R;} |
133 | Float_t GetCMeanSigmaZ2p30R() const {return fCMeanSigmaZ2p30R;} | |
81e97e0d | 134 | // |
135 | // | |
19b00333 | 136 | |
8a92e133 | 137 | Float_t CookdEdxNorm(Double_t low=0.05, Double_t up=0.70, Int_t type=0, Int_t i1=0, Int_t i2=159, Bool_t shapeNorm=kTRUE, Int_t posNorm=0, Int_t padNorm=0,Int_t returnVal=0); |
138 | ||
6feb400f | 139 | Float_t CookdEdxAnalytical(Double_t low=0.05, Double_t up=0.70, Int_t type=0, Int_t i1=0, Int_t i2=159, Int_t returnVal=0, Int_t rowThres = 2, Int_t mode=0); |
8a92e133 | 140 | |
3247d397 | 141 | static void GetError(AliTPCclusterMI* cluster, AliExternalTrackParam * param, |
142 | Double_t& erry, Double_t &errz); | |
143 | static void GetShape(AliTPCclusterMI* cluster, AliExternalTrackParam * param, | |
144 | Double_t& rmsy, Double_t &rmsz); | |
ba5e52fb | 145 | static Double_t GetQCorrGeom(Float_t ty, Float_t tz); |
146 | static Double_t GetQCorrShape(Int_t ipad, Int_t type,Float_t z, Float_t ty, Float_t tz, Float_t q, Float_t thr); | |
64bf5ca0 | 147 | // |
148 | Float_t GetTPCClustInfo(Int_t nNeighbours, Int_t type, Int_t row0, Int_t row1); | |
ddfbc51a | 149 | void SetPoolID(Int_t id) {fPoolID = id;} |
150 | Int_t GetPoolID() const {return fPoolID;} | |
1791d824 | 151 | Int_t GetNumberOfClustersIndices(); // Should be in AliTPCtrack |
81e97e0d | 152 | private: |
153 | // AliTPCseed & operator = (const AliTPCseed &) | |
154 | // {::Fatal("= operator","Not Implemented\n");return *this;} | |
155 | AliESDtrack * fEsd; //! | |
105b1b81 | 156 | AliTPCclusterMI* fClusterPointer[160]; // array of cluster pointers - |
2928bdf0 | 157 | Bool_t fClusterOwner; // indicates the track is owner of cluster |
81e97e0d | 158 | //---CURRENT VALUES |
6d493ea0 | 159 | Int_t fRow; // current row number |
160 | Int_t fSector; // current sector number | |
161 | Int_t fRelativeSector; // index of current relative sector | |
81e97e0d | 162 | Float_t fCurrentSigmaY2; //!expected current cluster sigma Y |
163 | Float_t fCurrentSigmaZ2; //!expected current cluster sigma Z | |
e0e13b88 | 164 | Float_t fCMeanSigmaY2p30; //! current mean sigma Y2 - mean30% |
165 | Float_t fCMeanSigmaZ2p30; //! current mean sigma Z2 - mean30% | |
c07cb486 | 166 | Float_t fCMeanSigmaY2p30R; //! current relative mean sigma Y2 - mean30% |
167 | Float_t fCMeanSigmaZ2p30R; //! current relative mean sigma Z2 - mean30% | |
81e97e0d | 168 | Float_t fErrorY2; //!sigma of current cluster |
169 | Float_t fErrorZ2; //!sigma of current cluster | |
170 | AliTPCclusterMI * fCurrentCluster; //!pointer to the current cluster for prolongation | |
171 | Int_t fCurrentClusterIndex1; //! index of the current cluster | |
172 | Bool_t fInDead; //! indicate if the track is in dead zone | |
173 | Bool_t fIsSeeding; //!indicates if it is proces of seeading | |
174 | Int_t fNoCluster; //!indicates number of rows without clusters | |
175 | Int_t fSort; //!indicate criteria for sorting | |
176 | Bool_t fBSigned; //indicates that clusters of this trackes are signed to be used | |
177 | // | |
178 | // | |
64bf5ca0 | 179 | Float_t fDEDX[5]; // dedx according padrows |
180 | Float_t fSDEDX[4]; // sdedx according padrows | |
181 | Int_t fNCDEDX[4]; // number of clusters for dedx measurment | |
182 | Int_t fNCDEDXInclThres[4]; // number of clusters for dedx measurment including sub-threshold clusters | |
81e97e0d | 183 | Double_t fTPCr[AliPID::kSPECIES]; // rough PID according TPC |
184 | // | |
185 | Int_t fSeedType; //seeding type | |
186 | Int_t fSeed1; //first row for seeding | |
187 | Int_t fSeed2; //last row for seeding | |
188 | Int_t fOverlapLabels[12]; //track labels and the length of the overlap | |
189 | Float_t fMAngular; // mean angular factor | |
190 | Char_t fCircular; // indicates curlin track | |
105b1b81 | 191 | AliTPCTrackerPoint fTrackPoints[160]; //track points - array track points |
ddfbc51a | 192 | Int_t fPoolID; //! id in the pool |
f06a1ff6 | 193 | ClassDef(AliTPCseed,6) |
81e97e0d | 194 | }; |
195 | ||
196 | ||
197 | ||
198 | ||
199 | ||
200 | #endif | |
201 | ||
202 |