]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITStrackerSA.h
Revert one change (Sun,Alpha)
[u/mrichter/AliRoot.git] / ITS / AliITStrackerSA.h
1 #ifndef ALIITSTRACKERSA_H
2 #define ALIITSTRACKERSA_H 
3
4
5
6 #include "AliITStrackerV2.h"
7
8 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
9  * See cxx source for full Copyright notice                               */
10
11 ////////////////////////////////////////////////////
12 //  Stand alone tracker class                     //
13 //  Origin:  Elisabetta Crescio                   //
14 //  e-mail:  crescio@to.infn.it                   //
15 ////////////////////////////////////////////////////
16
17 class AliITSclusterTable;
18 class AliITStrackSA;
19 class AliITSVertex;
20 class AliITSVertexer;
21
22 class AliITStrackerSA : public AliITStrackerV2 {
23
24
25  public:
26
27   AliITStrackerSA();
28   AliITStrackerSA(AliITSgeom *geom,AliITSVertex *vert);
29   AliITStrackerSA(AliITSgeom *geom,AliITSVertexer *vertexer);
30   AliITStrackerSA(AliITStrackerSA& tracker);
31   virtual ~AliITStrackerSA();  
32   void     FindTracks(TTree *clusterTree, TTree *out,Int_t evnumber=0,
33                       char *opt="6/6");
34
35   AliITStrackV2* FitTrack(AliITStrackSA* tr,Double_t* primaryVertex,
36                           Double_t *errorprimvert,char *opt="6/6");
37
38   AliITStrackV2* FindTrackLowChiSquare(TObjArray* tracklist, Int_t dim) const;
39   void SetVertex(AliITSVertex *vtx){fVert = vtx;}
40   void SetWindowSizes(Int_t n=46, Double_t *phi=0, Double_t *lam=0);
41   void UseFoundTracksV2(Int_t evnum,TTree* treev2, TTree* clustertree);
42
43  protected:
44
45   // copy constructor (NO copy allowed: the constructor is protected
46   // to avoid misuse)
47   AliITStrackerSA(const AliITStrackerSA& trkr);
48   // assignment operator (NO assignment allowed)
49   AliITStrackerSA& operator=(const AliITStrackerSA& /* trkr */);
50   //Initialization
51   void Init();
52   Int_t     GetFlagLoadedClusters() const {return fFlagLoad;}
53   
54   void     GetClusterGCoordinates(AliITSclusterV2* cluster,
55                                   Int_t module,Double_t& x, Double_t& y,Double_t& z);
56   void     GetClusterGErrors(AliITSclusterV2* cluster,
57                              Int_t module,Double_t& sigmax, Double_t& sigmay,
58                              Double_t& sigmaz);
59   void     ResetForFinding();
60   void     SetFlagLoadedClusters(Int_t d) {fFlagLoad=d;}
61
62   void     UpdatePoints();
63
64   static Double_t Curvature(Double_t x1,Double_t y1,Double_t x2,Double_t y2,
65                      Double_t x3,Double_t y3);
66
67   Double_t ChoosePoint(Double_t p1, Double_t p2, Double_t pp); 
68
69   static Int_t   FindIntersection(Float_t a1, Float_t b1, Float_t c1, Float_t c2, 
70                            Float_t& x1,Float_t& y1, Float_t& x2, Float_t& y2);
71   static Int_t   FindEquation(Float_t x1, Float_t y1, Float_t x2, Float_t y2, 
72                        Float_t x3, Float_t y3,Float_t& a, Float_t& b, 
73                        Float_t& c);
74  
75   static Int_t FindLabel(Int_t l1, Int_t l2, Int_t l3, Int_t l4, Int_t l5, Int_t l6);
76   static Int_t Label(Int_t gl1, Int_t gl2, Int_t gl3, Int_t gl4, Int_t gl5, 
77               Int_t gl6,Int_t gl7, Int_t gl8, Int_t gl9, Int_t gl10,Int_t gl11,
78               Int_t gl12, Int_t gl13, Int_t gl14,Int_t gl15, Int_t gl16, 
79               Int_t gl17, Int_t gl18, Int_t numberofpoints=6);
80
81   Int_t SearchClusters(Int_t layer,Double_t phiwindow,Double_t lambdawindow, 
82                        AliITStrackSA* trs,Double_t zvertex,Double_t yvertex,
83                        Double_t xvertex, Int_t flagp, AliITSclusterTable* table); 
84  
85
86   Double_t fPhiEstimate; //Estimation of phi angle on next layer
87   Float_t fPoint1[2];   //! coord. of 1-st point to evaluate the curvature
88   Float_t fPoint2[2];   //! coord. of 2-nd point to evaluate the curvature
89   Float_t fPoint3[2];   //! coord. of 3-rd point to evaluate the curvature
90   Float_t fPointc[2];   //! current point coord (for curvature eval.)
91   Double_t fLambdac;    //! current value of the Lambda angle in the window
92   Double_t fPhic;       //! current value of the Phi angle in the window
93   Float_t fCoef1;       //! param. of the equation of the circ. approx a layer
94   Float_t fCoef2;       //! param. of the equation of the circ. approx a layer
95   Float_t fCoef3;       //! param. of the equation of the circ. approx a layer
96   Int_t fNloop;         //  Number of iterqations on phi and lambda windows
97   Double_t *fPhiWin;    // phi window sizes
98   Double_t *fLambdaWin; // lambda window sizes
99   AliITSVertex *fVert;        //! primary vertex
100   AliITSVertexer *fVertexer;  //! vertexer 
101   AliITSgeom *fGeom;          //! ITS geometry
102   Int_t fFlagLoad;            //  flag for loaded clusters (1==already loaded)
103   AliITSclusterTable* fTable; //  table with clusters
104   ClassDef(AliITStrackerSA,1)
105 };
106
107 #endif
108
109
110