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