]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCseed.h
Fix bug in GetBusPatch method for station 2 (Christian & Laurent)
[u/mrichter/AliRoot.git] / TPC / AliTPCseed.h
CommitLineData
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>
17
18#include "AliTPCtrack.h"
19#include "AliComplexCluster.h"
20#include "AliPID.h"
21
22class TFile;
23class AliTPCParam;
24class AliTPCseed;
25class AliTPCclusterMI;
26class AliTPCTrackerPoint;
27class AliESD;
28class TClonesArray;
29
30class AliTPCseed : public AliTPCtrack {
81e97e0d 31 public:
32 AliTPCseed();
33 virtual ~AliTPCseed();
34 AliTPCseed(const AliTPCtrack &t);
2928bdf0 35 AliTPCseed(const AliTPCseed &s, Bool_t clusterOwner = kFALSE);
81e97e0d 36 //AliTPCseed(const AliTPCseed &t, Double_t a);
6c94f330 37 AliTPCseed(Double_t xr, Double_t alpha, const Double_t xx[5],
38 const Double_t cc[15], Int_t i);
81e97e0d 39 Int_t Compare(const TObject *o) const;
40 void Reset(Bool_t all = kTRUE);
41 Int_t GetProlongation(Double_t xr, Double_t &y, Double_t & z) const;
af32720d 42 virtual Double_t GetPredictedChi2(const AliCluster *cluster2) const;
6c94f330 43 virtual Bool_t Update(const AliCluster* c2, Double_t chi2, Int_t i);
81e97e0d 44 AliTPCTrackerPoint * GetTrackPoint(Int_t i);
c6c5e49f 45 AliTPCclusterMI * GetClusterFast(Int_t irow){ return fClusterPointer[irow];}
b9671574 46 void SetClusterPointer(Int_t irow, AliTPCclusterMI* cl) {fClusterPointer[irow]=cl;}
81e97e0d 47 void RebuildSeed(); // rebuild seed to be ready for storing
48 Double_t GetDensityFirst(Int_t n);
6c94f330 49 Double_t GetSigma2C() const {
50 Double_t cnv=GetBz()*kB2C;
51 return GetSigma1Pt2()*cnv*cnv;
52 }
81e97e0d 53 void GetClusterStatistic(Int_t first, Int_t last, Int_t &found, Int_t &foundable, Int_t &shared, Bool_t plus2);
54
55 void Modify(Double_t factor);
56 void SetClusterIndex2(Int_t row, Int_t index) {
57 fIndex[row] = index;
58 }
59 Int_t GetClusterIndex2(Int_t row) const {
60 return fIndex[row];
61 }
62 Int_t GetClusterSector(Int_t row) const {
63 Int_t pica = -1;
64 if (fIndex[row]>=0) pica = ((fIndex[row]&0xff000000)>>24);
65 return pica;
66 }
67
6c94f330 68 Double_t GetYat(Double_t x) const;
69
81e97e0d 70 void SetErrorY2(Float_t sy2){fErrorY2=sy2;}
71 void SetErrorZ2(Float_t sz2){fErrorZ2=sz2;}
105b1b81 72 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);
81e97e0d 73 void CookPID();
74 Double_t Bethe(Double_t bg); // return bethe-bloch
75 // void CookdEdx2(Double_t low=0.05, Double_t up=0.70);
76 Bool_t IsActive() const { return !(fRemoval);}
77 void Desactivate(Int_t reason){ fRemoval = reason;}
b9671574 78 AliTPCclusterMI* GetClusterPointer(Int_t i) const {return fClusterPointer[i];}
79 Int_t GetSector() const {return fSector;}
80 Float_t GetCurrentSigmaY2() const {return fCurrentSigmaY2;}
81 Float_t GetCurrentSigmaZ2() const {return fCurrentSigmaZ2;}
82 Int_t GetRelativeSector() const {return fRelativeSector;}
83 Char_t GetCircular() const {return fCircular;}
84
85 void SetCurrentSigmaY2(Float_t s) {fCurrentSigmaY2=s;}
86 void SetCurrentSigmaZ2(Float_t s) {fCurrentSigmaZ2=s;}
87 void SetRelativeSector(Int_t r) {fRelativeSector=r;}
88 void SetCircular(Char_t c) {fCircular=c;}
89 void SetIsSeeding(Bool_t s) {fIsSeeding=s;}
90 void SetSeedType(Int_t s) {fSeedType=s;}
91 void SetSeed1(Int_t s) {fSeed1=s;}
92 void SetSeed2(Int_t s) {fSeed2=s;}
93 void SetESD(AliESDtrack* esd) {fEsd=esd;}
94 void SetBSigned(Bool_t s) {fBSigned=s;}
95 void SetSort(Int_t s) {fSort=s;}
96 void SetOverlapLabel(Int_t i, Int_t l) {fOverlapLabels[i]=l;}
97 void SetCurrentCluster(AliTPCclusterMI* cl) {fCurrentCluster=cl;}
98 void SetNoCluster(Int_t n) {fNoCluster=n;}
99 void SetRow(Int_t n) {fRow=n;}
100 void SetSector(Int_t n) {fSector=n;}
101 void SetCurrentClusterIndex1(Int_t n) {fCurrentClusterIndex1=n;}
102 void SetInDead(Bool_t s) {fInDead=s;}
103 void SetPoints(TClonesArray* p) {fPoints=p;}
104 void SetEPoints(TClonesArray* p) {fEPoints=p;}
105
106 Double_t TPCrPID(Int_t i) const {return fTPCr[i];}
107 Double_t* TPCrPIDs() {return fTPCr;}
108 Bool_t GetIsSeeding() const {return fIsSeeding;}
109 Int_t GetSeedType() const {return fSeedType;}
110 Int_t GetSeed1() const {return fSeed1;}
111 Int_t GetSeed2() const {return fSeed2;}
112 AliESDtrack* GetESD() {return fEsd;}
113 Float_t GetSDEDX(Int_t i) const {return fSDEDX[i];}
114 Int_t GetNCDEDX(Int_t i) const {return fNCDEDX[i];}
115 Bool_t GetBSigned() const {return fBSigned;}
116 Int_t GetSort() const {return fSort;}
117 Int_t GetOverlapLabel(Int_t i) const {return fOverlapLabels[i];}
118 AliTPCclusterMI* GetCurrentCluster() const {return fCurrentCluster;}
119 Int_t GetNoCluster() const {return fNoCluster;}
120 Int_t GetRow() const {return fRow;}
121 Int_t GetCurrentClusterIndex1() const {return fCurrentClusterIndex1;}
122 Bool_t GetInDead() const {return fInDead;}
123 Float_t GetErrorY2() const {return fErrorY2;}
124 Float_t GetErrorZ2() const {return fErrorZ2;}
81e97e0d 125 //
126 //
127 private:
128 // AliTPCseed & operator = (const AliTPCseed &)
129 // {::Fatal("= operator","Not Implemented\n");return *this;}
130 AliESDtrack * fEsd; //!
105b1b81 131 AliTPCclusterMI* fClusterPointer[160]; // array of cluster pointers -
2928bdf0 132 Bool_t fClusterOwner; // indicates the track is owner of cluster
105b1b81 133 TClonesArray * fPoints; //!array with points along the track
134 TClonesArray * fEPoints; //! array with exact points - calculated in special macro not used in tracking
81e97e0d 135 //---CURRENT VALUES
136 Int_t fRow; //!current row number
137 Int_t fSector; //!current sector number
138 Int_t fRelativeSector; //! index of current relative sector
139 Float_t fCurrentSigmaY2; //!expected current cluster sigma Y
140 Float_t fCurrentSigmaZ2; //!expected current cluster sigma Z
141 Float_t fErrorY2; //!sigma of current cluster
142 Float_t fErrorZ2; //!sigma of current cluster
143 AliTPCclusterMI * fCurrentCluster; //!pointer to the current cluster for prolongation
144 Int_t fCurrentClusterIndex1; //! index of the current cluster
145 Bool_t fInDead; //! indicate if the track is in dead zone
146 Bool_t fIsSeeding; //!indicates if it is proces of seeading
147 Int_t fNoCluster; //!indicates number of rows without clusters
148 Int_t fSort; //!indicate criteria for sorting
149 Bool_t fBSigned; //indicates that clusters of this trackes are signed to be used
150 //
151 //
152 Float_t fDEDX[4]; // dedx according padrows
153 Float_t fSDEDX[4]; // sdedx according padrows
154 Int_t fNCDEDX[4]; // number of clusters for dedx measurment
155 Double_t fTPCr[AliPID::kSPECIES]; // rough PID according TPC
156 //
157 Int_t fSeedType; //seeding type
158 Int_t fSeed1; //first row for seeding
159 Int_t fSeed2; //last row for seeding
160 Int_t fOverlapLabels[12]; //track labels and the length of the overlap
161 Float_t fMAngular; // mean angular factor
162 Char_t fCircular; // indicates curlin track
105b1b81 163 AliTPCTrackerPoint fTrackPoints[160]; //track points - array track points
81e97e0d 164 ClassDef(AliTPCseed,1)
165};
166
167
168
169
170
171#endif
172
173