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