]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCseed.h
Add Eta function (Matevz)
[u/mrichter/AliRoot.git] / TPC / AliTPCseed.h
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
22 class TFile;
23 class AliTPCParam;
24 class AliTPCseed;
25 class AliTPCclusterMI;
26 class AliTPCTrackerPoint;
27 class AliESD;   
28 class TClonesArray;
29
30 class AliTPCseed : public AliTPCtrack {
31   friend class AliTPCtrackerMI;
32   public:  
33      AliTPCseed();
34      virtual ~AliTPCseed();
35      AliTPCseed(const AliTPCtrack &t);
36      AliTPCseed(const AliTPCseed &s, Bool_t clusterOwner = kFALSE);
37      //AliTPCseed(const AliTPCseed &t, Double_t a);
38      AliTPCseed(UInt_t index, const Double_t xx[5], 
39                 const Double_t cc[15], Double_t xr, Double_t alpha);     
40      Int_t Compare(const TObject *o) const;
41      void Reset(Bool_t all = kTRUE);
42      Int_t GetProlongation(Double_t xr, Double_t &y, Double_t & z) const;
43      virtual Double_t GetPredictedChi2(const AliCluster *cluster2) const;
44      virtual Int_t Update(const AliCluster* c2, Double_t chi2, UInt_t i);
45      AliTPCTrackerPoint * GetTrackPoint(Int_t i);
46      AliTPCclusterMI * GetClusterFast(Int_t irow){ return fClusterPointer[irow];}
47      void RebuildSeed(); // rebuild seed to be ready for storing
48      Double_t GetDensityFirst(Int_t n);
49      Double_t GetSigma2C() const {return fC44;};
50      void GetClusterStatistic(Int_t first, Int_t last, Int_t &found, Int_t &foundable, Int_t &shared, Bool_t plus2);
51      
52      void Modify(Double_t factor);
53      void SetClusterIndex2(Int_t row, Int_t index) {
54        fIndex[row] = index;
55      }
56      Int_t  GetClusterIndex2(Int_t row) const {
57        return fIndex[row];
58      }
59      Int_t GetClusterSector(Int_t row) const {
60        Int_t pica = -1;
61        if (fIndex[row]>=0) pica =  ((fIndex[row]&0xff000000)>>24);
62        return pica;
63      }
64     
65      void SetErrorY2(Float_t sy2){fErrorY2=sy2;}
66      void SetErrorZ2(Float_t sz2){fErrorZ2=sz2;}
67      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);
68      void CookPID();
69      Double_t Bethe(Double_t bg);     // return bethe-bloch
70      //     void CookdEdx2(Double_t low=0.05, Double_t up=0.70);
71      Bool_t IsActive() const { return !(fRemoval);}
72      void Desactivate(Int_t reason){ fRemoval = reason;} 
73      //
74      //
75  private:
76      //     AliTPCseed & operator = (const AliTPCseed &)
77      //  {::Fatal("= operator","Not Implemented\n");return *this;}
78      AliESDtrack * fEsd; //!
79      AliTPCclusterMI*   fClusterPointer[160];  // array of cluster pointers  - 
80      Bool_t             fClusterOwner;         // indicates the track is owner of cluster
81      TClonesArray * fPoints;              //!array with points along the track
82      TClonesArray * fEPoints;             //! array with exact points - calculated in special macro not used in tracking
83      //---CURRENT VALUES
84      Int_t fRow;                 //!current row number  
85      Int_t fSector;              //!current sector number
86      Int_t fRelativeSector;      //! index of current relative sector
87      Float_t fCurrentSigmaY2;    //!expected current cluster sigma Y
88      Float_t fCurrentSigmaZ2;    //!expected current cluster sigma Z
89      Float_t fErrorY2;           //!sigma of current cluster 
90      Float_t fErrorZ2;           //!sigma of current cluster    
91      AliTPCclusterMI * fCurrentCluster; //!pointer to the current cluster for prolongation
92      Int_t   fCurrentClusterIndex1; //! index of the current cluster
93      Bool_t  fInDead;            //! indicate if the track is in dead zone
94      Bool_t  fIsSeeding;         //!indicates if it is proces of seeading
95      Int_t   fNoCluster;         //!indicates number of rows without clusters
96      Int_t   fSort;              //!indicate criteria for sorting
97      Bool_t  fBSigned;        //indicates that clusters of this trackes are signed to be used
98      //
99      //
100      Float_t fDEDX[4];         // dedx according padrows
101      Float_t fSDEDX[4];        // sdedx according padrows
102      Int_t   fNCDEDX[4];       // number of clusters for dedx measurment
103      Double_t fTPCr[AliPID::kSPECIES];   // rough PID according TPC   
104      //
105      Int_t   fSeedType;         //seeding type
106      Int_t   fSeed1;            //first row for seeding
107      Int_t   fSeed2;            //last row for seeding
108      Int_t   fOverlapLabels[12];  //track labels and the length of the  overlap     
109      Float_t fMAngular;           // mean angular factor
110      Char_t   fCircular;           // indicates curlin track
111      AliTPCTrackerPoint  fTrackPoints[160];  //track points - array track points
112      ClassDef(AliTPCseed,1)  
113 };
114
115
116
117
118
119 #endif
120
121