]>
Commit | Line | Data |
---|---|---|
13918578 | 1 | #ifndef ALIITSTRACKERSA_H |
2 | #define ALIITSTRACKERSA_H | |
3 | ||
4 | ||
5 | ||
e43c066c | 6 | #include "AliITStrackerMI.h" |
13918578 | 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; | |
d681bb2d | 19 | class AliESDVertex; |
b8ed1a92 | 20 | class AliESDEvent; |
13918578 | 21 | class AliITSVertexer; |
2257f27e | 22 | class TTree; |
7e5bf5af | 23 | class TArrayD; |
13918578 | 24 | |
e43c066c | 25 | class AliITStrackerSA : public AliITStrackerMI { |
13918578 | 26 | |
27 | ||
28 | public: | |
29 | ||
30 | AliITStrackerSA(); | |
cc088660 | 31 | AliITStrackerSA(const Char_t *geom); |
32 | AliITStrackerSA(const Char_t *geom,AliESDVertex *vert); | |
33 | AliITStrackerSA(const Char_t *geom,AliITSVertexer *vertexer); | |
7d62fb64 | 34 | AliITStrackerSA(const AliITStrackerSA& tracker); |
e399f961 | 35 | AliITStrackerSA& operator=(const AliITStrackerSA& source); |
13918578 | 36 | virtual ~AliITStrackerSA(); |
af885e0f | 37 | virtual Int_t Clusters2Tracks(AliESDEvent *event); |
38 | Int_t FindTracks(AliESDEvent* event); | |
13918578 | 39 | |
7e5bf5af | 40 | AliITStrackV2* FitTrack(AliITStrackSA* tr,Double_t* primaryVertex); |
b8ed1a92 | 41 | AliITStrackV2* FitShortTrack(AliITStrackSA* tr,Double_t *primaryVertex,Int_t innLay); |
7e5bf5af | 42 | Int_t FindTrackLowChiSquare(TObjArray* tracklist, Int_t dim) const; |
b8ed1a92 | 43 | Int_t LoadClusters(TTree *cf) {Int_t rc=AliITStrackerMI::LoadClusters(cf); SetClusterTree(cf); SetSixPoints(kTRUE); return rc;} |
d681bb2d | 44 | void SetVertex(AliESDVertex *vtx){fVert = vtx;} |
2257f27e | 45 | void SetClusterTree(TTree * itscl){fITSclusters = itscl;} |
7e5bf5af | 46 | void SetSixPoints(Bool_t sp = kFALSE){fSixPoints = sp;} |
2257f27e | 47 | Bool_t GetSixPoints() const {return fSixPoints;} |
b8ed1a92 | 48 | void SetOuterStartLayer(Int_t osl = 0) {if(osl>(AliITSgeomTGeo::GetNLayers()-2)) osl=AliITSgeomTGeo::GetNLayers()-2; fOuterStartLayer = osl;} |
49 | Int_t GetOuterStartLayer() const {return fOuterStartLayer;} | |
1966f03c | 50 | void SetSAFlag(Bool_t fl){fITSStandAlone=fl;} // StandAlone flag setter |
51 | Bool_t GetSAFlag() const {return fITSStandAlone;} // StandAlone flag getter | |
13918578 | 52 | void SetWindowSizes(Int_t n=46, Double_t *phi=0, Double_t *lam=0); |
13918578 | 53 | |
627b6db6 | 54 | enum {kSAflag=0x8000}; //flag to mark clusters used in the SA tracker |
55 | ||
13918578 | 56 | protected: |
57 | ||
13918578 | 58 | //Initialization |
59 | void Init(); | |
4e05ab9a | 60 | void ResetForFinding(); |
61 | void UpdatePoints(); | |
13918578 | 62 | |
63 | static Double_t Curvature(Double_t x1,Double_t y1,Double_t x2,Double_t y2, | |
bef31448 | 64 | Double_t x3,Double_t y3); |
13918578 | 65 | |
66 | Double_t ChoosePoint(Double_t p1, Double_t p2, Double_t pp); | |
67 | ||
68 | static Int_t FindIntersection(Float_t a1, Float_t b1, Float_t c1, Float_t c2, | |
69 | Float_t& x1,Float_t& y1, Float_t& x2, Float_t& y2); | |
70 | static Int_t FindEquation(Float_t x1, Float_t y1, Float_t x2, Float_t y2, | |
71 | Float_t x3, Float_t y3,Float_t& a, Float_t& b, | |
72 | Float_t& c); | |
73 | ||
74 | static Int_t FindLabel(Int_t l1, Int_t l2, Int_t l3, Int_t l4, Int_t l5, Int_t l6); | |
75 | static Int_t Label(Int_t gl1, Int_t gl2, Int_t gl3, Int_t gl4, Int_t gl5, | |
76 | Int_t gl6,Int_t gl7, Int_t gl8, Int_t gl9, Int_t gl10,Int_t gl11, | |
77 | Int_t gl12, Int_t gl13, Int_t gl14,Int_t gl15, Int_t gl16, | |
78 | Int_t gl17, Int_t gl18, Int_t numberofpoints=6); | |
bef31448 | 79 | |
13918578 | 80 | Int_t SearchClusters(Int_t layer,Double_t phiwindow,Double_t lambdawindow, |
cfe729e0 | 81 | AliITStrackSA* trs,Double_t zvertex,Int_t flagp); |
7e5bf5af | 82 | |
cc088660 | 83 | void GetCoorAngles(AliITSRecPoint* cl,Double_t &phi,Double_t &lambda,Float_t &x,Float_t &y,Float_t &z,Double_t* vertex); |
84 | void GetCoorErrors(AliITSRecPoint* cl,Float_t &sx,Float_t &sy, Float_t &sz); | |
7e5bf5af | 85 | |
86 | AliITSclusterTable* GetClusterCoord(Int_t layer,Int_t n) const {return (AliITSclusterTable*)fCluCoord[layer]->UncheckedAt(n);} | |
87 | void RemoveClusterCoord(Int_t layer, Int_t n) {fCluCoord[layer]->RemoveAt(n);fCluCoord[layer]->Compress();} | |
88 | ||
89 | ||
13918578 | 90 | Double_t fPhiEstimate; //Estimation of phi angle on next layer |
1966f03c | 91 | Bool_t fITSStandAlone; //Tracking is performed in the ITS alone if kTRUE |
4e05ab9a | 92 | Float_t fPoint1[2]; //! coord. of 1-st point to evaluate the curvature |
93 | Float_t fPoint2[2]; //! coord. of 2-nd point to evaluate the curvature | |
94 | Float_t fPoint3[2]; //! coord. of 3-rd point to evaluate the curvature | |
95 | Float_t fPointc[2]; //! current point coord (for curvature eval.) | |
13918578 | 96 | Double_t fLambdac; //! current value of the Lambda angle in the window |
97 | Double_t fPhic; //! current value of the Phi angle in the window | |
98 | Float_t fCoef1; //! param. of the equation of the circ. approx a layer | |
99 | Float_t fCoef2; //! param. of the equation of the circ. approx a layer | |
100 | Float_t fCoef3; //! param. of the equation of the circ. approx a layer | |
101 | Int_t fNloop; // Number of iterqations on phi and lambda windows | |
102 | Double_t *fPhiWin; // phi window sizes | |
103 | Double_t *fLambdaWin; // lambda window sizes | |
d681bb2d | 104 | AliESDVertex *fVert; //! primary vertex |
13918578 | 105 | AliITSVertexer *fVertexer; //! vertexer |
4e05ab9a | 106 | TObjArray *fListOfTracks; //! container for found tracks |
2257f27e | 107 | TTree *fITSclusters; //! pointer to ITS tree of clusters |
2257f27e | 108 | Bool_t fSixPoints; // If true 6/6 points are required (default). 5/6 otherwise |
b8ed1a92 | 109 | Int_t fOuterStartLayer; // Search for tracks with <6 points: outer layer to start from |
7e5bf5af | 110 | |
111 | TClonesArray** fCluLayer; //! array with clusters | |
112 | TClonesArray** fCluCoord; //! array with cluster info | |
113 | ||
b8ed1a92 | 114 | ClassDef(AliITStrackerSA,6) |
13918578 | 115 | }; |
116 | ||
117 | #endif | |
118 |